forked from pact-foundation/pact-mock_service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: allow mock service host to be configured pact-foundation/pact-ruby#186 * chore(release): version 3.0.0 * fix: add missing host argument to server spawn fixes: pact-foundation#102 * chore(release): version 3.0.1 * Improve logging robustness Do not pretty print a JSON object when serialization or serialization fail, for details see pact-foundation#103. * Update interaction_replay.rb * Initial version of the unit test * Move the test to appropriate context * Update interaction_replay_spec.rb * Update interaction_replay_spec.rb * Update interaction_replay_spec.rb * Update interaction_replay_spec.rb * Update interaction_replay.rb * Update interaction_replay_spec.rb * Update interaction_replay_spec.rb * feat: pact-stub-service log level cli opt * chore(release): version 3.1.0 * chore(release): version 3.1.1 * feat(skip writing to pact): Use writable_interactions when writing to pact file * Add test for #as_json * Add feature spec * Bump pact-support dependency * Fix tests * chore(release): version 3.2.0 * CI: Add 2.7 to travis ci * fix: remove apparently unused require for thwait * chore(release): version 3.2.1 * feat: log a warning when too many interactions are set on the mock service at once * chore(release): version 3.3.0 * fix: put metadata on the correct decorator * chore(release): version 3.3.1 * chore: remove jruby until somebody shows they're actually using it * chore(release): version 3.4.0 * feat: add token, username and password options to stub service (pact-foundation#118) Co-authored-by: Beth Skurrie <bethesque@users.noreply.github.com> * chore(release): version 3.5.0 * docs: document that you can set the broker token via an env var [ci-skip] * chore: separate test and deploy stages * chore: update .travis.yml [ci-skip] * chore: update .travis.yml * test: add expectations to make sure metadata: nil isn't stored in the pact (pact-foundation#119) * feat: add 'Access-Control-Allow-Headers' = true to cors response headers (pact-foundation#121) * chore(release): version 3.6.0 * fix: fix Ruby 2.7 kwargs warning (pact-foundation#122) * chore(release): version 3.6.1 * fix: update thor dependency (pact-foundation#124) Co-authored-by: Lindsey Hattamer <lindsey.hattamer@oddball.io> Co-authored-by: Lindsey Hattamer <lindsey.hattamer@oddball.io> * chore: add github workflow for gem release * chore: disable tests as they're not running properly on github workflow * chore(release): version 3.6.2 * feat: do not require files until command is executing * chore: update release workflow [ci-skip] * feat: use Pact::Query.parse_string to parse query string * chore(deps): update rake * docs: update travis badge * chore(release): version 3.7.0 * feat: include interaction diffs in verification response cc: @TimothyJones * chore: add tests to github actions * chore: allow workflow dispatch to release * chore(release): version 3.8.0 * chore: tests are hanging. try a subset * chore: try rspec * chore: disabling tests, they hang * chore: create issue template * feat: pass host into WEBrick options to allow configuration (pact-foundation#128) Co-authored-by: Matthew Hall <matthew.hall@partnerize.com> * chore(release): version 3.9.0 * chore: handle http 2 * fix: check for nil body rather than falsey body when determining how to render mocked response Fixes: pact-foundation#99 * chore(release): version 3.9.1 Co-authored-by: Beth Skurrie <beth@bethesque.com> Co-authored-by: Alexander Bolshakov <lextiz@gmail.com> Co-authored-by: YOU54F <yousafn@gmail.com> Co-authored-by: Beth Skurrie <bethesque@users.noreply.github.com> Co-authored-by: Simon Nizov <simon.nizov@gmail.com> Co-authored-by: Chavez <matthew@el-chavez.me> Co-authored-by: Chavez <mtchavez@users.noreply.github.com> Co-authored-by: Matt Fellows <matt.fellows@onegeek.com.au> Co-authored-by: vandemark <jnvbeach@gmail.com> Co-authored-by: Bartek Bułat <barthez@users.noreply.github.com> Co-authored-by: Michael R. Fleet <f1337@users.noreply.github.com> Co-authored-by: Lindsey Hattamer <lindsey.hattamer@oddball.io> Co-authored-by: mhall58 <matthewhall58@gmail.com> Co-authored-by: Matthew Hall <matthew.hall@partnerize.com>
- Loading branch information
1 parent
8d077e4
commit 36f20f0
Showing
46 changed files
with
721 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Pre issue-raising checklist | ||
|
||
I have already (please mark the applicable with an `x`): | ||
|
||
* [ ] Read through the relevant docs at https://docs.pact.io | ||
* [ ] Upgraded to the latest version of the gem | ||
* [ ] Checked the CHANGELOG to see if the issue I am about to raise has been fixed | ||
* [ ] Created an executable example that demonstrates the issue using either a: | ||
* Dockerfile | ||
* Git repository with a Travis or Appveyor (or similar) build | ||
|
||
## Software versions | ||
|
||
* **OS**: e.g. Mac OSX 10.11.5 | ||
* **pact mock service:** eg. v 1.23.0 | ||
|
||
## Expected behaviour | ||
|
||
Please complete. | ||
|
||
## Actual behaviour | ||
|
||
Please complete. | ||
|
||
## Steps to reproduce | ||
|
||
Provide a repository, gist or reproducible code snippet so that we can test the problem. | ||
|
||
## Relevant log files | ||
|
||
Please ensure you set logging to `DEBUG` and attach any relevant log files here (or link from a gist). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release gem | ||
|
||
on: | ||
repository_dispatch: | ||
types: | ||
- release-triggered | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.6' | ||
- run: | | ||
gem install bundler -v 2.1 | ||
bundle install | ||
# - name: Test | ||
# run: bundle exec rake | ||
|
||
release: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
outputs: | ||
gem_name: ${{ steps.release-gem.outputs.gem_name }} | ||
version: ${{ steps.release-gem.outputs.version }} | ||
increment: ${{ steps.release-gem.outputs.increment }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- id: release-gem | ||
uses: pact-foundation/release-gem@v0.0.11 | ||
env: | ||
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}' | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
INCREMENT: '${{ github.event.client_payload.increment }}' | ||
|
||
notify-gem-released: | ||
needs: release | ||
strategy: | ||
matrix: | ||
repository: [pact-foundation/pact-ruby-cli, pact-foundation/pact-ruby-standalone, pact-foundation/pact_broker-client] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify ${{ matrix.repository }} of gem release | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }} | ||
repository: ${{ matrix.repository }} | ||
event-type: gem-released | ||
client-payload: | | ||
{ | ||
"name": "${{ needs.release.outputs.gem_name }}", | ||
"version": "${{ needs.release.outputs.version }}", | ||
"increment": "${{ needs.release.outputs.increment }}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: "ubuntu-latest" | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: ["2.2", "2.7"] | ||
experimental: [false] | ||
include: | ||
- ruby_version: "3.0" | ||
experimental: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
- run: "bundle install" | ||
- run: "bundle exec rspec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ log | |
reports | ||
Gemfile.lock | ||
build | ||
.byebug_history | ||
|
||
vendor/bundle/ | ||
spec/examples.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.