tolerance Domains

domains_should_not_expire_in

Go through the list of Gandi domains and fails if any expires before the given date threshold as a relative time to now

Activity as code

Below are the details and signature of the activity Python module.

Typetolerance
Modulechaosgandi.domains.tolerances
Namedomains_should_not_expire_in
ReturnNone

Usage

JSON

{
  "steady-state-hypothesis": {
    "title": "...",
    "probes": [
      {
        "type": "probe",
        "tolerance": {
          "name": "domains-should-not-expire-in",
          "type": "tolerance",
          "provider": {
            "type": "python",
            "module": "chaosgandi.domains.tolerances",
            "func": "domains_should_not_expire_in"
          }
        },
        "...": "..."
      }
    ]
  }
}

YAML

steady-state-hypothesis:
  probes:
    '...': '...'
    tolerance:
      name: domains-should-not-expire-in
      provider:
        func: domains_should_not_expire_in
        module: chaosgandi.domains.tolerances
        type: python
      type: tolerance
    type: probe
  title: '...'

Arguments

NameTypeDefaultRequired
valuelistnullNo
whenstring“1 month”No

Tolerances declare the value argument which is automatically injected by Chaos Toolkit as the output of the probe they are evaluating.

Signature

def domains_should_not_expire_in(value: List[Dict[str, Any]] = None,
                                 when: str = '1 month'):
    pass