Merge "Removes host header from functional tests"
This commit is contained in:
commit
399fa74e9d
@ -39,7 +39,6 @@ _MARCONI_OPTIONS = (
|
|||||||
|
|
||||||
|
|
||||||
_HEADERS_OPTIONS = (
|
_HEADERS_OPTIONS = (
|
||||||
cfg.StrOpt("host", default="example.com"),
|
|
||||||
cfg.StrOpt("user_agent", default="FunctionalTests"),
|
cfg.StrOpt("user_agent", default="FunctionalTests"),
|
||||||
cfg.StrOpt("project_id", default="123456"),
|
cfg.StrOpt("project_id", default="123456"),
|
||||||
)
|
)
|
||||||
|
@ -44,7 +44,6 @@ def create_marconi_headers(conf):
|
|||||||
"""Returns headers to be used for all Marconi requests."""
|
"""Returns headers to be used for all Marconi requests."""
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Host": conf.headers.host,
|
|
||||||
"User-Agent": conf.headers.user_agent,
|
"User-Agent": conf.headers.user_agent,
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"X-Project-ID": conf.headers.project_id,
|
"X-Project-ID": conf.headers.project_id,
|
||||||
|
@ -14,6 +14,5 @@
|
|||||||
# config = functional-marconi.conf
|
# config = functional-marconi.conf
|
||||||
|
|
||||||
[headers]
|
[headers]
|
||||||
# host = example.com
|
|
||||||
# useragent = FunctionalTests
|
# useragent = FunctionalTests
|
||||||
# project_id = 123456
|
# project_id = 123456
|
||||||
|
Loading…
x
Reference in New Issue
Block a user