From 606f20b66e3838632bec21ec827b3e4b4e7047dc Mon Sep 17 00:00:00 2001
From: licanwei
Date: Fri, 10 May 2019 09:51:21 +0800
Subject: [PATCH] Fix API version header
X-OpenStack-Watcher-API-Version should be OpenStack-API-Version
Change-Id: Ibfb7362f4b5df0775e8215b6e0bd83f9bd784244
---
watcher/tests/api/v1/test_audits.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/watcher/tests/api/v1/test_audits.py b/watcher/tests/api/v1/test_audits.py
index faab6ded7..c40d16dfb 100644
--- a/watcher/tests/api/v1/test_audits.py
+++ b/watcher/tests/api/v1/test_audits.py
@@ -941,7 +941,7 @@ class TestPost(api_base.FunctionalTest):
response = self.post_json(
'/audits',
audit_dict,
- headers={'X-OpenStack-Watcher-API-Version': '1.0'},
+ headers={'OpenStack-API-Version': 'infra-optim 1.0'},
expect_errors=True)
self.assertEqual('application/json', response.content_type)
self.assertEqual(406, response.status_int)