Skip to content

Commit

Permalink
Merge pull request #1199 from alphagov/create-pact-for-media-endpoint
Browse files Browse the repository at this point in the history
Added pact provider state for `/media/{id}/{filename}`
  • Loading branch information
syed-ali-tw authored Sep 13, 2023
2 parents 660d2bf + a259d3d commit 8d7c712
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/service_consumers/pact_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ def url_encode(str)
end
end

provider_state "an asset exists with id 4dca570c2975bc0d6d437491 and filename asset.png" do
set_up do
FactoryBot.create(:uploaded_asset, id: "4dca570c2975bc0d6d437491")
end
end

provider_state "a whitehall asset exists with legacy url path /government/uploads/some-edition/hello.txt and id 4dca570c2975bc0d6d437491" do
set_up do
FactoryBot.create(:uploaded_whitehall_asset, legacy_url_path: "/government/uploads/some-edition/hello.txt", id: "4dca570c2975bc0d6d437491")
Expand Down

0 comments on commit 8d7c712

Please sign in to comment.