Sha256: 70e566fa3476fac6ab658286e4e25b7c295988f473be608ba5e1847cd7a43994

Contents?: true

Size: 1.45 KB

Versions: 34

Compression:

Stored size: 1.45 KB

Contents

# Test plugin: `mounts`

The `mounts` test plugin checks that mounted file systems on nodes are setup correctly.

## Config DSL extension

### `check_mounts_do_include`

Check that a given list of mounts are indeed mounted on a given set of nodes.
Takes as parameter a Hash of source => destination mounts to be checked. Each source and destination can be an exact String, or a Regexp for pattern matching.

Example:
```ruby
# Make sure our cluster are mounted correctly
for_nodes('/datanode-.+/') do
  check_mounts_do_include(
    # Local first disk should always be the root one
    '/dev/sda1' => '/',
    # Any sdb disk should be mounted somewhere in /mnt
    /^\/dev\/sdb.+$/ => /^\/mnt\/.*/
  )
end
```

### `check_mounts_do_not_include`

Check that a given list of mounts are not mounted on a given set of nodes.
Takes as parameter a Hash of source => destination mounts to be checked. Each source and destination can be an exact String, or a Regexp for pattern matching.

Example:
```ruby
# Make sure our data lake is never mounted on test nodes, in any place
for_nodes('/tst.+/') do
  check_mounts_do_not_include(/^datalake\.my_domain\/com:/ => /.*/)
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/mounts.md
hybrid_platforms_conductor-33.9.4 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.9.2 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.9.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.9.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.8.4 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.8.3 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.8.2 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.8.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.8.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.7.4 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.7.3 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.7.2 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.7.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.7.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.6.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.5.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.5.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.4.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.3.0 docs/plugins/test/mounts.md