@@ -3,6 +3,7 @@ package client
3
3
import (
4
4
"testing"
5
5
6
+ "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
6
7
"github.com/stretchr/testify/assert"
7
8
"k8s.io/apimachinery/pkg/util/wait"
8
9
)
@@ -56,6 +57,8 @@ func TestCreateNetworkInterfaceOptions_Finish(t *testing.T) {
56
57
assert .Equal (t , niOptions .ResourceGroupID , req .ResourceGroupId )
57
58
assert .Equal (t , eniDescription , req .Description )
58
59
assert .Equal (t , "mockToken" , req .ClientToken )
60
+ assert .Equal (t , requests .NewInteger (1 ), req .SecondaryPrivateIpAddressCount )
61
+ assert .Equal (t , requests .NewInteger (1 ), req .Ipv6AddressCount )
59
62
assert .NotNil (t , c .Backoff )
60
63
61
64
// Cleanup
@@ -87,6 +90,7 @@ func TestCreateNetworkInterfaceOptions_ApplyCreateNetworkInterface(t *testing.T)
87
90
Trunk : true ,
88
91
ERDMA : true ,
89
92
IPCount : 2 ,
93
+ IPv6Count : 1 ,
90
94
},
91
95
},
92
96
args : args {
@@ -102,7 +106,7 @@ func TestCreateNetworkInterfaceOptions_ApplyCreateNetworkInterface(t *testing.T)
102
106
SecurityGroupIDs : []string {"sg-xxxxxx" },
103
107
ResourceGroupID : "rg-xxxxxx" ,
104
108
IPCount : 2 ,
105
- IPv6Count : 0 ,
109
+ IPv6Count : 1 ,
106
110
Tags : map [string ]string {"key1" : "value1" , "key2" : "value2" },
107
111
InstanceID : "" ,
108
112
InstanceType : "" ,
0 commit comments