-
Notifications
You must be signed in to change notification settings - Fork 107
CLOUDP-81143: Add failure scenarios to Cluster int tests #98
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
antonlisovenko
left a comment
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.
just one question
| items: | ||
| description: TODO solve circular dependency (move ProjectIPAccessList | ||
| to subpackage?) Copy of mdbv1.ProjectIPAccessList | ||
| description: ProjectIPAccessList is a copy of mdbv1.ProjectIPAccessList |
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.
thanks!
test/int/cluster_test.go
Outdated
| createdCluster, | ||
| status. | ||
| FalseCondition(status.ClusterReadyType). | ||
| WithReason(string(workflow.Internal)). |
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.
[q] I would expect this to be ClusterNotCreatedInAtlas instead of Internal or am I missing something?
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.
Ok, I know the answer. It's not the create request that fails, but the client.Clusters.Get(ctx, project.Status.ID, cluster.Spec.Name) and this results in the internal error.
Can we please add the comment here to explain this as logically it seems that the creation should fail, not get
antonlisovenko
left a comment
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.
Nice! 🥳
would be great to add the comment in the test about why it's 'internal'
test/int/cluster_test.go
Outdated
| createdCluster, | ||
| status. | ||
| FalseCondition(status.ClusterReadyType). | ||
| WithReason(string(workflow.Internal)). |
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.
Ok, I know the answer. It's not the create request that fails, but the client.Clusters.Get(ctx, project.Status.ID, cluster.Spec.Name) and this results in the internal error.
Can we please add the comment here to explain this as logically it seems that the creation should fail, not get
No description provided.