Need more features and some fixes to add a Worker agent test for the jobRunAsUser feature
What was the solution? (How)
Major changes:
Add DeadlineWorkerConfiguration,pre_install_commands property that is a list of commands that run before the Worker agent installer is run
Usage: create a session-scoped pytest fixture that overrides the worker_config fixture from fixtures.py (see pytest docs on overriding fixtures), then return a new DeadlineWorkerConfiguration with the modified configuration
Add DeadlineWorkerConfiguration.start_service and pass it to the Worker agent installer so that the systemd service can be started during installation
Add Job.get_logs which retrieves the logs for a job
Minor changes / fixes:
Add raw_kwargs option to all resource methods that wrap an AWS API call (e.g. CreateJob, CreateQueue, etc.). This gives us the ability to not have to upgrade the library version in order to write tests
(bug) Actually pass through FARM_ID and FLEET_ID to Docker container worker so that users do not need to define those env vars when not using BYO_DEADLINE
(bug) properly parse the USE_DOCKER_WORKER so that setting it to something other than true will not use a Docker worker
What is the impact of this change?
New features to use in jobRunAsUser tests for Worker agent
Related https://github.com/casillas2/deadline-cloud-worker-agent/pull/54
What was the problem/requirement? (What/Why)
Need more features and some fixes to add a Worker agent test for the
jobRunAsUser
featureWhat was the solution? (How)
Major changes:
DeadlineWorkerConfiguration,pre_install_commands
property that is a list of commands that run before the Worker agent installer is runworker_config
fixture fromfixtures.py
(see pytest docs on overriding fixtures), then return a newDeadlineWorkerConfiguration
with the modified configurationDeadlineWorkerConfiguration.start_service
and pass it to the Worker agent installer so that the systemd service can be started during installationJob.get_logs
which retrieves the logs for a jobMinor changes / fixes:
raw_kwargs
option to all resource methods that wrap an AWS API call (e.g. CreateJob, CreateQueue, etc.). This gives us the ability to not have to upgrade the library version in order to write testsFARM_ID
andFLEET_ID
to Docker container worker so that users do not need to define those env vars when not usingBYO_DEADLINE
USE_DOCKER_WORKER
so that setting it to something other thantrue
will not use a Docker workerWhat is the impact of this change?
jobRunAsUser
tests for Worker agentHow was this change tested?
Was this change documented?
Is this a breaking change?