diff options
author | Sebastian Wagner <sewagner@redhat.com> | 2021-06-18 11:35:29 +0200 |
---|---|---|
committer | Sebastian Wagner <sewagner@redhat.com> | 2021-07-02 10:35:18 +0200 |
commit | ad7bec46d7e9e1aa3ff915c12351d389d26eeaec (patch) | |
tree | 4542ab5f335b731805af8b92e673fcc1150c810b /qa/tasks/tests/test_radosgw_admin.py | |
parent | qa/tox.ini: rename pytest environment to py3 to match CMakeLists.txt (diff) | |
download | ceph-ad7bec46d7e9e1aa3ff915c12351d389d26eeaec.tar.xz ceph-ad7bec46d7e9e1aa3ff915c12351d389d26eeaec.zip |
qa/tasks/tests/test_radosgw_admin.py: Fix unit test
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Diffstat (limited to 'qa/tasks/tests/test_radosgw_admin.py')
-rw-r--r-- | qa/tasks/tests/test_radosgw_admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/tasks/tests/test_radosgw_admin.py b/qa/tasks/tests/test_radosgw_admin.py index 4e86d5c2b52..8506eda7b1b 100644 --- a/qa/tasks/tests/test_radosgw_admin.py +++ b/qa/tasks/tests/test_radosgw_admin.py @@ -2,11 +2,11 @@ from unittest.mock import Mock from tasks import radosgw_admin -acl_with_version = """<?xml version="1.0" encoding="UTF-8"?><AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> +acl_with_version = b"""<?xml version="1.0" encoding="UTF-8"?><AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> """ # noqa -acl_without_version = """<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> +acl_without_version = b"""<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> """ # noqa |