Skip to content

Commit

Permalink
test corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-pieszka committed Jul 18, 2024
1 parent a801aa0 commit dd43983
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestCreateRuntimeResourceStep_HappyPath_ActualCreation(t *testing.T) {
}, &runtime)
assert.NoError(t, err)
assert.Equal(t, preOperation.RuntimeID, runtime.Name)
assert.Equal(t, "my-kyma", runtime.Labels["operator.kyma-project.io/kyma-name"])
assert.Equal(t, "runtime-58f8c703-1756-48ab-9299-a847974d1fee", runtime.Labels["operator.kyma-project.io/kyma-name"])

assertLabels(t, preOperation, runtime)
assertSecurity(t, runtime)
Expand All @@ -119,7 +119,7 @@ func TestCreateRuntimeResourceStep_HappyPath_ActualCreation(t *testing.T) {

func assertSecurity(t *testing.T, runtime imv1.Runtime) {
assert.True(t, reflect.DeepEqual(runtime.Spec.Security.Administrators, expectedAdministrators))
assert.Equal(t, runtime.Spec.Security.Networking.Filter.Egress, false)
assert.Equal(t, runtime.Spec.Security.Networking.Filter.Egress, imv1.Egress(imv1.Egress{Enabled: false}))
}

func assertLabels(t *testing.T, preOperation internal.Operation, runtime imv1.Runtime) {
Expand Down

0 comments on commit dd43983

Please sign in to comment.