seq  1.1.0
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
etr.plugins.nomad.Plugin Class Reference

Nomad plugin that enables deployment of Nomad jobs. More...

Public Member Functions

def __init__
 
def setup
 Deploy system under test. More...
 
def teardown
 Undeploy system under test. More...
 

Static Public Member Functions

def add_options
 Add --nomad-host option. More...
 

Static Public Attributes

int order = 10000
 
string config_schema
 

Detailed Description

Nomad plugin that enables deployment of Nomad jobs.

Example config:

Version
: "1.0" plugins:

nomad: jobs:

Constructor & Destructor Documentation

def etr.plugins.nomad.Plugin.__init__ (   self,
  ctx 
)

Member Function Documentation

def etr.plugins.nomad.Plugin.add_options (   parser)
static

Add --nomad-host option.

def etr.plugins.nomad.Plugin.setup (   self,
  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
def etr.plugins.nomad.Plugin.teardown (   self,
  ctx 
)

Undeploy system under test.

Member Data Documentation

string etr.plugins.nomad.Plugin.config_schema
static
Initial value:
1 = """
2 type: object
3 additionalProperties: False
4 properties:
5  jobs:
6  type: array
7  items:
8  type: string
9 """
int etr.plugins.nomad.Plugin.order = 10000
static

The documentation for this class was generated from the following file: