Sha256: 88020ed0203261f48d8996c04dc9b719666abe411bf446bbacdd7ed5e5c334a3

Contents?: true

Size: 868 Bytes

Versions: 4

Compression:

Stored size: 868 Bytes

Contents

#
# pact-broker record-deployment --pacticipant Foo --version 1 --environment test --end-previous-deployment
#

describe "Record deployment", skip: "Not yet implemented" do
  before do
    td.create_environment("test")
      .create_pacticipant("Foo")
      .create_pacticipant_version("1")
  end
  let(:path) { "/pacticipants/Foo/versions/1/deployments/test" }
  let(:headers) { {"CONTENT_TYPE" => "application/json"} }
  let(:response_body) { JSON.parse(last_response.body, symbolize_names: true)}

  subject { post(path, nil, headers) }

  it { is_expected.to be_a_hal_json_created_response }

  it "returns the Location header" do
    subject
    expect(last_response.headers["Location"]).to eq "http://example.org/deployments/123456"
  end

  it "returns the newly created deployment" do
    subject
    expect(response_body).to include_key(:createdAt)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/features/record_deployment_spec.rb
pact_broker-2.79.0 spec/features/record_deployment_spec.rb
pact_broker-2.78.1 spec/features/record_deployment_spec.rb
pact_broker-2.78.0 spec/features/record_deployment_spec.rb