Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Oct 29, 2024
1 parent 36d50f7 commit 6f752f4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pkg/store/kotsstore/downstream_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ func Test_isAppVersionDeployable(t *testing.T) {
setup func(t *testing.T)
expectedIsDeployable bool
expectedCause string
wantErr bool
}{
{
name: "failing strict preflights",
Expand Down Expand Up @@ -3677,7 +3676,6 @@ func Test_isAppVersionDeployable(t *testing.T) {
},
expectedIsDeployable: false,
expectedCause: "Rollback is not supported, cluster configuration has changed.",
wantErr: false,
},
{
name: "embedded cluster config no change should allow rollbacks",
Expand Down Expand Up @@ -3727,7 +3725,6 @@ func Test_isAppVersionDeployable(t *testing.T) {
},
expectedIsDeployable: true,
expectedCause: "",
wantErr: false,
},
{
name: "embedded cluster, allowRollback = false should not allow rollbacks",
Expand Down Expand Up @@ -3777,7 +3774,6 @@ func Test_isAppVersionDeployable(t *testing.T) {
},
expectedIsDeployable: false,
expectedCause: "Rollback is not supported.",
wantErr: false,
},
/* ---- Embedded cluster config tests end here ---- */
}
Expand Down Expand Up @@ -3829,12 +3825,7 @@ func Test_isAppVersionDeployable(t *testing.T) {
test.setup(t)
}

isDeployable, cause, err := isAppVersionDeployable("APPID", test.version, test.appVersions, test.isSemverRequired, currentECConfig, versionECConfig)
if test.wantErr {
require.Error(t, err)
} else {
require.NoError(t, err)
}
isDeployable, cause := isAppVersionDeployable("APPID", test.version, test.appVersions, test.isSemverRequired, currentECConfig, versionECConfig)
assert.Equal(t, test.expectedIsDeployable, isDeployable)
assert.Equal(t, test.expectedCause, cause)
})
Expand Down

0 comments on commit 6f752f4

Please sign in to comment.