Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/pact-foundation/pact-ruby

Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://github.com/pact-foundation/pact-ruby

Added configurable mock_service verification after consumer specs. Defaulted to off for now, will change it to on by default in the future.

34b2e0bd3ce0c27bdddb7cb29bebf4f23572d8b7 authored over 11 years ago by Beth Skurrie <[email protected]>
Merge branch 'verification'

80480589c1bfd9824312597f2cb54d76a1789e60 authored over 11 years ago by Beth Skurrie <[email protected]>
Made mock log file names read more fluently.

08498e1d459d349dd65e5cf740287b640f19227c authored over 11 years ago by Beth Skurrie <[email protected]>
Making Awesome Print default to settings that enable direct copy paste from the logs into code.

56eb4afa890ff22864c709c6bf0e5854aa3acbe8 authored over 11 years ago by Beth Skurrie <[email protected]>
Bumping micro version

190c3b27f770adeff7308878fb472ff173c4e37e authored over 11 years ago by Beth <[email protected]>
Changed log names to be all lower case with no spaces - much easier to type in command line.

d58a83ca34d73f6e8a01641710361253cc3eed8d authored over 11 years ago by Beth <[email protected]>
Fixing broken test.

5cb37813ff5c60043f747d5f7634309cc0b33b5c authored over 11 years ago by Beth <[email protected]>
Adding logging to identify which app has failed to start when spawning the mock server times out.

643fa79535250e4368d24508450c152c43dfdb8b authored over 11 years ago by Beth <[email protected]>
Added pact gem version and generation date - useful for detecting incompatiblities between pact gem in producer and consumer

48c75db39f21c3eaf030dc2f5ec4468df8f917fd authored over 11 years ago by Beth <[email protected]>
Starting to add proper verification (fails when unexpected calls are made)

882b884f88c49ef96bdbe61aa52245cc78a234c9 authored over 11 years ago by Beth Skurrie <[email protected]>
Updating README with completed tasks in TODO

db5148a93e4f0e9ad2066f29a1293a83c3cc2c63 authored over 11 years ago by Beth Skurrie <[email protected]>
Fixed https://git.realestate.com.au/business-systems/pact/issues/2 - when actual field is a substring of an expected field, the code no longer considers them to be equal.

97b6e1f97532be76b49488429445664ac1311a12 authored over 11 years ago by Beth Skurrie <[email protected]>
Bumping micro version

901f54db7d1d4c1c352488953a0395a96e7ec3b7 authored over 11 years ago by Bethany Skurrie <[email protected]>
Now respecting content type header of request and enforcing that actual headers match expected headers. This may break some tests, but it's good for you!

584c5f519eec82c8a2f651dce45c2ca45f74e4cb authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

629e8aaed80d4059c5265017eb2823c7f65fdeb7 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixing bug where request_json did not exist

215813375fbe02bae4783d15550a22d158a8f329 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

78753fa7d4288f95cca2c66e62d8708170993e9b authored over 11 years ago by Bethany Skurrie <[email protected]>
Added producer to pact file, and added producer name to find_interaction failure message

8c2a74debe6ecc15d3ab1aadb41826d8aa636a02 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added consumer name to find_interaction failure message

b373d15aabd1d9cd32a417609a536c120ab7e43c authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

3ad12903866060fdc6e5ca0596f750adb5744675 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added call to allow searching for an interaction without exposing the internal structure of the consumer contract.

64cbc9024b04bedfcecd907f37a10fd8e2facf45 authored over 11 years ago by Beth Skurrie <[email protected]>
Improving the logging and failure messages

f7a27a26dd57a6d4bed47cd62030d50e99294fc3 authored over 11 years ago by Bethany Skurrie <[email protected]>
Updating test

cdfeaf070b2357f19abe329c15f705482c80e29f authored over 11 years ago by Bethany Skurrie <[email protected]>
Using a module to include the app rather than a 'def app' in each describe.

abc96c1bf4d4ff823f14d1462797f832bd570679 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added test for configuration

44af4940c7f8796bcd5e94c6412b6fbd8deb3901 authored over 11 years ago by Bethany Skurrie <[email protected]>
Removed class variables

Class variables are global variables, which means they are terrible.
Class instance variables ar...

ce23118b53433f9a16b239665f7f63d81d0de26d authored over 11 years ago by Peter Evjan <[email protected]>
Adding tests for producer configuration DSL

0a7120b6127b07b7766fc570599469cc75047ea2 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

5c15d28b8e3c0d406215c579f7f16685b93a5fab authored over 11 years ago by Bethany Skurrie <[email protected]>
Added producer app configuration DSL.

6c8656d0557ccb7fd913ad02343d28d1aa09f753 authored over 11 years ago by Bethany Skurrie <[email protected]>
Deleting accidentally committed files

3da09b10f7573f13a955db157df43b19529aea86 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

70c611ea531e93688e5b1f631b7aa1ee5e03f6c3 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixing bug in Mock Service, also adding interaction diff to response to make Peter happy.

74747f2a3151ac100ad728d33178fa387dd7c918 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

5e3f35008e2f7e9e1772bff238edbb24453d7a9c authored over 11 years ago by Bethany Skurrie <[email protected]>
Using the same code to create the diff hash and determine if two objects are the same or not. Woohoo!

6c76bbc8da1d7b57470f25060d53eeecf92033f1 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added diff_with_actual to String and Numeric and a shit tonne of tests. Want to start using this for all matching.

bd3deef4d15c4c3b46f2dbb2bc8e5d3c33e2687a authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

6c7f2148d99cfc4ca362232331ba01b0fb8f86fc authored over 11 years ago by Bethany Skurrie <[email protected]>
Improving failure message for pact matching.

633877de7657c44f063633d600c006e3bc694209 authored over 11 years ago by Bethany Skurrie <[email protected]>
Recording matcher DSL ideas.

ea43ba4cbdbaf4dfefe51c966733e4950bc39c9b authored over 11 years ago by Beth Skurrie <[email protected]>
Update readme

c96ce383f32b415b994429319f19c53a399fcb5e authored over 11 years ago by Bethany Skurrie <[email protected]>
Merge branch 'master' of git.realestate.com.au:business-systems/pact

7b689eaf79a1f412d871523f70b9adb143e162e1 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added new test

99ad697ec3f40afa7cc29152c53c43f5fabac1b4 authored over 11 years ago by Bethany Skurrie <[email protected]>
Grammar and spelling corrections

90698a6f296e0eb08e7c9a172435c48c6e48148c authored over 11 years ago by Peter Evjan <[email protected]>
Improving logging.

79b7a22877d0514b8c1fec1a8523a6ff46687da5 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixing request matcher so it doesn't blow up when a string is expected but a number is found

737043090661d07dcd9fea7d61ee3ff977cf4f95 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

02ce673f8a1108f38977ae23b9d2a5cf60224d50 authored over 11 years ago by Bethany Skurrie <[email protected]>
Improved matcher failure message.

7e5e6fc7bbd0768df09875eecc23eb7f5b409ccc authored over 11 years ago by Bethany Skurrie <[email protected]>
Renaming some methods to be more consistent with the domain model names

f0d487ddc04b0c7635fd3edbf7617e4a499353b3 authored over 11 years ago by Bethany Skurrie <[email protected]>
Using consumer name from pactfile now - no need to specify it in the pact:verify rake task.

8c70e8e7055c29830b308762aef0d76e8229d163 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

102cb07d2474cef28ddd410897cddcbe4e0d7ae0 authored over 11 years ago by Bethany Skurrie <[email protected]>
Improving debug logging when running producer side of pact

038ff26fa4d8b8da8e5a134354fd9d1825fd6dc1 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixing broken request headers

e7be1b87b11758d8489df65a182c99e40679627f authored over 11 years ago by Bethany Skurrie <[email protected]>
Add verification of interactions

51baf6a92bf2a3d1abcb53a68e52dfd1cec7abde authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding pending spec to highlight bug

0ea1025ee4e2dacd84c53b090b325e2ab8033392 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version.

aa0d98ffb06cd7a54b4ab191567221ad7932f541 authored over 11 years ago by Bethany Skurrie <[email protected]>
Whitespace.

6d8f6a63af277e946d9807f669eefd71078a726c authored over 11 years ago by Bethany Skurrie <[email protected]>
Added consumer details to pact file.

9895814c09f1bb2cb9f58d6567dd5c959ff8bdbc authored over 11 years ago by Beth Skurrie <[email protected]>
Pushing the "describe" of the pact file down into the rspec module.

a76e9faae07d6505245f254ce59325c5c73f941f authored over 11 years ago by Beth Skurrie <[email protected]>
Refactoring the living daylights out of the producer rspec file.

34832c69e0410cc02165f9e8ada541e0a2e3ea27 authored over 11 years ago by Beth Skurrie <[email protected]>
Changed logic of term matching to not enforce the same number of keys in a hash, as it is valid for a producer to return more keys than the consumer cares about. It now just logs a warning when an empty hash is expected, to make the user aware that ANY hash matches an expected empty hash.

634fee14b228c9adb8dca151907b53826bb66a78 authored over 11 years ago by Bethany Skurrie <[email protected]>
Changed matching logic to ensure that if an empty array or hash is specified by the consumer, that an emtpy hash or array is returned by the producer. Previous logic would allow any array or hash to match an empty array or hash. Also, fixed mock_producer to not overwrite interactions with the same description by different producer state.

a5823150383a9ffdc51798d1bd2b2ea7678d0670 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

cb4ca5e90a83be669a2be96be4a25521f4af7100 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixed the pretty generation of the json

193857e2c4508958c229d8fadc2f808c9c29f676 authored over 11 years ago by Beth <[email protected]>
Improved logging when pact file can't be found.

d66a140bb66aec7b369d518e3d14e553ec1d4079 authored over 11 years ago by Bethany Skurrie <[email protected]>
Removed the unused json/add/core export, because it was clobbering the to_json method used by Time in the accepted-contracts-adapter, causing the tests to fail. The only json serialization that appears to be needed is the Regexp one. Have removed used of symbols.

a1151a709c2869818968e959746f02c0f40f5f8c authored over 11 years ago by Bethany Skurrie <[email protected]>
Removing ruby debug warnings by fixing uninitialised instance variables.

d5a0080d9891e1e3967ef512ce824d92bfab6ffb authored over 11 years ago by Bethany Skurrie <[email protected]>
Removing ruby debug warnings by fixing uninitialised instance variables.

3afd4e5b9e103356ee752aa8ef22eac1e8838802 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

85fbc8ce6e0c95164575e4266b7ee44ca4b07029 authored over 11 years ago by Bethany Skurrie <[email protected]>
Fixing import.

1e763d3a5a097991441ab36e8cbab6f519eb68e4 authored over 11 years ago by Bethany Skurrie <[email protected]>
Creating a new syntax for setting up the producers in the consumer project, to be more in line with the syntax for setting up consumers in the producer project.

279de46803b4be2dc19dbeb3fd5891a6baa4adb0 authored over 11 years ago by Bethany Skurrie <[email protected]>
Changed determination of when a response is json or not to pattern match the word "json" in the content type, rather than checking if it equals 'application/json' because the content type 'application/hal+json' wasn't being recognised as JSON.

4766631a39b7bde694501529c5e0fe5b6606930d authored over 11 years ago by Bethany Skurrie <[email protected]>
Improved error message when responses to not match by adding the expected and actual classes.

6342d9646773fadea4397826c140df0f323a5017 authored over 11 years ago by Bethany Skurrie <[email protected]>
Removing quotes from around producer state name so the rspec describe sentence flows more freely.

3a00244a1065694d833e9c57098bab03230be5fd authored over 11 years ago by Bethany Skurrie <[email protected]>
Making pact dir before test.

bbb3f511babfe4d49dd02af14b908d496d2153b3 authored over 11 years ago by Bethany Skurrie <[email protected]>
Updating README with new configuration DSL instructions

5a4a4294bbd8153a1f5f88d17a257d20d7b6a844 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

3ad971112e681baf74b04743ed90ed63066ea1f2 authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding consumer app config to configuration DSL

c6fd89b6c56e1f665e194bf3abd4dc6a4a3d0b89 authored over 11 years ago by Bethany Skurrie <[email protected]>
Bumping micro version

5ff3a95c9a7d86c53b16b1c77a1b58fb5c65cbe8 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added a configuration DSL for the consumer side, to replace the messy global variables currently required in the before(:suite) block.

a72c112c29495310e063f5e01b10836ade153163 authored over 11 years ago by Bethany Skurrie <[email protected]>
Updating README

b0364a941cb0789d511b1b9745276803d965cf75 authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding a heap of logging

b76900d2d7dbefb99fe6c7d9a7bcff7d3b5c1f41 authored over 11 years ago by Bethany Skurrie <[email protected]>
Rewrote the spawning/killing logic so that we can tell which processes are mock_services, and can call spawn_all/kill_all repeatedly without it blowing up. Now only clears interactions from services that are actually mock services (doesn't do a delete /interactions on the actual app). Added standalone option to allow user to indicate that the mock service has already been started up outside the test. Added logging to configuration.

1197a160471293e477fa84f89a3e2e5f6d375e70 authored over 11 years ago by Bethany Skurrie <[email protected]>
Reinstated the pact mock server.

07f4cc1209f8ab9741e87e0c9d056aa74be40569 authored over 11 years ago by Sebastian Glazebrook <[email protected]>
Adding logic producer state lookups to fall back to a globally defined state of the same name if one for the given consumer does not exist.

e310bebfece849a6dd667c9351fb613f0bb02f4f authored over 11 years ago by Bethany Skurrie <[email protected]>
Renamed ConsumerExpectation to ConsumerContract

8392276900e4867118b3b830fdc1bb31f6967b34 authored over 11 years ago by Bethany Skurrie <[email protected]>
Updating gemfile

c0d620c6e605b920bc4f1a101930d6ca0d5124c8 authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding task to push gem to REA rubygems. Bumping version to 0.1.0

8a09cd3447e0a0d3ef29ae76d0c0826b066d281d authored over 11 years ago by Bethany Skurrie <[email protected]>
Updating readme and renaming pacts_path to pact_dir

fffc30434a515e3fed4b344e824747a9c68cdcb0 authored over 11 years ago by Bethany Skurrie <[email protected]>
Added an on_port method that can be used instead of the 'at' method

19f686deeca4b224f1f6e5f5bb6a09a01bba1bf4 authored over 11 years ago by Bethany Skurrie <[email protected]>
Checking completed items off TODO list

477d7415b630f56df008559e06da81dc2dcdcb2b authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding log_dir to configuration. Adding clear_all to after hook.

41f23e5e20ea4c740f8e989c75d49677b8f562a4 authored over 11 years ago by Bethany Skurrie <[email protected]>
Adding before hooks to clear the expectations in the mock service before each describe.

31aece4fb2b0385a03f0bd8096117bbb40fc058e authored over 11 years ago by Bethany Skurrie <[email protected]>
Simplifying the mock producer set up for the consumer side of the pact. Adding a :pact => true metadata flag for describes.

4aeeeee94f83f3e1874ca029c89f614930c6a37c authored over 11 years ago by Bethany Skurrie <[email protected]>
Merge branch 'master' of git.realestate.com.au:business-systems/pact

b916b51328f75746646799a1fe57d066a8b3e45f authored over 11 years ago by Beth <[email protected]>
Added TODO to README.md

ad445b1f354345634265c578b2558c94b5bdb38f authored over 11 years ago by Beth <[email protected]>
Update README.md

1ef43c46d4a49067e7e9c38e002531576f253f0f authored over 11 years ago by bskurrie <[email protected]>
Updating README

b785aed5ca2656608d95d5f99ddbe33c7a75bcf5 authored over 11 years ago by Beth <[email protected]>
Changing format of pact file - top level is now a hash with an interactions node, rather than an array of interactions. This will allow us to put other metadata in the file. Note: the name ConsumerExpectation is up for debate.

ca28591e19ad4df73523c87712b9b35ddcf3aab2 authored over 11 years ago by Beth <[email protected]>
Changed Pact.consumer to Pact.with_consumer

a1b9677917caa0e8af99b98a2f664bb486cf8253 authored over 11 years ago by Beth <[email protected]>
Removed pact DSL from the global namespace, and left it only on Pact.

2b51d5d3e980062e47533dd0f594a7da63438d82 authored over 11 years ago by Beth <[email protected]>
Making support_file optional

4f5d18607455b7359f37813da34a3ee0abc9e9dd authored over 11 years ago by Beth <[email protected]>