Sha256: 4d21a3728cc029a1c4f6f0e3388411e73c1d868f73f0e1953983fdef1392fd7a

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

# octopus_deploy_upgrade_config

Tests the server-wide upgrade configuration. This can be found in the UI at Configuration->Settings->Updates & Usage Telemetry.

## Example

```ruby
describe octopus_deploy_upgrade_config do
  it { should include_statistics }
  it { should never_show_notifications }  
end
```

#### Type

This type can be instantiated in several ways, depending on [how you authenticate](authentication.md).

```ruby
octopus_deploy_upgrade_config(server_url, api_key)  # url and apikey provided
octopus_deploy_upgrade_config                       # using environment vars
octopus_upgrade_config(server_url, api_key)         # shorthand
octopus_upgrade_config                              # shorthand, using env vars
```

#### Matchers

| Matcher | Description |
|:--------|:------------|
| should have_notification_mode(mode) | Tests if the Notification mode is set to the given value. Possible values: ['AlwaysShow', 'ShowOnlyMajorMinor', 'NeverShow'] |
| should never_show_notifications | equivalent to `should_have_notification_mode('NeverShow')` | 
| should always_show_notifications | equivalent to `should_have_notification_mode('AlwaysShow')` | 
| should show_major_minor_notifications | equivalent to `should_have_notification_mode('ShowOnlyMajorMinor')` |
| should include_statistics | Tests if the IncludeStatistics setting is set to `true` |
| should allow_checking | Tests if the AllowChecking setting is set to `true` |  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
octopus-serverspec-extensions-0.19.1 docs/octopus_deploy_upgrade_config.md
octopus-serverspec-extensions-0.19.0 docs/octopus_deploy_upgrade_config.md