)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"064a9360a85f213a2fc9f08af9417afb2a775c61","unresolved":false,"context_lines":[{"line_number":15,"context_line":"exists then a user with name \u0027demo1\u0027 (or demo2, demo3, ...) and default"},{"line_number":16,"context_line":"password \u0027secret\u0027 is created."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Story: 2007665"},{"line_number":19,"context_line":"Change-Id: Iff8883b2d8fd80d417d5d5ee1bc9bebae15e213a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ff570b3c_b6d74f4b","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":14},"updated":"2020-05-20 17:03:17.000000000","message":"Add also the number of the task, otherwise it\u0027s status won\u0027t be updated automatically.","commit_id":"aa5f926e12a4ef5bf6110e046e1a89a2f5dc444f"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"552d3532c0d2fd7f07c1ac9d293857b02c3fed17","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Lukas Piwowarski \u003clpiwowar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2020-05-25 09:42:32 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Make name of the demo user unique"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When tempestconf during the creation of a user discovered that the user"},{"line_number":10,"context_line":"already existed then it expected that the password for this account has"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ff570b3c_a54eacbe","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":5},"updated":"2020-05-25 12:02:19.000000000","message":"you can remove this already","commit_id":"c5e62c1b3ef20dd3d257e7b673b1f8b48b9d97fb"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"552d3532c0d2fd7f07c1ac9d293857b02c3fed17","unresolved":false,"context_lines":[{"line_number":16,"context_line":"are avoided. If the system already contains a user named \u0027demo-tempestconf\u0027"},{"line_number":17,"context_line":"then it was probably created by tempestconf."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Story: 2007665"},{"line_number":20,"context_line":"Change-Id: Iff8883b2d8fd80d417d5d5ee1bc9bebae15e213a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ff570b3c_e5c5440c","line":19,"updated":"2020-05-25 12:02:19.000000000","message":"add here also the task number:\nTask: 39759\n\nOtherwise the status of the task in storyboard is not automatically updated","commit_id":"c5e62c1b3ef20dd3d257e7b673b1f8b48b9d97fb"}],"config_tempest/users.py":[{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"064a9360a85f213a2fc9f08af9417afb2a775c61","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        :type username: string"},{"line_number":126,"context_line":"        :type password: string"},{"line_number":127,"context_line":"        :type project_name: string"},{"line_number":128,"context_line":"        \"\"\""},{"line_number":129,"context_line":"        LOG.info(\"Creating user \u0027%s\u0027 with project \u0027%s\u0027 and password \u0027%s\u0027\","},{"line_number":130,"context_line":"                 username, project_name, password)"},{"line_number":131,"context_line":"        project_description \u003d \"Project for Tempest %s user\" % username"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff570b3c_36485f2b","line":128,"range":{"start_line":128,"start_character":8,"end_line":128,"end_character":9},"updated":"2020-05-20 17:03:17.000000000","message":"update the docstring for the new fallback argument","commit_id":"aa5f926e12a4ef5bf6110e046e1a89a2f5dc444f"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"064a9360a85f213a2fc9f08af9417afb2a775c61","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                  \u0027tenantId\u0027: proj_id, \u0027email\u0027: email}"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        # create a user"},{"line_number":146,"context_line":"        unique_ids \u003d itertools.chain([\"\"], itertools.count(start\u003d1))"},{"line_number":147,"context_line":"        for unique_id in unique_ids:"},{"line_number":148,"context_line":"            params[\u0027name\u0027] \u003d username + str(unique_id)"},{"line_number":149,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff570b3c_f469bc24","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":68},"updated":"2020-05-20 17:03:17.000000000","message":"I wonder if this is an overkill or not .. i believe that in 99,99% of case there will be just one demo user in the system prior tempestconf execution.\n\nMaybe it would be enough to create only up to 3 or 5 users - in that case:\na) we don\u0027t need to import a new library\nb) we don\u0027t have possibly an endless loop\nc) we won\u0027t create a new user every time we run tempestconf which could lead to quota exhaustion and etc\n\nI bet that if there already is a demo1 user in the deployment, it was created by us :D if we create up to 3 users, the chances that demo3 was created by us are really almost 100%","commit_id":"aa5f926e12a4ef5bf6110e046e1a89a2f5dc444f"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"b8174356ff8c3ef566f6de73cc252ac57aa12ba3","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                  \u0027tenantId\u0027: proj_id, \u0027email\u0027: email}"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        # create a user"},{"line_number":146,"context_line":"        unique_ids \u003d itertools.chain([\"\"], itertools.count(start\u003d1))"},{"line_number":147,"context_line":"        for unique_id in unique_ids:"},{"line_number":148,"context_line":"            params[\u0027name\u0027] \u003d username + str(unique_id)"},{"line_number":149,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff570b3c_222772cc","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":68},"in_reply_to":"ff570b3c_f469bc24","updated":"2020-05-20 17:55:48.000000000","message":"OR maybe what if used a very specific name for the demo user creation, something like demo-tempestconf .. in that case we can be sure such a user is not in the system pre-created and if it\u0027s already there, it was created by us (the issue with creating as many users as we run tempestconf will be solved)","commit_id":"aa5f926e12a4ef5bf6110e046e1a89a2f5dc444f"}],"releasenotes/notes/unique-demo-user-name-fd9428a2d8efdc82.yaml":[{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"61621829cf4c513c41b7ee2e63703b4f11ee2041","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"   Tempestconf now creates users with name that ends with \u0027-tempestconf\u0027."},{"line_number":5,"context_line":"   This change makes sure that collisions are avoided. For example, if the"},{"line_number":6,"context_line":"   system already contains a user named \u0027demo-tempestconf\u0027 then it was"},{"line_number":7,"context_line":"   probably created by tempestconf."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ff570b3c_cd9adb6c","line":4,"range":{"start_line":4,"start_character":59,"end_line":4,"end_character":60},"updated":"2020-05-26 12:06:13.000000000","message":"s/-/_","commit_id":"839c1da62d6e8ab5f956dfbe2d25e7b92403a45e"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"61621829cf4c513c41b7ee2e63703b4f11ee2041","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"   Tempestconf now creates users with name that ends with \u0027-tempestconf\u0027."},{"line_number":5,"context_line":"   This change makes sure that collisions are avoided. For example, if the"},{"line_number":6,"context_line":"   system already contains a user named \u0027demo-tempestconf\u0027 then it was"},{"line_number":7,"context_line":"   probably created by tempestconf."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ff570b3c_2d89d725","line":6,"range":{"start_line":6,"start_character":45,"end_line":6,"end_character":46},"updated":"2020-05-26 12:06:13.000000000","message":"s/-/_","commit_id":"839c1da62d6e8ab5f956dfbe2d25e7b92403a45e"}]}
