aws-deadline / deadline-cloud-test-fixtures

This package contains pytest fixtures that are used to test AWS Deadline Cloud Python packages
Apache License 2.0
9 stars 13 forks source link

test: Set AWS_ENDPOINT_URL_DEADLINE on Worker #111

Closed moorec-aws closed 4 months ago

moorec-aws commented 4 months ago

What was the problem/requirement? (What/Why)

In https://github.com/aws-deadline/deadline-cloud-test-fixtures/pull/96 we added functionality to specify and use AWS_ENDPOINT_URL_DEADLINE to set a custom endpoint url. We do not currently set this env variable on the workers so that it can connect to designated endpoint

What was the solution? (How)

Added the following to the worker configuration:

If the environment variable is specified, then add it to the Worker before installation so that it connects to the intended endpoint/farm location.

What is the impact of this change?

Enables AWS_ENDPOINT_URL_DEADLINE usage for the Worker Agent.

How was this change tested?

Setting AWS_ENDPOINT_URL_DEADLINE and running hatch run integ-test i confirmed that the worker would connect to various endpoints.

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 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud