You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if cluster_reuse["short_name"]:
cluster_identifier = cluster_reuse["short_name"]
else:
cluster_identifier = cluster_reuse["integration_id"]
and such code duplication is not good.
Instead of copy pasting this code in all tests, value of cluster_reuse fixture should be a object of GlusterCluster class, which will have a method cluster_identifier() which will do what this code does.
The text was updated successfully, but these errors were encountered:
mbukatov
changed the title
Create function
remove code duplication of code dealing with cluster identifier
Jan 11, 2019
Lot of test functions starts with:
and such code duplication is not good.
Instead of copy pasting this code in all tests, value of
cluster_reuse
fixture should be a object ofGlusterCluster
class, which will have a method cluster_identifier() which will do what this code does.The text was updated successfully, but these errors were encountered: