Commit fb3f3de7e17ba0a9d78d2dc5b631ee0a2c478e74
1 parent
9c873978
Rename suite variable `@{used_roles}` into `@{USED_ROLES}`
Showing
10 changed files
with
14 additions
and
14 deletions
... | ... | @@ -64,7 +64,7 @@ Set Suite Variable With Default Value |
64 | 64 | Log ${role} |
65 | 65 | # Suite variable; should be present in every test suite |
66 | 66 | # in `*** Variables ***` section |
67 | - Log Many @{used_roles} | |
67 | + Log Many @{USED_ROLES} | |
68 | 68 | |
69 | 69 | # Load brokers data |
70 | 70 | ${file_path}= Get Variable Value ${BROKERS_FILE} brokers.yaml |
... | ... | @@ -83,7 +83,7 @@ Set Suite Variable With Default Value |
83 | 83 | ${used_users}= Create List |
84 | 84 | |
85 | 85 | # Handle `-v role:something` |
86 | - Run Keyword Unless '${role}' in @{used_roles} | |
86 | + Run Keyword Unless '${role}' in @{USED_ROLES} | |
87 | 87 | ... Log |
88 | 88 | ... Role ${role} is not used in this test suite. |
89 | 89 | ... WARN |
... | ... | @@ -96,13 +96,13 @@ Set Suite Variable With Default Value |
96 | 96 | # fill `used_brokers`. |
97 | 97 | # |
98 | 98 | # Don't even ask how this works! |
99 | - :FOR ${tmp_role} IN @{used_roles} | |
99 | + :FOR ${tmp_role} IN @{USED_ROLES} | |
100 | 100 | \ Set Suite Variable With Default Value |
101 | 101 | \ ... ${tmp_role} |
102 | 102 | \ ... ${BROKERS['Quinta'].roles.${tmp_role}} |
103 | 103 | \ Append To List ${used_users} ${${tmp_role}} |
104 | 104 | \ Append To List ${used_brokers} ${USERS.users.${${tmp_role}}.broker} |
105 | - # Since `@{used_roles}` is already a suite variable, | |
105 | + # Since `@{USED_ROLES}` is already a suite variable, | |
106 | 106 | # let's make `@{used_brokers}` alike. |
107 | 107 | ${used_brokers}= Remove Duplicates ${used_brokers} |
108 | 108 | Set Suite Variable ${used_brokers} |
... | ... | @@ -283,7 +283,7 @@ Get Broker Property By Username |
283 | 283 | [Arguments] ${tender_data} |
284 | 284 | # munchify is used to make deep copy of ${tender_data} |
285 | 285 | ${adapted_data}= munchify ${tender_data} |
286 | - :FOR ${username} IN @{used_roles} | |
286 | + :FOR ${username} IN @{USED_ROLES} | |
287 | 287 | # munchify is used to make deep copy of ${adapted_data} |
288 | 288 | \ ${adapted_data_copy}= munchify ${adapted_data} |
289 | 289 | \ ${status} ${adapted_data_from_broker}= Run keyword and ignore error Run As ${${username}} Підготувати дані для оголошення тендера ${adapted_data_copy} ${username} | ... | ... |
... | ... | @@ -7,7 +7,7 @@ Suite Teardown Test Suite Teardown |
7 | 7 | |
8 | 8 | *** Variables *** |
9 | 9 | ${MODE} openeu |
10 | -@{used_roles} tender_owner provider provider1 provider2 viewer | |
10 | +@{USED_ROLES} tender_owner provider provider1 provider2 viewer | |
11 | 11 | ${dialogue_type} EU |
12 | 12 | |
13 | 13 | ${number_of_items} ${1} | ... | ... |
Please
register
or
login
to post a comment