@@ -27,6 +27,7 @@ func TestClient_CreateAuthKey(t *testing.T) {
27
27
28
28
expected := & Key {
29
29
ID : "test" ,
30
+ KeyType : "auth" ,
30
31
Key : "thisisatestkey" ,
31
32
Created : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
32
33
Expires : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
@@ -65,6 +66,7 @@ func TestClient_CreateAuthKeyWithExpirySeconds(t *testing.T) {
65
66
66
67
expected := & Key {
67
68
ID : "test" ,
69
+ KeyType : "auth" ,
68
70
Key : "thisisatestkey" ,
69
71
Created : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
70
72
Expires : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
@@ -104,6 +106,7 @@ func TestClient_CreateAuthKeyWithDescription(t *testing.T) {
104
106
105
107
expected := & Key {
106
108
ID : "test" ,
109
+ KeyType : "auth" ,
107
110
Key : "thisisatestkey" ,
108
111
Created : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
109
112
Expires : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
@@ -137,6 +140,7 @@ func TestClient_CreateOAuthClient(t *testing.T) {
137
140
138
141
expected := & Key {
139
142
ID : "test" ,
143
+ KeyType : "client" ,
140
144
Key : "thisisatestclient" ,
141
145
Created : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
142
146
Expires : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
@@ -178,6 +182,7 @@ func TestClient_GetKey(t *testing.T) {
178
182
179
183
expected := & Key {
180
184
ID : "test" ,
185
+ KeyType : "auth" ,
181
186
Created : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
182
187
Expires : time .Date (2021 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
183
188
Capabilities : capabilities ,
0 commit comments