Skip to content

Commit

Permalink
Verify secret manifest created when role exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
abutcher committed Sep 7, 2023
1 parent 870d141 commit a15b7a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/provisioning/aws/create-iam-roles_test.go
Expand Up @@ -235,7 +235,11 @@ func TestIAMRoles(t *testing.T) {

return tempDirName
},
verify: func(t *testing.T, targetDir, manifestsDir string) {},
verify: func(t *testing.T, targetDir, manifestsDir string) {
files, err := ioutil.ReadDir(manifestsDir)
require.NoError(t, err, "unexpected error listing files in manifestsDir")
assert.Equal(t, 1, provisioning.CountNonDirectoryFiles(files), "Should be exactly 1 secret in manifestsDir for one CredReq")
},
},
}

Expand Down

0 comments on commit a15b7a3

Please sign in to comment.