TESTS: Fix testSessionRecordingConf cleanup issue
Run SSSD session recording scope=none test last to leave system in working state.
This commit is contained in:
parent
d3110ea7ef
commit
2fe72717b2
1 changed files with 5 additions and 6 deletions
|
|
@ -235,11 +235,6 @@ class TestApplication(MachineCase):
|
||||||
b.click("#btn-save-sssd-conf")
|
b.click("#btn-save-sssd-conf")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
m.download(conf_file, save_file)
|
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'
|
# Download test with scope 'Some'
|
||||||
b.set_val("#scope", "some")
|
b.set_val("#scope", "some")
|
||||||
b.set_input_text("#users", "test users")
|
b.set_input_text("#users", "test users")
|
||||||
|
|
@ -252,9 +247,13 @@ class TestApplication(MachineCase):
|
||||||
b.click("#btn-save-sssd-conf")
|
b.click("#btn-save-sssd-conf")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
m.download(conf_file, test_all_file)
|
m.download(conf_file, test_all_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)
|
||||||
# Revert to the previous config before testing to ensure test continuity
|
# Revert to the previous config before testing to ensure test continuity
|
||||||
m.upload([save_file], conf_file_path)
|
m.upload([save_file], conf_file_path)
|
||||||
m.execute("systemctl restart sssd")
|
|
||||||
# Check that the configs reflected the changes
|
# Check that the configs reflected the changes
|
||||||
conf = configparser.ConfigParser()
|
conf = configparser.ConfigParser()
|
||||||
conf.read_file(open(test_none_file, "r"))
|
conf.read_file(open(test_none_file, "r"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue