mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-09 00:03:27 +00:00
Switch test manifests to apps/v1, remove beta workloads calls
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user