diff options
author | Eyal Posener <eyal@stratoscale.com> | 2016-02-04 11:35:47 +0200 |
---|---|---|
committer | Shoham Peller <shoham.peller@stratoscale.com> | 2016-02-04 11:49:17 +0200 |
commit | a67056d5c3c1aed5a776f1f247656476d6e37029 (patch) | |
tree | f93a0af11cbc0fe6f5b6bc89efa1e32fe0aeee2f /tempest/api/compute | |
parent | 86408d6158e6f4d766ef973c056df33410a4d0d0 (diff) | |
download | tempest-a67056d5c3c1aed5a776f1f247656476d6e37029.tar.gz |
Fixed bug with url building
The requested server ID contains the hash tag, which makes the sent
request url suffix of the form:
`/v2/tenant-id/servers/!@#$%^&*()/action`, which includes a '#'.
The path of this url is `/v2/tenant-id/servers/!@` and the fragment
identifier of this path is `$%^&*()/action`. This is not the right
behavior and might lead to failures when a backend server parses the
url correctly.
Removing the '#' from the ID fixes this.
Change-Id: I1ce02e78324ccbca314218a8e62967db68e59a80
Closes-bug: #1541761
Diffstat (limited to 'tempest/api/compute')
-rw-r--r-- | tempest/api/compute/images/test_images_negative.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tempest/api/compute/images/test_images_negative.py b/tempest/api/compute/images/test_images_negative.py index 8f6ede9e0..8706566ce 100644 --- a/tempest/api/compute/images/test_images_negative.py +++ b/tempest/api/compute/images/test_images_negative.py @@ -68,7 +68,7 @@ class ImagesNegativeTestJSON(base.BaseV2ComputeTest): resp = {} resp['status'] = None self.assertRaises(lib_exc.NotFound, self.create_image_from_server, - '!@#$%^&*()', name=name, meta=meta) + '!@$%^&*()', name=name, meta=meta) @test.attr(type=['negative']) @test.idempotent_id('ec176029-73dc-4037-8d72-2e4ff60cf538') |