Sha256: a12a54354a9a015dab91b579ddb9f6a922908c223d2ce559cf379abaa219caf6

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

# octopus_deploy_account

Describes an [Octopus Infrastructure Account](https://octopus.com/docs/infrastructure/accounts).

A number of properties of Accounts (such as passwords & secret keys) are [sensitive]() values, therefore we can't directly test them. 

## Example

```ruby

describe octopus_deploy_account("myawsaccount").in_space("Octopus") do
    it { should exist }
    it { should be_aws_account }
    it { should_not be_azure_account }
    it { should have_description('My main AWS account') }
end

```

#### Type

```ruby
octopus_deploy_account([server_url, api_key], account_name)
octopus_account([server_url, api_key], account_name)
```

#### Matchers

| Matcher | Description |
|:--------|:------------|
| should exist | Tests if an account of the name exists |
| should be_aws_account | Amazon Web Services account |
| should be_azure_account | Microsoft Azure account   |
| should be_ssh_key_pair | SSH keypair |
| should be_token | A token for use with services such as Kubernetes| 
| should be_username_password | A username and password for use with services supporting user/pass |

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
octopus-serverspec-extensions-0.18.1 docs/octopus_deploy_account.md
octopus-serverspec-extensions-0.18.0 docs/octopus_deploy_account.md
octopus-serverspec-extensions-0.17.3 docs/octopus_deploy_account.md
octopus-serverspec-extensions-0.17.2 docs/octopus_deploy_account.md
octopus-serverspec-extensions-0.17.1 docs/octopus_deploy_account.md
octopus-serverspec-extensions-0.17.0 docs/octopus_deploy_account.md