Switch test manifests to apps/v1, remove beta workloads calls

This commit is contained in:
Jordan Liggitt
2019-01-08 14:14:23 -05:00
parent 24f04b32c2
commit 6ca80760fd
23 changed files with 57 additions and 565 deletions

View File

@@ -434,9 +434,9 @@ func TestStorageVersionHashEqualities(t *testing.T) {
for _, r := range extList.APIResources {
if r.Name == "replicasets" {
extReplicasetHash = r.StorageVersionHash
assert.NotEmpty(extReplicasetHash)
}
}
assert.NotEmpty(extReplicasetHash)
resp, err = http.Get(server.URL + "/apis/apps/v1")
assert.Empty(err)
@@ -445,9 +445,12 @@ func TestStorageVersionHashEqualities(t *testing.T) {
for _, r := range appsList.APIResources {
if r.Name == "replicasets" {
appsReplicasetHash = r.StorageVersionHash
assert.NotEmpty(appsReplicasetHash)
}
}
assert.Equal(extReplicasetHash, appsReplicasetHash)
if len(extReplicasetHash) > 0 && len(appsReplicasetHash) > 0 {
assert.Equal(extReplicasetHash, appsReplicasetHash)
}
// Test 2: batch/v1/jobs and batch/v1beta1/cronjobs have different
// storage version hashes.