-
Notifications
You must be signed in to change notification settings - Fork 2
QA-607: Fix for wait_for_upgrade_cluster test #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please re-add the central configuration of nodes-count.
Can we have another place where we start this routine at the start of a cluster so regular (non-upgrade) UI-tests will execute this as well?
for table_row_num in [1, 2, 3]: | ||
row = {} | ||
table.append(row) | ||
for table_column in range(1, cluster_nodes): | ||
for table_column in range(1, 6): # for table_column in range(1, cluster_nodes): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we go back to cluster_nodes so we have a single source of truth for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the very reason I made this change is that passed cluster_nodes
has incorrect value - 3 - which in turn leads to incomplete data in the table (only consisting of row["name"], row["url"]
)
cluster_nodes number is taken from self.selenium_runner.props.cluster_nodes
- I didn't really have time to debug this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be calculated from
count = 0
for starter in self.starter_instances:
count += len(starter.expect_instances)
agents are counted here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change the number of nodes in the test case - so that the method of the (Node) page class itself is not impacted (and can be safely called from other tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't understand why we have range(1, cluster_nodes) there in the first place - it is plain wrong as we're always supposed have 5 columns and 5 data 'points' in the table:
[row["name"], row["url"], row["version"], row["date"], row["state"]]
I guess cluster_nodes
number was meant to be used in the outer loop (loops over the number of rows/nodes) :
for table_row_num in [1, 2, 3]:
This PR contains code changes necessary to fix
test cases to check the integrity of the old system after the upgrade (Cluster)
test case that has been failing for a long while.UI tests
arangodb-devel-UI.Linux
job succeeded - build 428