Skip to content

Commit e76419d

Browse files
committedJul 17, 2024
refactor: rename authorised to authorized
Removing all references to authorised keys from authorized keys tests to keep the naming consistent.
1 parent beea58f commit e76419d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎tests/suites/authorized_keys/machine.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ run_machine_ssh() {
1616

1717
# Watch the debug log for the agent to assert that a key has been added to
1818
# the machine.
19-
timeout 5m juju debug-log --tail | grep -m 1 'adding ssh keys to authorised keys' || true
19+
timeout 5m juju debug-log --tail | grep -m 1 'adding ssh keys to authorized keys' || true
2020

2121
# Check that the test can ssh to the machine with the new keypair and run a
2222
# command.
2323
check_contains "$(juju ssh 0 -i \"${ssh_key_file}\" echo foobar)" "foobar"
2424
}
2525

26-
# test_machine_ssh is responsible for testing that adding authorised keys to a
26+
# test_machine_ssh is responsible for testing that adding authorized keys to a
2727
# model traverse through the controller and down to the machine agents. After
2828
# this has happened ssh access to a machine should be granted for the owner of
2929
# the newly added public key.
3030
test_machine_ssh() {
3131
if [ "$(skip 'test_machine_ssh')" ]; then
32-
echo "==> TEST SKIPPED: authorisedkeys machine ssh"
32+
echo "==> TEST SKIPPED: authorized keys machine ssh"
3333
return
3434
fi
3535

‎tests/suites/authorized_keys/task.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ test_authorized_keys() {
99
echo "==> Checking for dependencies"
1010
check_dependencies juju
1111

12-
log_file="${TEST_DIR}/authorised_keys.log"
12+
log_file="${TEST_DIR}/authorized_keys.log"
1313

14-
ensure "authorisedkeys" "$log_file"
14+
ensure "authorizedkeys" "$log_file"
1515

1616
test_user_ssh_keys
1717
test_machine_ssh
1818

19-
destroy_controller "authorisedkeys"
19+
destroy_controller "authorizedkeys"
2020
}

‎tests/suites/authorized_keys/user.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ run_user_ssh_keys() {
2727

2828
test_user_ssh_keys() {
2929
if [ "$(skip 'test_user_ssh_keys')" ]; then
30-
echo "==> TEST SKIPPED: authorisedkeys user ssh keys"
30+
echo "==> TEST SKIPPED: authorized keys user ssh keys"
3131
return
3232
fi
3333

0 commit comments

Comments
 (0)
Failed to load comments.
refactor: rename authorised to authorized · JoseFMP/juju@e76419d · GitHub