mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 13:47:27 +00:00
Use new XML checks.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
4d8c6bdb69
commit
c1f7ad54ce
1 changed files with 6 additions and 2 deletions
|
@ -20,8 +20,11 @@ from . import (
|
||||||
choose_bucket_prefix,
|
choose_bucket_prefix,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ..common import with_setup_kwargs
|
from ..common import (
|
||||||
from ..xmlhelper import normalize_xml_whitespace
|
with_setup_kwargs,
|
||||||
|
normalize_xml_whitespace,
|
||||||
|
assert_xml_equal
|
||||||
|
)
|
||||||
|
|
||||||
IGNORE_FIELD = 'IGNORETHIS'
|
IGNORE_FIELD = 'IGNORETHIS'
|
||||||
|
|
||||||
|
@ -86,6 +89,7 @@ def _test_website_prep(bucket, xml_template, hardcoded_fields = {}):
|
||||||
config_xml2 = bucket.get_website_configuration_xml()
|
config_xml2 = bucket.get_website_configuration_xml()
|
||||||
config_xml2 = normalize_xml_whitespace(config_xml2, pretty_print=True) # For us to read
|
config_xml2 = normalize_xml_whitespace(config_xml2, pretty_print=True) # For us to read
|
||||||
#print("config_xml2\n", config_xml2)
|
#print("config_xml2\n", config_xml2)
|
||||||
|
assert_xml_equal(config_xml1, config_xml2)
|
||||||
eq (config_xml1, config_xml2)
|
eq (config_xml1, config_xml2)
|
||||||
f['WebsiteConfiguration'] = config_xml2
|
f['WebsiteConfiguration'] = config_xml2
|
||||||
return f
|
return f
|
||||||
|
|
Loading…
Reference in a new issue