Skip to content

Conversation

elimt
Copy link
Contributor

@elimt elimt commented Jan 5, 2025

Update tests to create 2 GCP instances with different filters to test out discovering GCP instances by filter

Update tests to create 2 GCP instances with different filters to test out discovering GCP instances by filter
@elimt elimt added this to the 0.19.x milestone Jan 5, 2025
@elimt elimt requested a review from moduli January 5, 2025 23:11
@elimt elimt requested a review from a team as a code owner January 5, 2025 23:11
@elimt elimt changed the title test(e2e): Create multiple targets test(e2e): Create multiple GCP targets Jan 6, 2025
johanbrandhorst
johanbrandhorst previously approved these changes Jan 6, 2025
Comment on lines +257 to +258
var targetIps []string
err = json.Unmarshal([]byte(c.GcpHostSetIps1), &targetIps)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just realized, is this being used anywhere?

EDIT: Wait, should all of these expected values be set tot he length of targetIps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I have to take that out because it's not being used

For your second comment, the targetIps are 2. The private IP and the public IP.

When we create a host set with a specific filter that matches Target 1 in this example, only 1 host catalog is created with 2 IP addresses so only 1 HostId will be returned. The assertion only checks for 1 host catalog returned

@elimt elimt added the pr/no-milestone Ignores the Milestone Check label Jan 23, 2025
@elimt elimt removed this from the 0.19.x milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/no-milestone Ignores the Milestone Check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants