Sha256: 9a4b67150fcceef27e902e9dc580268e407edfe1b20940a4b6d1584c14db4b4f

Contents?: true

Size: 1.42 KB

Versions: 12

Compression:

Stored size: 1.42 KB

Contents

Feature: Create a Host Factory

  Background:

  Scenario: Create a host factory successfully
    Given I successfully run `conjur layer create --as-group $ns/security_admin $ns/layer`
    Then I successfully run `conjur hostfactory create --as-group $ns/security_admin --layer $ns/layer $ns/hostfactory`

	Scenario: The client role can use itself as the hostfactory role
    Given I successfully run `conjur user create unprivileged@$ns`
    And I successfully run `conjur layer create $ns/layer`
    When I run `conjur hostfactory create --as-role user:unprivileged@$ns --layer $ns/layer $ns/hostfactory`

	Scenario: If current role cannot admin the layer, the error is reported
		Given I successfully run `conjur layer create $ns/the-layer`
		And I login as a new user
		Given I successfully run `conjur group create $ns/the-group`
		And I run `conjur hostfactory create --as-group $ns/the-group -l $ns/the-layer $ns/the-factory`
		Then the exit status should not be 0
		And the output should contain "must be an admin of layer"
	
	Scenario: If current role cannot admin the HF role, the error is reported
		Given I successfully run `conjur group create $ns/the-group`
		And I login as a new user
		Given I successfully run `conjur layer create $ns/the-layer`
		And I run `conjur hostfactory create --as-group $ns/the-group -l $ns/the-layer $ns/the-factory`
		Then the exit status should not be 0
		And the output should contain "must be an admin of role"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
conjur-cli-5.6.6 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.6.5 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.6.4 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.6.3 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.5.0 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.4.0 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.3.0 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.2.5 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.2.4 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.2.3 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.2.1 acceptance-features/directory/hostfactory/create.feature
conjur-cli-5.2.0 acceptance-features/directory/hostfactory/create.feature