Skip to content

Commit

Permalink
test: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vaerh committed Oct 7, 2024
1 parent 9ba2bf9 commit 191f4de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion routeros/resource_ip_ipsec_identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "routeros_ip_ipsec_mode_config" "mode-for-identity" {
}
resource "routeros_ip_ipsec_peer" "peer-for-identity" {
address = "lv20.nordvpn.com"
address = "lv30.nordvpn.com"
exchange_mode = "ike2"
name = "NordVPN-i"
}
Expand Down
6 changes: 3 additions & 3 deletions routeros/resource_ip_ipsec_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAccIpIpsecPolicyTest_basic(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testResourcePrimaryInstanceId(testIpIpsecPolicy),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "dst_address", "0.0.0.0/0"),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "group", "test-group"),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "group", "test-group-p"),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "proposal", "default"),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "src_address", "0.0.0.0/0"),
resource.TestCheckResourceAttr(testIpIpsecPolicy, "template", "true"),
Expand All @@ -36,7 +36,7 @@ func TestAccIpIpsecPolicyTest_basic(t *testing.T) {
{
Config: testAccIpIpsecPolicyConfig(),
ResourceName: testIpIpsecPolicy,
ImportStateId: `group=test-group`,
ImportStateId: `group=test-group-p`,
ImportState: true,
ImportStateCheck: func(states []*terraform.InstanceState) error {
if len(states) != 1 {
Expand All @@ -56,7 +56,7 @@ func testAccIpIpsecPolicyConfig() string {
return fmt.Sprintf(`%v
resource "routeros_ip_ipsec_policy_group" "group-for-policy" {
name = "test-group"
name = "test-group-p"
}
resource "routeros_ip_ipsec_policy" "policy" {
Expand Down

0 comments on commit 191f4de

Please sign in to comment.