Skip to content

Commit

Permalink
Add Name and APIVersion assert test
Browse files Browse the repository at this point in the history
  • Loading branch information
imskr committed Jun 6, 2022
1 parent 16f7ccc commit 0684a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/mattermost/mattermost/mattermost_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ func TestCheckMattermost(t *testing.T) {
// Assert owner references are set here
assert.NotEmpty(t, job.ObjectMeta.OwnerReferences)
assert.Equal(t, "Mattermost", job.ObjectMeta.OwnerReferences[0].Kind)
assert.Equal(t, mmName, job.ObjectMeta.OwnerReferences[0].Name)
assert.Equal(t, "installation.mattermost.com/v1beta1", job.ObjectMeta.OwnerReferences[0].APIVersion)

// Set job status to succeeded so that test can proceed
now := metav1.Now()
Expand Down

0 comments on commit 0684a2d

Please sign in to comment.