From cba99b097a22f561e4ff967e74b816d0fbaba337 Mon Sep 17 00:00:00 2001 From: Scott Poore Date: Tue, 27 Jun 2023 10:17:54 -0500 Subject: [PATCH] test: add check for sssd config id_provider proxy The sssd files provider configuration was changed to use the proxy with a files proxy library. Adding a check to the testSessionRecordingConf test case to confirm expected settings added to config stub when created. Signed-off-by: Scott Poore --- test/check-application | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/check-application b/test/check-application index ed6e75e..c764310 100755 --- a/test/check-application +++ b/test/check-application @@ -266,6 +266,9 @@ class TestApplication(testlib.MachineCase): self.assertEqual(conf["session_recording"]["scope"], "all") self.assertEqual(conf["session_recording"]["exclude_users"], "testuser1") self.assertEqual(conf["session_recording"]["exclude_groups"], "testgroup1") + self.assertEqual(conf["domain/nssfiles"]["id_provider"], "proxy") + self.assertEqual(conf["domain/nssfiles"]["proxy_lib_name"], "files") + self.assertEqual(conf["domain/nssfiles"]["proxy_pam_target"], "sssd-shadowutils") conf.read_file(open(test_none_file, "r")) self.assertEqual(conf["session_recording"]["scope"], "none")