Skip to content

Commit

Permalink
Update hash tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ehashman committed Jul 8, 2020
1 parent 2bd01f7 commit 802de55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 46 deletions.
2 changes: 1 addition & 1 deletion pkg/arm/arm.go
Expand Up @@ -38,7 +38,7 @@ func New(ctx context.Context, log *logrus.Entry, cs *api.OpenShiftManagedCluster
case "v19.0":
return v19.New(ctx, log, cs, testConfig), nil
case "v20.0":
return v19.New(ctx, log, cs, testConfig), nil
return v20.New(ctx, log, cs, testConfig), nil
}

return nil, fmt.Errorf("version %q not found", cs.Config.PluginVersion)
Expand Down
48 changes: 3 additions & 45 deletions pkg/cluster/hash_test.go
Expand Up @@ -32,23 +32,6 @@ func TestHashScaleSetStability(t *testing.T) {
role api.AgentPoolProfileRole
expectedHash string
}{
"v14.1": {
{
role: api.AgentPoolProfileRoleMaster,
// this value should not change
expectedHash: "752cc90913885e480132837ef71e915933a80fc9933767b7594867fb3848be9a",
},
{
role: api.AgentPoolProfileRoleInfra,
// this value should not change
expectedHash: "99f4eb33af2723947783a6db1c3b9fb9d36d1989b4f4f658d776efec072779f1",
},
{
role: api.AgentPoolProfileRoleCompute,
// this value should not change
expectedHash: "959b10157d2864150339914d0e5ddee5dc7d7e1e6d2318f0ef9e5325cc6b09df",
},
},
"v15.0": {
{
role: api.AgentPoolProfileRoleMaster,
Expand All @@ -66,23 +49,6 @@ func TestHashScaleSetStability(t *testing.T) {
expectedHash: "d4b9e78ba42cdb4e178ab806013ad05651993fd30cb396521a88a242211d5621",
},
},
"v16.0": {
{
role: api.AgentPoolProfileRoleMaster,
// this value should not change
expectedHash: "fa0ba544c9f5f57f9ee68cfbdbd5d3d29a883fac252a0ec588cd0646272c729f",
},
{
role: api.AgentPoolProfileRoleInfra,
// this value should not change
expectedHash: "b59dd4459ddf9775bebbf4547b180dcb4fe0a8b674fccc579bb56c840d423a1e",
},
{
role: api.AgentPoolProfileRoleCompute,
// this value should not change
expectedHash: "d4b9e78ba42cdb4e178ab806013ad05651993fd30cb396521a88a242211d5621",
},
},
"v16.1": {
{
role: api.AgentPoolProfileRoleMaster,
Expand Down Expand Up @@ -117,7 +83,7 @@ func TestHashScaleSetStability(t *testing.T) {
expectedHash: "d4b9e78ba42cdb4e178ab806013ad05651993fd30cb396521a88a242211d5621",
},
},
"v18.0": {
"v19.0": {
{
role: api.AgentPoolProfileRoleMaster,
// this value should not change
Expand Down Expand Up @@ -223,18 +189,10 @@ func TestHashSyncPodStability(t *testing.T) {
tests := map[string]struct {
expectedHash string
}{
"v14.1": {
// this value should not change
expectedHash: "6eec62c0a5e275c4d38e61ba5b9ac4c0f90f065d01d0d466fcafca4150f361e5",
},
"v15.0": {
// this value should not change
expectedHash: "5d4affe409e41f7fe5cf52af7968f5c96c911a9dfe34aad07b6d9575615ec2a8",
},
"v16.0": {
// this value should not change
expectedHash: "9bfc93fa779c54126768c6e369b4bdcfcf733e3a6d26d6701dbf04edd5ae663d",
},
"v16.1": {
// this value should not change
expectedHash: "9bfc93fa779c54126768c6e369b4bdcfcf733e3a6d26d6701dbf04edd5ae663d",
Expand All @@ -243,9 +201,9 @@ func TestHashSyncPodStability(t *testing.T) {
// this value should not change
expectedHash: "99582cec01d5a3f6e4d875f34ed73dbaba5599e641d279864e53d0e979b70ca6",
},
"v18.0": {
"v19.0": {
// this value should not change
expectedHash: "99582cec01d5a3f6e4d875f34ed73dbaba5599e641d279864e53d0e979b70ca6",
expectedHash: "9c88ca2e6bfd18f794948e6468c8d8ffc14f599c25407d9c15cb2db62b39bc92",
},
}

Expand Down

0 comments on commit 802de55

Please sign in to comment.