Add a test for new-style container-sync
Add a file for testing new-style container synchronization. The file is named
as "test_container_sync_middleware.py" because new-style function is defined
in wsgi middleware. Add two config items for container-sync settings for
the new test.
Almost all test code is the same as "old-style" container sync test so new
test class overrides the old one. To reuse source code of the old class,
test_container_sync.py file is cleaned up.
!!!CONFIG DEFAULT VALUE IS CHANGED!!!
The default value of 'container_sync_timeout' item is changed from 120 to
600 because the default interval time when container-sync daemon process
runs is 300 sec so tests related to container-sync had a potential to
terminate in failure. From this patch, the default value is changed to
the double of the interval time for the purpose of safety.
Partially implements blueprint add-icehouse-swift-tests
Change-Id: I81c4ad6d452ed6a96ed81af3404f47cf802c41a0
diff --git a/etc/tempest.conf.sample b/etc/tempest.conf.sample
index 02609ae..1a47899 100644
--- a/etc/tempest.conf.sample
+++ b/etc/tempest.conf.sample
@@ -806,7 +806,7 @@
# Number of seconds to time on waiting for a container to container
# synchronization complete. (integer value)
-#container_sync_timeout = 120
+#container_sync_timeout = 600
# Number of seconds to wait while looping to check the status of a
# container to container synchronization (integer value)
@@ -819,6 +819,16 @@
# User role that has reseller admin (string value)
#reseller_admin_role = ResellerAdmin
+# Name of sync realm. A sync realm is a set of clusters that have
+# agreed to allow container syncing with each other. Set the same
+# realm name as Swift's container-sync-realms.conf (string value)
+#realm_name = realm1
+
+# One name of cluster which is set in the realm whose name is set in
+# 'realm_name' item in this file. Set the same cluster name as Swift's
+# container-sync-realms.conf (string value)
+#cluster_name = name1
+
[object-storage-feature-enabled]