@@ -18,7 +18,8 @@ func TestAccTencentCloudEipAssociationWithInstance(t *testing.T) {
1818 CheckDestroy : testAccCheckEipAssociationDestroy ,
1919 Steps : []resource.TestStep {
2020 {
21- Config : testAccTencentCloudEipAssociationWithInstance ,
21+ PreConfig : func () { testAccStepPreConfigSetTempAKSK (t , ACCOUNT_TYPE_COMMON ) },
22+ Config : testAccTencentCloudEipAssociationWithInstance ,
2223 Check : resource .ComposeTestCheckFunc (
2324 testAccCheckEipAssociationExists (id ),
2425 resource .TestCheckResourceAttrSet (id , "eip_id" ),
@@ -48,7 +49,8 @@ func TestAccTencentCloudEipAssociationWithNetworkInterface(t *testing.T) {
4849 CheckDestroy : testAccCheckEipAssociationDestroy ,
4950 Steps : []resource.TestStep {
5051 {
51- Config : testAccTencentCloudEipAssociationWithNetworkInterface ,
52+ PreConfig : func () { testAccStepPreConfigSetTempAKSK (t , ACCOUNT_TYPE_COMMON ) },
53+ Config : testAccTencentCloudEipAssociationWithNetworkInterface ,
5254 Check : resource .ComposeTestCheckFunc (
5355 testAccCheckEipAssociationExists (id ),
5456 resource .TestCheckResourceAttrSet (id , "eip_id" ),
0 commit comments