Skip to content

Commit

Permalink
Update snyk_v2_stubs.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jesutorrr committed Jun 5, 2024
1 parent 511f818 commit da9ee2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/tasks/connectors/snyk_v2/snyk_v2_stubs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def stub_projects_request(org_id)
def stub_issues_request(org_id, from_date, to_date)
stub_request(:get, "https://api.snyk.io/rest/orgs/#{org_id}/issues?version=2024-04-29&limit=100&created_after=#{from_date}&created_before=#{to_date}")
.to_return_json(body: read_fixture_file("issues.json"))
stub_request(:get, "https://api.snyk.io/rest/orgs/#{org_id}/issues?version=2024-04-29&limit=100&created_after=#{from_date}&created_before=#{to_date}&starting_after=eyJvcmdJZCI6ImUwMzE5ZDAxLTdhM2YtNDQyYS04ZTk0LTM2MTNiODFjNzA1YSIsInNldmVyaXR5Ijo0MCwiY3JlYXRlZEF0IjoiMjAyNC0wNS0wN1QwODo0ODoxMi40MjJaIiwiaWQiOiIwY2EwMzQ1My0zOTkxLTQ1OTYtYjYzOS1iYmE4NDM5ZWZhZjAiLCJ0b3RhbCI6eyJjYWxjdWxhdGVkQXQiOiIwMDAxLTAxLTAxVDAwOjAwOjAwWiJ9fQ==")
stub_request(:get, "https://api.snyk.io/rest/orgs/#{org_id}/issues?version=2024-04-29&limit=100&created_after=#{from_date}&created_before=#{to_date}")
.to_return_json(body: read_fixture_file("issues_empty.json"))
end
end

0 comments on commit da9ee2a

Please sign in to comment.