Example #1
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in dynreg.RegistrationRequest().parameters():
            try:
                val = conv.client_config["provider_info"][arg]
            except KeyError:
                try:
                    val = conv.client_config["preferences"][arg]
                except KeyError:
                    try:
                        val = conv.client_config["client_info"][arg]
                    except KeyError:
                        try:
                            val = conv.client_config["client_registration"][
                                arg]
                        except KeyError:
                            continue
            self.request_args[arg] = copy.copy(val)
        try:
            del self.request_args["key_export_url"]
        except KeyError:
            pass

        # verify the registration info
        self.tests["post"].extend([RegistrationInfo, CheckHTTPResponse])
Example #2
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in dynreg.RegistrationRequest().parameters():
            try:
                val = conv.client_config["provider_info"][arg]
            except KeyError:
                try:
                    val = conv.client_config["preferences"][arg]
                except KeyError:
                    try:
                        val = conv.client_config["client_info"][arg]
                    except KeyError:
                        try:
                            val = conv.client_config["client_registration"][arg]
                        except KeyError:
                            continue
            self.request_args[arg] = copy.copy(val)
        try:
            del self.request_args["key_export_url"]
        except KeyError:
            pass

        # verify the registration info
        self.tests["post"].extend([RegistrationInfo, CheckHTTPResponse])
Example #3
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        _reg_info = conv.client_config["registration_info"]
        for arg in dynreg.RegistrationRequest().parameters():
            if arg in _reg_info:
                self.request_args[arg] = _reg_info[arg]

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #4
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        _reg_info = conv.client_config["registration_info"]
        for arg in dynreg.RegistrationRequest().parameters():
            if arg in _reg_info:
                self.request_args[arg] = _reg_info[arg]

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #5
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in dynreg.RegistrationRequest().parameters():
            if arg in conv.client_config:
                self.request_args[arg] = conv.client_config[arg]
            elif arg in conv.client_config["preferences"]:
                self.request_args[arg] = conv.client_config["preferences"][arg]
        try:
            del self.request_args["key_export_url"]
        except KeyError:
            pass

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #6
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in dynreg.RegistrationRequest().parameters():
            if arg in conv.client_config:
                self.request_args[arg] = conv.client_config[arg]
            elif arg in conv.client_config["preferences"]:
                self.request_args[arg] = conv.client_config["preferences"][arg]
        try:
            del self.request_args["key_export_url"]
        except KeyError:
            pass

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #7
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in message.RegistrationRequest().parameters():
            try:
                val = conv.client_config["provider_info"][arg]
            except KeyError:
                try:
                    val = conv.client_config["preferences"][arg]
                except KeyError:
                    try:
                        val = conv.client_config["client_info"][arg]
                    except KeyError:
                        try:
                            val = conv.client_config["client_registration"][arg]
                        except KeyError:
                            continue
            self.request_args[arg] = copy.copy(val)

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #8
0
    def __init__(self, conv):
        PostRequest.__init__(self, conv)

        for arg in message.RegistrationRequest().parameters():
            try:
                val = conv.client_config["provider_info"][arg]
            except KeyError:
                try:
                    val = conv.client_config["preferences"][arg]
                except KeyError:
                    try:
                        val = conv.client_config["client_info"][arg]
                    except KeyError:
                        try:
                            val = conv.client_config["client_registration"][
                                arg]
                        except KeyError:
                            continue
            self.request_args[arg] = copy.copy(val)

        # verify the registration info
        self.tests["post"].append(RegistrationInfo)
Example #9
0
 def __init__(self, conv):
     PostRequest.__init__(self, conv)
     self.tests["post"] = []
Example #10
0
 def __init__(self, conv):
     PostRequest.__init__(self, conv)
     self.tests["post"] = []