blob: c0b26b88fceb7429e710434cb840f879f9c94637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
def register_keystone(m):
m.register_uri(
'POST', 'http://keystone:5000/v3/auth/tokens',
headers={'X-Subject-Token': "111111111"}
)
m.register_uri(
'DELETE', 'http://keystone:5000/v3/auth/tokens',
headers={'X-Subject-Token': "111111111"}
)
m.register_uri(
'POST', 'http://keystone:5000/v3/users?name=testuser&domain_id=default',
json={"users": {}}
)
m.register_uri(
'GET', 'http://keystone:5000/v3/users?name=testuser&domain_id=default',
json={"users": {}}
)
m.register_uri(
'POST', 'http://keystone:5000/v3/users/',
json={"users": [{
"id": "1111111111111"
}]}
)
|