Sha256: 4ad039395cbf543d8c503bbc51aff6642ad2c0bf29372980997f4d7063006076

Contents?: true

Size: 1.09 KB

Versions: 34

Compression:

Stored size: 1.09 KB

Contents

# Test plugin: `file_system`

The `file_system` test plugin performs various checks on the file system of a node.

## Config DSL extension

### `check_files_do_exist`

`check_files_do_exist` takes a path or a list of paths as parameter. Those paths should be present on the nodes and will be reported as missing if not.

Example:
```ruby
for_nodes('/tst_.*/') do
  check_files_do_exist '/etc/init.d', '/home/test_user'
end
for_nodes('/prd_.*/') do
  check_files_do_exist '/etc/init.d'
end
```

### `check_files_do_not_exist`

`check_files_do_not_exist` takes a path or a list of paths as parameter. Those paths should be absent on the nodes and will be reported as extra if not.

Example:
```ruby
for_nodes('/tst_.*/') do
  check_files_do_not_exist '/tmp/wrong_file', '/home/obsolete_user'
end
```

## Used credentials

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

## Used Metadata

| Metadata | Type | Usage
| --- | --- | --- |
| `local_node` | `Boolean` | Skip this test for nodes having this metadata set to `true` |

## Used environment variables

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

## External tools dependencies

None

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.9.4 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.9.2 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.9.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.9.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.8.4 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.8.3 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.8.2 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.8.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.8.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.7.4 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.7.3 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.7.2 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.7.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.7.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.6.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.5.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.5.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.4.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-33.3.0 docs/plugins/test/file_system.md