Skip to content

Commit

Permalink
feat: Move application is permitted outside of watch function and cov…
Browse files Browse the repository at this point in the history
…er with unit tests
  • Loading branch information
pasha-codefresh committed Jul 13, 2023
1 parent 73209b3 commit 133b185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/application/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ func TestIsApplicationPermitted(t *testing.T) {
t.Run("Application namespace is incorrect", func(t *testing.T) {
testApp := newTestApp()
appServer := newTestAppServer(t, testApp)
permitted := appServer.isApplicationPermitted(labels.Everything(), 0, nil, testApp.Name, testApp.Namespace, nil, *testApp)
permitted := appServer.isApplicationPermitted(labels.Everything(), 0, nil, testApp.Name, "demo", nil, *testApp)
assert.False(t, permitted)
})

Expand Down

0 comments on commit 133b185

Please sign in to comment.