Sha256: 5997550a2f88ba8bf081910e3f485e7993305510fd2ada4e684b86c57cb33c6b
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
Feature: Constructing a new API object. Background: Given a new host Scenario: From API key. Then I run the code: """ api = Conjur::API.new_from_key "host/#{@host_id}", @host_api_key expect(api.token).to be_instance_of(Hash) expect(api.resource("cucumber:host:#{@host_id}")).to exist """ Scenario: From access token. Given I run the code: """ @token = Conjur::API.new_from_key("host/#{@host_id}", @host_api_key).token """ Then I run the code: """ api = Conjur::API.new_from_token @token expect(api.resource("cucumber:host:#{@host_id}")).to exist """ Scenario: From access token file. Given I run the code: """ token = Conjur::API.new_from_key("host/#{@host_id}", @host_api_key).token @temp_file = Tempfile.new("token.json") @temp_file.write(token.to_json) @temp_file.flush """ Then I run the code: """ api = Conjur::API.new_from_token_file @temp_file.path expect(api.resource("cucumber:host:#{@host_id}")).to exist """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-5.1.0 | features/new_api.feature |
conjur-api-5.0.0 | features/new_api.feature |
conjur-api-5.0.0.rc1 | features/new_api.feature |