Finish simplifying the Seriatim role
This commit is contained in:
@@ -2,6 +2,5 @@
|
||||
- name: Converge Seriatim role
|
||||
hosts: seriatim
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- role: ansible-role-seriatim
|
||||
|
||||
@@ -74,14 +74,21 @@ missing_binary_repeat_log="$test_tmp/missing-binary-repeat.log"
|
||||
run_converge "$missing_binary_repeat_log"
|
||||
require_clean_recap "$missing_binary_repeat_log"
|
||||
|
||||
sudo cp -- /bin/false "$binary_path"
|
||||
wrong_version_log="$test_tmp/wrong-version.log"
|
||||
run_converge "$wrong_version_log"
|
||||
require_changed_recap "$wrong_version_log"
|
||||
grep -A1 -E 'TASK .*Build Seriatim' "$wrong_version_log" | grep -q '^changed:'
|
||||
wrong_version_repeat_log="$test_tmp/wrong-version-repeat.log"
|
||||
run_converge "$wrong_version_repeat_log"
|
||||
require_clean_recap "$wrong_version_repeat_log"
|
||||
custom_go_binary="$test_tmp/go"
|
||||
ln -s /snap/bin/go "$custom_go_binary"
|
||||
sudo rm -f -- "$binary_path"
|
||||
custom_go_log="$test_tmp/custom-go.log"
|
||||
run_converge "$custom_go_log" \
|
||||
-e '{"seriatim_manage_build_dependencies": false}' \
|
||||
-e "seriatim_go_binary=$custom_go_binary"
|
||||
require_changed_recap "$custom_go_log"
|
||||
grep -A1 -E 'TASK .*Build Seriatim' "$custom_go_log" | grep -q '^changed:'
|
||||
verify_release v1.5.0 "$default_commit"
|
||||
custom_go_repeat_log="$test_tmp/custom-go-repeat.log"
|
||||
run_converge "$custom_go_repeat_log" \
|
||||
-e '{"seriatim_manage_build_dependencies": false}' \
|
||||
-e "seriatim_go_binary=$custom_go_binary"
|
||||
require_clean_recap "$custom_go_repeat_log"
|
||||
|
||||
sudo chmod 0700 "$binary_path"
|
||||
metadata_log="$test_tmp/metadata.log"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
- name: Exercise Seriatim platform mutation guard
|
||||
hosts: seriatim
|
||||
gather_facts: false
|
||||
become: true
|
||||
vars:
|
||||
ansible_facts:
|
||||
distribution: "{{ test_distribution }}"
|
||||
|
||||
Reference in New Issue
Block a user