Exemple #1
0
    def __init__(self,
                 client,
                 config,
                 interaction,
                 check_factory=None,
                 msg_factory=None,
                 features=None,
                 verbose=False,
                 expect_exception=None):
        self.client = client
        self.client_config = config
        self.test_output = []
        self.features = features
        self.verbose = verbose
        self.check_factory = check_factory
        self.msg_factory = msg_factory
        self.expect_exception = expect_exception

        self.cjar = {
            "browser": cookielib.CookieJar(),
            "rp": cookielib.CookieJar(),
            "service": cookielib.CookieJar()
        }

        self.protocol_response = []
        self.last_response = None
        self.last_content = None
        self.response = None
        self.interaction = Interaction(self.client, interaction)
        self.exception = None
Exemple #2
0
    def __init__(
            self,
            instance,
            config,
            interaction,
            json_config,
            check_factory,
            entity_id,
            msg_factory=None,
            features=None,
            constraints=None,  # verbose=False,
            expect_exception=None,
            commandlineargs=None):
        self.instance = instance
        self._config = config
        self.test_output = []
        self.features = features
        #self.verbose = verbose  # removed (not used)
        self.check_factory = check_factory
        self.msg_factory = msg_factory
        self.expect_exception = expect_exception
        self.commandlineargs = commandlineargs

        self.cjar = {
            "browser": cookielib.CookieJar(),
            "rp": cookielib.CookieJar(),
            "service": cookielib.CookieJar()
        }

        self.protocol_response = []
        self.last_response = None
        self.last_content = None
        self.response = None
        self.interaction = Interaction(self.instance, interaction)
        self.exception = None

        self.entity_id = entity_id
        self.cjar = {"rp": cookielib.CookieJar()}
        self.args = {}
        self.qargs = {}
        self.response_args = {}
        self.saml_response = []
        self.destination = ""
        self.request = None
        self.position = ""
        self.response = None
        self.oper = None
        self.msg_constraints = constraints
        self.json_config = json_config
        self.start_page = json_config["start_page"]
Exemple #3
0
    def _func(self, conv):
        interaction = Interaction(conv.instance, [conv.json_config["result"]])
        _int = interaction.pick_interaction(content=conv.last_response.content)

        return {}