Added artifact collection upon failure

This commit is contained in:
Benjamin Graham 2020-06-11 16:25:27 -04:00 committed by Justin Stephenson
parent 7d9391da3f
commit bc24785d98
2 changed files with 9 additions and 1 deletions

View file

@ -204,16 +204,19 @@ class TestApplication(MachineCase):
# Save the existing config
b.click("#btn-save-sssd-conf")
time.sleep(1)
m.download(conf_file, save_file)
# Download test with scope 'None'
b.set_val("#scope", "none")
b.click("#btn-save-sssd-conf")
time.sleep(1)
m.download(conf_file, test_none_file)
# Download test with scope 'Some'
b.set_val("#scope", "some")
b.set_input_text("#users", "test users")
b.set_input_text("#groups", "test groups")
b.click("#btn-save-sssd-conf")
time.sleep(1)
m.download(conf_file, test_some_file)
# Download test with scope 'All'
b.set_val("#scope", "all")