Skip to content

Conversation

@vasilevp
Copy link
Contributor

No description provided.

@vasilevp vasilevp changed the title CLOUDP-81143: Add failure scenarios CLOUDP-81143: Add failure scenarios to Cluster int tests Feb 11, 2021
@vasilevp vasilevp marked this pull request as ready for review February 11, 2021 14:00
@vasilevp vasilevp self-assigned this Feb 11, 2021
Copy link
Contributor

@antonlisovenko antonlisovenko left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

createdCluster,
status.
FalseCondition(status.ClusterReadyType).
WithReason(string(workflow.Internal)).
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

@antonlisovenko antonlisovenko left a 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'

createdCluster,
status.
FalseCondition(status.ClusterReadyType).
WithReason(string(workflow.Internal)).
Copy link
Contributor

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

@vasilevp vasilevp merged commit a5d89a2 into main Feb 11, 2021
@vasilevp vasilevp deleted the CLOUDP-81143-cluster-test-failure branch February 11, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants