Commit ccc75639 authored by Xavier Thompson's avatar Xavier Thompson

slapproxy: Include sharedness in hateoas support

Currently hateoas support in proxy only lists non-shared instances,
so this always says that the instances are not shared.
parent 355fd1bc
...@@ -1123,6 +1123,11 @@ def hateoas_partitions(partition_reference): ...@@ -1123,6 +1123,11 @@ def hateoas_partitions(partition_reference):
'key': 'field_my_source_reference', 'key': 'field_my_source_reference',
'default': partition['software_type'], 'default': partition['software_type'],
}, },
'my_root_slave': {
'type': 'IntegerField',
'key': 'field_my_root_slave',
'default': 0,
},
}, },
}, },
'_links': { '_links': {
......
...@@ -1299,6 +1299,7 @@ class TestCliInformation(CliMasterMixin): ...@@ -1299,6 +1299,7 @@ class TestCliInformation(CliMasterMixin):
{ {
"software-url": "http://sr0//", "software-url": "http://sr0//",
"software-type": "default", "software-type": "default",
"shared": False,
"requested-state": "started", "requested-state": "started",
"instance-parameters": {}, "instance-parameters": {},
"connection-parameters": {}, "connection-parameters": {},
...@@ -1311,6 +1312,7 @@ class TestCliInformation(CliMasterMixin): ...@@ -1311,6 +1312,7 @@ class TestCliInformation(CliMasterMixin):
{ {
"software-url": "http://sr1//", "software-url": "http://sr1//",
"software-type": "MyType1", "software-type": "MyType1",
"shared": False,
"requested-state": "started", "requested-state": "started",
"instance-parameters": {"couscous": "hello"}, "instance-parameters": {"couscous": "hello"},
"connection-parameters": {}, "connection-parameters": {},
......
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