diff options
Diffstat (limited to 'nova/tests')
3 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/integrated/api_samples/os-agents/agent-post-resp.json.tpl b/nova/tests/integrated/api_samples/os-agents/agent-post-resp.json.tpl index abe83564f7..79e41ceafc 100644 --- a/nova/tests/integrated/api_samples/os-agents/agent-post-resp.json.tpl +++ b/nova/tests/integrated/api_samples/os-agents/agent-post-resp.json.tpl @@ -6,7 +6,7 @@ "version": "%(version)s", "md5hash": "%(md5hash)s", "url": "%(url)s", - "agent_id": "%(agent_id)d" + "agent_id": 1 } } diff --git a/nova/tests/integrated/api_samples/os-agents/agents-get-resp.json.tpl b/nova/tests/integrated/api_samples/os-agents/agents-get-resp.json.tpl index dac1f76ffb..30562289fc 100644 --- a/nova/tests/integrated/api_samples/os-agents/agents-get-resp.json.tpl +++ b/nova/tests/integrated/api_samples/os-agents/agents-get-resp.json.tpl @@ -7,7 +7,7 @@ "version": "%(version)s", "md5hash": "%(md5hash)s", "url": "%(url)s", - "agent_id": "%(agent_id)d" + "agent_id": 1 } ] } diff --git a/nova/tests/integrated/test_api_samples.py b/nova/tests/integrated/test_api_samples.py index 1319deb2f4..a8c0c3b5b4 100644 --- a/nova/tests/integrated/test_api_samples.py +++ b/nova/tests/integrated/test_api_samples.py @@ -1368,10 +1368,10 @@ class AgentsJsonTest(ApiSampleTestBaseV2): 'os': 'os', 'version': '8.0', 'md5hash': 'add6bb58e139be103324d04d82d8f545', - 'id': '1'}] + 'id': 1}] def fake_agent_build_create(context, values): - values['id'] = '1' + values['id'] = 1 agent_build_ref = models.AgentBuild() agent_build_ref.update(values) return agent_build_ref |