We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fd763 commit 4dab18eCopy full SHA for 4dab18e
tests/st2tests.sh
@@ -30,6 +30,15 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash"
30
assert_line --partial 'St2-Api-Key'
31
}
32
33
+@test 'stanley_rsa file has correct permissions and ownership' {
34
+ local private_key="/home/stanley/.ssh/stanley_rsa"
35
+ assert_file_exist "${private_key}"
36
+ assert_file_not_empty "${private_key}"
37
+ assert_file_permission "500" "${private_key}"
38
+ assert_file_permission "400" "${private_key}"
39
+ assert_file_owner "stanley" "${private_key}"
40
+}
41
+
42
@test 'st2 user can log in with auth credentials' {
43
run st2 login ${ST2_AUTH_USERNAME} --password ${ST2_AUTH_PASSWORD} -w
44
assert_success
0 commit comments