aboutsummaryrefslogtreecommitdiffstats
path: root/moon_authz
diff options
context:
space:
mode:
authorfrancois.cellier <francois.cellier@orange.com>2018-03-07 12:52:25 +0100
committerfrancois.cellier <francois.cellier@orange.com>2018-03-13 12:03:33 +0100
commit0983f9169f3e90629ee845926d56ac674d4b1a34 (patch)
treec2a678561a06706881fb94402ea09ceae4c42241 /moon_authz
parent7d7a0a56ad4dc58ae24e205187b6129f7288bb46 (diff)
Replace partner_id field by extra field. Do some refactoring to remove code duplication on sql.py
Change-Id: I67576e20247e1f2fd71e18b92b9e4b6e8c86e44b
Diffstat (limited to 'moon_authz')
-rw-r--r--moon_authz/tests/unit_python/mock_pods.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/moon_authz/tests/unit_python/mock_pods.py b/moon_authz/tests/unit_python/mock_pods.py
index 74801cd1..9e05e335 100644
--- a/moon_authz/tests/unit_python/mock_pods.py
+++ b/moon_authz/tests/unit_python/mock_pods.py
@@ -87,7 +87,7 @@ subject_mock = {
"name": "testuser",
"email": "mail",
"id": "89ba91c18dd54abfbfde7a66936c51a6",
- "partner_id": ""
+ "extra": {}
}
},
"policy_id_1": {
@@ -141,7 +141,7 @@ object_mock = {
"name": "vm1",
"description": "test",
"id": "9089b3d2ce5b4e929ffc7e35b55eba1a",
- "partner_id": "",
+ "extra": {},
"policy_list": [
"f8f49a779ceb47b3ac810f01ef71b4e0",
"636cd473324f4c0bbd9102cb5b62a16d"
@@ -195,7 +195,7 @@ action_mock = {
"name": "boot",
"description": "test",
"id": "cdb3df220dc04a6ea3334b994827b068",
- "partner_id": "",
+ "extra": {},
"policy_list": [
"f8f49a779ceb47b3ac810f01ef71b4e0",
"636cd473324f4c0bbd9102cb5b62a16d"
@@ -205,7 +205,7 @@ action_mock = {
"name": "stop",
"description": "test",
"id": "cdb3df220dc04a6ea3334b994827b068",
- "partner_id": "",
+ "extra": {},
"policy_list": [
"f8f49a779ceb47b3ac810f01ef71b4e0",
"636cd473324f4c0bbd9102cb5b62a16d"
@@ -215,7 +215,7 @@ action_mock = {
"name": "start",
"description": "test",
"id": "9f5112afe9b34a6c894eb87246ccb7aa",
- "partner_id": "",
+ "extra": {},
"policy_list": [
"f8f49a779ceb47b3ac810f01ef71b4e0",
"636cd473324f4c0bbd9102cb5b62a16d"