The worker agent is able to be installed with the option disallow-instance-profile, in which case if the worker instance is booted with an instance profile, the worker agent will shut itself down and not run jobs.
We should verify that this functionality works as expected and that there are no regressions
What was the solution? (How)
Add a test to verify that the worker will not pick up any jobs in the case that the worker is configured to not have instance profiles, but the instance has a profile anyway.
Also upgraded test-fixtures version from 0.16 to 0.17 to allow for the option to disallow instance profile.
What is the impact of this change?
Better verification of worker agent installer code and behaviour.
How was this change tested?
# Linux
source .e2e_linux_infra.sh
hatch run e2e-test
# Windows
source .e2e_windows_infra.sh
hatch run e2e-test
Was this change documented?
No
Is this a breaking change?
No
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
What was the problem/requirement? (What/Why)
The worker agent is able to be installed with the option
disallow-instance-profile
, in which case if the worker instance is booted with an instance profile, the worker agent will shut itself down and not run jobs.We should verify that this functionality works as expected and that there are no regressions
What was the solution? (How)
Add a test to verify that the worker will not pick up any jobs in the case that the worker is configured to not have instance profiles, but the instance has a profile anyway.
Also upgraded test-fixtures version from 0.16 to 0.17 to allow for the option to disallow instance profile.
What is the impact of this change?
Better verification of worker agent installer code and behaviour.
How was this change tested?
Was this change documented?
No
Is this a breaking change?
No
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.