-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from jeremmfr/bugfix-2.3.0
Release v2.3.1
- Loading branch information
Showing
6 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,11 +99,13 @@ func TestAccResourceSystem_basic(t *testing.T) { | |
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
"services.ssh.authentication_order.0", "password"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
"services.ssh.ciphers.#", "2"), | ||
"services.ssh.ciphers.#", "3"), | ||
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.ciphers.*", "aes256-ctr"), | ||
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.ciphers.*", "aes256-cbc"), | ||
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.ciphers.*", "[email protected]"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
"services.ssh.client_alive_count_max", "10"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
|
@@ -121,9 +123,11 @@ func TestAccResourceSystem_basic(t *testing.T) { | |
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.key_exchange.*", "ecdh-sha2-nistp256"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
"services.ssh.macs.#", "1"), | ||
"services.ssh.macs.#", "2"), | ||
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.macs.*", "hmac-sha2-256"), | ||
resource.TestCheckTypeSetElemAttr("junos_system.testacc_system", | ||
"services.ssh.macs.*", "[email protected]"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
"services.ssh.max_pre_authentication_packets", "10000"), | ||
resource.TestCheckResourceAttr("junos_system.testacc_system", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,14 +125,14 @@ resource "junos_system" "testacc_system" { | |
} | ||
ssh { | ||
authentication_order = ["password"] | ||
ciphers = ["aes256-ctr", "aes256-cbc"] | ||
ciphers = ["aes256-ctr", "aes256-cbc", "[email protected]"] | ||
client_alive_count_max = 10 | ||
client_alive_interval = 30 | ||
connection_limit = 10 | ||
fingerprint_hash = "md5" | ||
hostkey_algorithm = ["no-ssh-dss"] | ||
key_exchange = ["ecdh-sha2-nistp256"] | ||
macs = ["hmac-sha2-256"] | ||
macs = ["hmac-sha2-256", "[email protected]"] | ||
max_pre_authentication_packets = 10000 | ||
max_sessions_per_connection = 100 | ||
port = 22 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,16 @@ func TestStringFormat(t *testing.T) { | |
format: ASPathRegularExpression, | ||
expectError: true, | ||
}, | ||
"AlgorithmFormat_valid": { | ||
val: types.StringValue("[email protected]"), | ||
format: AlgorithmFormat, | ||
expectError: false, | ||
}, | ||
"AlgorithmFormat_invalid": { | ||
val: types.StringValue("not [email protected]"), | ||
format: AlgorithmFormat, | ||
expectError: true, | ||
}, | ||
} | ||
|
||
for name, test := range tests { | ||
|