@@ -47,7 +47,7 @@ func (b bootstrapSecrets) Get(name string) (*corev1.Secret, error) {
47
47
48
48
// TestBootstrapTokenAuth tests the bootstrap token auth provider
49
49
func TestBootstrapTokenAuth (t * testing.T ) {
50
- tokenId , err := bootstraputil .GenerateTokenId ()
50
+ tokenID , err := bootstraputil .GenerateTokenId ()
51
51
if err != nil {
52
52
t .Fatalf ("unexpected error: %v" , err )
53
53
}
@@ -62,7 +62,7 @@ func TestBootstrapTokenAuth(t *testing.T) {
62
62
},
63
63
Type : corev1 .SecretTypeBootstrapToken ,
64
64
Data : map [string ][]byte {
65
- bootstrapapi .BootstrapTokenIDKey : []byte (tokenId ),
65
+ bootstrapapi .BootstrapTokenIDKey : []byte (tokenID ),
66
66
bootstrapapi .BootstrapTokenSecretKey : []byte (secret ),
67
67
bootstrapapi .BootstrapTokenUsageAuthentication : []byte ("true" ),
68
68
},
@@ -74,7 +74,7 @@ func TestBootstrapTokenAuth(t *testing.T) {
74
74
},
75
75
Type : corev1 .SecretTypeBootstrapToken ,
76
76
Data : map [string ][]byte {
77
- bootstrapapi .BootstrapTokenIDKey : []byte (tokenId ),
77
+ bootstrapapi .BootstrapTokenIDKey : []byte (tokenID ),
78
78
bootstrapapi .BootstrapTokenSecretKey : []byte ("invalid" ),
79
79
bootstrapapi .BootstrapTokenUsageAuthentication : []byte ("true" ),
80
80
},
@@ -86,7 +86,7 @@ func TestBootstrapTokenAuth(t *testing.T) {
86
86
},
87
87
Type : corev1 .SecretTypeBootstrapToken ,
88
88
Data : map [string ][]byte {
89
- bootstrapapi .BootstrapTokenIDKey : []byte (tokenId ),
89
+ bootstrapapi .BootstrapTokenIDKey : []byte (tokenID ),
90
90
bootstrapapi .BootstrapTokenSecretKey : []byte ("invalid" ),
91
91
bootstrapapi .BootstrapTokenUsageAuthentication : []byte ("true" ),
92
92
bootstrapapi .BootstrapTokenExpirationKey : []byte (bootstraputil .TimeStringFromNow (- time .Hour )),
@@ -134,7 +134,7 @@ func TestBootstrapTokenAuth(t *testing.T) {
134
134
previousResourceVersion := make (map [string ]float64 )
135
135
transport := http .DefaultTransport
136
136
137
- token := tokenId + "." + secret
137
+ token := tokenID + "." + secret
138
138
var bodyStr string
139
139
if test .request .body != "" {
140
140
sub := ""
0 commit comments