Sha256: 457d0de859ac929115a856a3e0cb8037a75b2ce9902bbda0e5280f43e78c586c

Contents?: true

Size: 793 Bytes

Versions: 56

Compression:

Stored size: 793 Bytes

Contents

@dsl
Feature: Saving and restoring context

  Background:

  Scenario: Environment and api keys are saved in the context
    When I run script:
    """
namespace do
  user "bob"
end
    """
    Then the context should contain "env"
    And the context should contain "namespace"
    And the context should contain "stack"
    And the context should contain "account"
    And the context should contain "api_keys"
    And the context "api_keys" should contain "1" item

  Scenario: API keys are restored from the context
    When I use script context:
    """
{
  "namespace": "foobar",
  "api_keys": [
    "the-api-key"
  ]
}
    """
    And I run script:
    """
namespace
    """
    Then the context "namespace" should be "foobar"
    And the context "api_keys" should contain "1" item
    

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
conjur-cli-5.6.6 features/dsl_context.feature
conjur-cli-5.6.5 features/dsl_context.feature
conjur-cli-5.6.4 features/dsl_context.feature
conjur-cli-5.6.3 features/dsl_context.feature
conjur-cli-5.5.0 features/dsl_context.feature
conjur-cli-5.4.0 features/dsl_context.feature
conjur-cli-5.3.0 features/dsl_context.feature
conjur-cli-5.2.5 features/dsl_context.feature
conjur-cli-5.2.4 features/dsl_context.feature
conjur-cli-5.2.3 features/dsl_context.feature
conjur-cli-5.2.1 features/dsl_context.feature
conjur-cli-5.2.0 features/dsl_context.feature
conjur-cli-5.1.2 features/dsl_context.feature
conjur-cli-5.1.1 features/dsl_context.feature
conjur-cli-5.1.0 features/dsl_context.feature
conjur-cli-4.30.1 features/dsl_context.feature
conjur-cli-4.30.0 features/dsl_context.feature
conjur-cli-4.29.0 features/dsl_context.feature
conjur-cli-4.28.2 features/dsl_context.feature
conjur-cli-4.28.1 features/dsl_context.feature