Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
it-bott-integrasjoner
cim-client
Commits
8b2909fb
Commit
8b2909fb
authored
Apr 26, 2021
by
Trond Aasan
Browse files
CIM-58 Use example-config.json as a fixture
parent
4bf4934b
Changes
3
Hide whitespace changes
Inline
Side-by-side
example-config.json
View file @
8b2909fb
...
...
@@ -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
,
...
...
tests/conftest.py
View file @
8b2909fb
...
...
@@ -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"
]
tests/fixtures/config.json
deleted
100644 → 0
View file @
4bf4934b
{
"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"
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment