Copy the default params dict to avoid race

The params dict passed to get_default_credentials should be
copied from DEFAULT_PARAMS, otherwise a race may happen during
unit tests which causes the wrong params to be passed in.

Closes-bug: #1431408
Change-Id: Ib58c74de0b846f6b5629067866247cfad9a63a83
diff --git a/tempest/common/cred_provider.py b/tempest/common/cred_provider.py
index 4d66ffc..bff9a0a 100644
--- a/tempest/common/cred_provider.py
+++ b/tempest/common/cred_provider.py
@@ -53,7 +53,7 @@
     if identity_version == 'v3':
         conf_attributes.append('domain_name')
     # Read the parts of credentials from config
-    params = DEFAULT_PARAMS
+    params = DEFAULT_PARAMS.copy()
     section, prefix = CREDENTIAL_TYPES[credential_type]
     for attr in conf_attributes:
         _section = getattr(CONF, section)