-
Notifications
You must be signed in to change notification settings - Fork 290
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
test(e2e): Create multiple GCP targets #5408
base: main
Are you sure you want to change the base?
Conversation
Update tests to create 2 GCP instances with different filters to test out discovering GCP instances by filter
testing/internal/e2e/tests/gcp/dynamichostcatalog_host_set_test.go
Outdated
Show resolved
Hide resolved
var targetIps []string | ||
err = json.Unmarshal([]byte(c.GcpHostSetIps1), &targetIps) |
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 realized, is this being used anywhere?
EDIT: Wait, should all of these expected
values be set tot he length of targetIps
?
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.
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
Update tests to create 2 GCP instances with different filters to test out discovering GCP instances by filter