Make name of the demo user unique

When tempestconf during the creation of a user discovered that the user
already existed then it expected that the password for this account has
a default value (secret). This could cause errors because the existing
account may have had a different password than the default value.

To prevent this from happening the tempestconf now creates a user named
'demo_tempestconf' instead of 'demo'. This change makes sure that collisions
are avoided. If the system already contains a user named 'demo_tempestconf'
then it was probably created by tempestconf.

Story: 2007665
Task: 39759
Change-Id: Iff8883b2d8fd80d417d5d5ee1bc9bebae15e213a
This commit is contained in:
Lukas Piwowarski 2020-05-20 12:26:52 +00:00
parent e5f2ba7c7d
commit 2564110490
2 changed files with 9 additions and 2 deletions

View File

@ -83,10 +83,10 @@ def load_basic_defaults(conf):
("log_file", "tempest.log")
],
"identity": [
("username", "demo"),
("username", "demo_tempestconf"),
("password", "secrete"),
("project_name", "demo"),
("alt_username", "alt_demo"),
("alt_username", "alt_demo_tempestconf"),
("alt_password", "secrete"),
("alt_project_name", "alt_demo"),
("disable_ssl_certificate_validation", "true")

View File

@ -0,0 +1,7 @@
---
features:
- |
Tempestconf now creates users with name that ends with '_tempestconf'.
This change makes sure that collisions are avoided. For example, if the
system already contains a user named 'demo_tempestconf' then it was
probably created by tempestconf.