Import kube package(cue) by GroupVersion (#1309)

* package upgrade

* package import

* Classified by groupversion

* fix test cases

* add test cases

* check diff

* lint code

* fix test

* add pacakge reference

* VersionKind

* package upgrade

package import

Classified by groupversion

fix test cases

add test cases

check diff

lint code

fix test

add pacakge reference

VersionKind

fix ci
This commit is contained in:
Jian.Li
2021-03-28 18:08:31 +08:00
committed by GitHub
parent aa548ab3d4
commit cfabcee181
6 changed files with 425 additions and 160 deletions
@@ -110,6 +110,8 @@ func TestMakeHTTPRequest(t *testing.T) {
},
}
for testName, tt := range tests {
// deep copy it before going to goroutine
tt := tt
t.Run(testName, func(t *testing.T) {
// generate a test server so we can capture and inspect the request
testServer := NewMock(tt.httpParameter.method, tt.httpParameter.statusCode, tt.httpParameter.body)