Merge "Add a bubblewrap ro mount test"

This commit is contained in:
Zuul 2022-04-28 09:01:14 +00:00 committed by Gerrit Code Review
commit b68dd57f19
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,12 @@
- hosts: localhost
tasks:
- name: Verify that we are unable to write to a ro mount
shell: "cp {{ zuul.executor.inventory_file }} /bin/bubblewrap-test-failure"
ignore_errors: true
register: cp_result
- assert:
that:
- cp_result.rc == 1
- "'Read-only file system' in cp_result.stdout"
- name: Verify that we are able to write to a rw mount
shell: "cp {{ zuul.executor.inventory_file }} {{ zuul.executor.work_root }}/bubblewrap-test-success"

View File

@ -239,3 +239,9 @@
name: failpost
run: playbooks/post-broken.yaml
post-run: playbooks/post-broken.yaml
- job:
name: bubblewrap
run: playbooks/bubblewrap.yaml
nodeset:
nodes: []

View File

@ -34,3 +34,4 @@
- multiple-child-no-run
- multiple-run
- multiple-run-failure
- bubblewrap

View File

@ -3789,6 +3789,9 @@ class FunctionalAnsibleMixIn(object):
build_python27.uuid + '.secrets')
with open(secrets_path) as f:
self.assertEqual(f.read(), "test-username test-password")
build_bubblewrap = self.getJobFromHistory('bubblewrap')
with self.jobLog(build_bubblewrap):
self.assertEqual(build_bubblewrap.result, 'SUCCESS')
def test_repo_ansible(self):
A = self.fake_gerrit.addFakeChange('org/ansible', 'master', 'A')