コード例 #1
0
    def rh_sso_hammer_auth_setup(self, request):
        """rh_sso hammer setup before running the auth login tests"""
        self.configure_hammer_session()
        client_config = {"publicClient": "true"}
        update_client_configuration(client_config)

        def rh_sso_hammer_auth_cleanup():
            """restore the hammer config backup file and rhsso client settings"""
            run_command(f"mv {HAMMER_CONFIG}.backup {HAMMER_CONFIG}")
            client_config = {"publicClient": "false"}
            update_client_configuration(client_config)

        request.addfinalizer(rh_sso_hammer_auth_cleanup)
コード例 #2
0
 def rh_sso_hammer_auth_cleanup():
     """restore the hammer config backup file and rhsso client settings"""
     run_command(f"mv {HAMMER_CONFIG}.backup {HAMMER_CONFIG}")
     client_config = {"publicClient": "false"}
     update_client_configuration(client_config)