From 191f4de93ea7e5b5552a5ed911fc48f2c40354e1 Mon Sep 17 00:00:00 2001 From: Vaerh Date: Mon, 7 Oct 2024 14:43:27 +0300 Subject: [PATCH] test: Fix tests --- routeros/resource_ip_ipsec_identity_test.go | 2 +- routeros/resource_ip_ipsec_policy_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routeros/resource_ip_ipsec_identity_test.go b/routeros/resource_ip_ipsec_identity_test.go index d49114cf..8c22bd24 100644 --- a/routeros/resource_ip_ipsec_identity_test.go +++ b/routeros/resource_ip_ipsec_identity_test.go @@ -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" } diff --git a/routeros/resource_ip_ipsec_policy_test.go b/routeros/resource_ip_ipsec_policy_test.go index cab3f679..c533f1d6 100644 --- a/routeros/resource_ip_ipsec_policy_test.go +++ b/routeros/resource_ip_ipsec_policy_test.go @@ -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"), @@ -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 { @@ -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" {