Commit 8b2909fb authored by Trond Aasan's avatar Trond Aasan
Browse files

CIM-58 Use example-config.json as a fixture

parent 4bf4934b
......@@ -2,20 +2,20 @@
"_": "Config example for the cim_client command-line utility",
"client": {
"endpoints": {
"url": "https://api-gateway.uio.no/sws/v2/",
"upsert_person_url": "_webservices/?ws=contacts/upsert/1.0",
"delete_person_url": "_webservices/?ws=contacts/delete/1.0",
"import_organisations_url": "_webservices/?ws=contacts/organisations/1.0"
},
"tokens": {
"api_key": "foooooo-bbbbbb-aaaaaa-rrrrr"
"url": "https://example.com",
"upsert_person_url": "update_person_url",
"delete_person_url": "delete_person_url",
"import_organisations_url": "import_organisations_url"
},
"headers": {
"X-Gravitee-Api-Key": "..."
"header_key": "header_value"
},
"return_objects": true,
"use_sessions": true,
"auth": ["username", "password"]
"auth": [
"auth_username",
"auth_password"
]
},
"logging": {
"version": 1,
......
......@@ -72,4 +72,4 @@ def organisations_missing_parent():
@pytest.fixture
def config_example():
return load_json_file("config.json")
return load_json_file("../../example-config.json")["client"]
{
"endpoints": {
"url": "https://example.com",
"upsert_person_url": "update_person_url",
"delete_person_url": "delete_person_url",
"import_organisations_url": "import_organisations_url"
},
"headers": {
"header_key": "header_value"
},
"return_objects": true,
"use_sessions": true,
"auth": [
"auth_username",
"auth_password"
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment