Allow for overriding the user info by defining it in the test config file.
This commit is contained in:
@@ -249,8 +249,9 @@ class Conversation():
|
||||
|
||||
args.update(resp._response_args)
|
||||
|
||||
if "identity" in self.json_config:
|
||||
args["identity"] = self.json_config["identity"]
|
||||
for param in ["identity", "userid"]:
|
||||
if param in self.json_config:
|
||||
args[param] = self.json_config[param]
|
||||
|
||||
if resp == ErrorResponse:
|
||||
func = getattr(self.instance, "create_error_response")
|
||||
|
||||
@@ -32,7 +32,8 @@ info = {
|
||||
"identity": {
|
||||
"given_name": "Roland",
|
||||
"sn": "Hedberg"
|
||||
}
|
||||
},
|
||||
"userid": "roland"
|
||||
}
|
||||
|
||||
print json.dumps(info)
|
||||
Reference in New Issue
Block a user