Nomad plugin that enables deployment of Nomad jobs.
More...
|
def | __init__ (self, ConfigurationContext ctx) |
|
def | setup (self, SetupContext ctx) |
| Deploy system under test. More...
|
|
def | teardown (self, TeardownContext ctx) |
| Undeploy system under test. More...
|
|
Nomad plugin that enables deployment of Nomad jobs.
Example config:
- Version
- : "1.0" plugins: nomad: jobs:
◆ __init__()
def etr.plugins.nomad.Plugin.__init__ |
( |
|
self, |
|
|
ConfigurationContext |
ctx |
|
) |
| |
◆ add_options()
def etr.plugins.nomad.Plugin.add_options |
( |
|
parser | ) |
|
|
static |
◆ setup()
def etr.plugins.nomad.Plugin.setup |
( |
|
self, |
|
|
SetupContext |
ctx |
|
) |
| |
Deploy system under test.
1. Convert HCL file to json,
2. Add job
- If job already exist, fail.
3. Start job
4. Wait for job to stabilize
◆ teardown()
def etr.plugins.nomad.Plugin.teardown |
( |
|
self, |
|
|
TeardownContext |
ctx |
|
) |
| |
Undeploy system under test.
◆ config_schema
string etr.plugins.nomad.Plugin.config_schema |
|
static |
Initial value:= """
type: object
additionalProperties: False
properties:
jobs:
type: array
items:
type: string
"""
◆ order
int etr.plugins.nomad.Plugin.order = 10000 |
|
static |
The documentation for this class was generated from the following file: