Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Graetz <[email protected]>
  • Loading branch information
fg91 committed Dec 22, 2023
1 parent de102f7 commit 46ee40d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Test_newTaskExecutionMetadata(t *testing.T) {
})

t.Run("Inject exec identity", func(t *testing.T) {
config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: true})
assert.NoError(t, config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: true}))

existingMetadata := &mocks.TaskExecutionMetadata{}
existingAnnotations := map[string]string{}
Expand All @@ -88,7 +88,7 @@ func Test_newTaskExecutionMetadata(t *testing.T) {
})

t.Run("No inject exec identity", func(t *testing.T) {
config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: false})
assert.NoError(t, config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: false}))

existingMetadata := &mocks.TaskExecutionMetadata{}
existingAnnotations := map[string]string{}
Expand All @@ -109,7 +109,7 @@ func Test_newTaskExecutionMetadata(t *testing.T) {
})

t.Run("Inject non-existing exec identity", func(t *testing.T) {
config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: true}) // configure to inject exec identity
assert.NoError(t, config.SetK8sPluginConfig(&config.K8sPluginConfig{InjectExecutionIdentity: true})) // configure to inject exec identity

existingMetadata := &mocks.TaskExecutionMetadata{}
existingAnnotations := map[string]string{}
Expand Down

0 comments on commit 46ee40d

Please sign in to comment.