Sha256: e036a814d81601db8815581c6d959186676294724b9e732f9c7c7b9c9f7084d4

Contents?: true

Size: 1.1 KB

Versions: 47

Compression:

Stored size: 1.1 KB

Contents

# Test plugin: `divergence`

The `divergence` test plugin checks that nodes are aligned with wanted configuration.
It does so by issuing a check on the nodes, and reporting divergent tasks as errors.

## Config DSL extension

### `ignore_divergent_tasks`

`ignore_divergent_tasks` defines a list of tasks that may be divergent (meaning that checking nodes can return differences for those tasks). In such cases, those tasks will not be reported as errors by the idempotence or divergence tests.

It takes a `Hash<String, String>` as a parameter, as a set of `<task_name>` => `<descriptive_reason_for_ignore>`.

Example:
```ruby
for_nodes('scheduler_node') do
  ignore_divergent_tasks({
    'Jenkins - Create config' => 'Config file is reindented by Jenkins, so always appears different',
    'Jenkins - Restart' => 'Jenkins is always restarted as config file is different when deploying'
  })
end
```

## Used credentials

| Credential | Usage
| --- | --- |

## Used Metadata

| Metadata | Type | Usage
| --- | --- | --- |

## Used environment variables

| Variable | Usage
| --- | --- |

## External tools dependencies

None

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.2.4 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.2.3 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.2.2 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.2.1 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.2.0 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.1.1 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.1.0 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.0.4 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.0.3 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.0.2 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.0.1 docs/plugins/test/divergence.md
hybrid_platforms_conductor-33.0.0 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.18.0 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.17.1 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.17.0 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.16.4 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.16.3 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.16.2 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.16.1 docs/plugins/test/divergence.md
hybrid_platforms_conductor-32.16.0 docs/plugins/test/divergence.md