@@ -24,21 +24,6 @@ func TestClientAlterClientQuotas(t *testing.T) {
24
24
client , shutdown := newLocalClient ()
25
25
defer shutdown ()
26
26
27
- expectedAlterResp := AlterClientQuotasResponse {
28
- Throttle : 0 ,
29
- Entries : []AlterClientQuotaResponseQuotas {
30
- {
31
- ErrorCode : 0 ,
32
- Entities : []AlterClientQuotaEntity {
33
- {
34
- EntityName : entityName ,
35
- EntityType : entityType ,
36
- },
37
- },
38
- },
39
- },
40
- }
41
-
42
27
alterResp , err := client .AlterClientQuotas (context .Background (), & AlterClientQuotasRequest {
43
28
Entries : []AlterClientQuotaEntry {
44
29
{
@@ -65,21 +50,15 @@ func TestClientAlterClientQuotas(t *testing.T) {
65
50
66
51
assert .Equal (t , expectedAlterResp , * alterResp )
67
52
68
- expectedDescribeResp := DescribeClientQuotasResponse {
69
- Throttle : 0 ,
70
- ErrorCode : 0 ,
71
- Entries : []DescribeClientQuotasResponseQuotas {
53
+ expectedAlterResp := AlterClientQuotasResponse {
54
+ Throttle : 0 ,
55
+ Entries : []AlterClientQuotaResponseQuotas {
72
56
{
73
- Entities : []DescribeClientQuotasEntity {
57
+ ErrorCode : 0 ,
58
+ Entities : []AlterClientQuotaEntity {
74
59
{
75
- EntityType : entityType ,
76
60
EntityName : entityName ,
77
- },
78
- },
79
- Values : []DescribeClientQuotasValue {
80
- {
81
- Key : key ,
82
- Value : value ,
61
+ EntityType : entityType ,
83
62
},
84
63
},
85
64
},
@@ -100,5 +79,26 @@ func TestClientAlterClientQuotas(t *testing.T) {
100
79
t .Fatal (err )
101
80
}
102
81
82
+ expectedDescribeResp := DescribeClientQuotasResponse {
83
+ Throttle : 0 ,
84
+ ErrorCode : 0 ,
85
+ Entries : []DescribeClientQuotasResponseQuotas {
86
+ {
87
+ Entities : []DescribeClientQuotasEntity {
88
+ {
89
+ EntityType : entityType ,
90
+ EntityName : entityName ,
91
+ },
92
+ },
93
+ Values : []DescribeClientQuotasValue {
94
+ {
95
+ Key : key ,
96
+ Value : value ,
97
+ },
98
+ },
99
+ },
100
+ },
101
+ }
102
+
103
103
assert .Equal (t , expectedDescribeResp , * describeResp )
104
104
}
0 commit comments