aws-deadline / deadline-cloud-worker-agent

The AWS Deadline Cloud worker agent can be used to run a worker in an AWS Deadline Cloud fleet.
Apache License 2.0
15 stars 21 forks source link

test: add test for worker that requires no instance profile #481

Closed YutongLi291 closed 6 days ago

YutongLi291 commented 1 week ago

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?

# 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.

sonarcloud[bot] commented 6 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud