pact_broker 2.87.0 → 2.88.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/docs/CONFIGURATION.md +1 -1
  4. data/docs/api/WEBHOOKS.md +789 -0
  5. data/lib/pact_broker/api/decorators/pact_decorator.rb +12 -0
  6. data/lib/pact_broker/api/resources/default_base_resource.rb +1 -1
  7. data/lib/pact_broker/api/resources/environment.rb +3 -3
  8. data/lib/pact_broker/api/resources/metadata_resource_methods.rb +33 -3
  9. data/lib/pact_broker/api/resources/pact_version.rb +4 -0
  10. data/lib/pact_broker/api/resources/previous_distinct_pact_version.rb +1 -1
  11. data/lib/pact_broker/api/resources/webhook_execution.rb +7 -3
  12. data/lib/pact_broker/api.rb +5 -0
  13. data/lib/pact_broker/deployments/environment_service.rb +3 -1
  14. data/lib/pact_broker/doc/views/provider-pacts-for-verification.markdown +7 -7
  15. data/lib/pact_broker/domain/webhook.rb +2 -2
  16. data/lib/pact_broker/test/http_test_data_builder.rb +1 -0
  17. data/lib/pact_broker/test/test_data_builder.rb +6 -0
  18. data/lib/pact_broker/version.rb +1 -1
  19. data/lib/pact_broker/versions/abbreviate_number.rb +8 -4
  20. data/lib/webmachine/describe_routes.rb +62 -0
  21. data/script/data/branches.rb +1 -1
  22. data/script/docs/generate-api-docs.rb +117 -0
  23. data/script/docs/regenerate-api-docs.sh +11 -0
  24. data/spec/fixtures/approvals/docs_webhooks_executing_a_saved_webhook_options.approved.json +20 -0
  25. data/spec/fixtures/approvals/docs_webhooks_executing_a_saved_webhook_post.approved.json +43 -0
  26. data/spec/fixtures/approvals/docs_webhooks_executing_an_unsaved_webhook_options.approved.json +20 -0
  27. data/spec/fixtures/approvals/docs_webhooks_executing_an_unsaved_webhook_post.approved.json +63 -0
  28. data/spec/fixtures/approvals/docs_webhooks_logs_of_triggered_webhook_get.approved.json +20 -0
  29. data/spec/fixtures/approvals/docs_webhooks_logs_of_triggered_webhook_options.approved.json +20 -0
  30. data/spec/fixtures/approvals/docs_webhooks_pact_webhooks_get.approved.json +45 -0
  31. data/spec/fixtures/approvals/docs_webhooks_pact_webhooks_options.approved.json +20 -0
  32. data/spec/fixtures/approvals/docs_webhooks_triggered_webhooks_for_pact_publication_get.approved.json +52 -0
  33. data/spec/fixtures/approvals/docs_webhooks_triggered_webhooks_for_pact_publication_options.approved.json +20 -0
  34. data/spec/fixtures/approvals/docs_webhooks_triggered_webhooks_for_verification_publication_get.approved.json +32 -0
  35. data/spec/fixtures/approvals/docs_webhooks_triggered_webhooks_for_verification_publication_options.approved.json +20 -0
  36. data/spec/fixtures/approvals/docs_webhooks_webhook_get.approved.json +74 -0
  37. data/spec/fixtures/approvals/docs_webhooks_webhook_options.approved.json +20 -0
  38. data/spec/fixtures/approvals/docs_webhooks_webhook_put.approved.json +77 -0
  39. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_a_provider_get.approved.json +41 -0
  40. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_a_provider_options.approved.json +20 -0
  41. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_consumer_and_provider_get.approved.json +45 -0
  42. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_consumer_and_provider_options.approved.json +20 -0
  43. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_consumer_get.approved.json +41 -0
  44. data/spec/fixtures/approvals/docs_webhooks_webhooks_for_consumer_options.approved.json +20 -0
  45. data/spec/fixtures/approvals/docs_webhooks_webhooks_get.approved.json +45 -0
  46. data/spec/fixtures/approvals/docs_webhooks_webhooks_options.approved.json +20 -0
  47. data/spec/fixtures/approvals/docs_webhooks_webhooks_post.approved.json +78 -0
  48. data/spec/fixtures/approvals/docs_webhooks_webhooks_status_get.approved.json +79 -0
  49. data/spec/fixtures/approvals/docs_webhooks_webhooks_status_options.approved.json +20 -0
  50. data/spec/fixtures/approvals/get_provider_pacts_for_verification.approved.json +1 -2
  51. data/spec/fixtures/approvals/publish_contract_no_branch.approved.json +1 -2
  52. data/spec/fixtures/approvals/publish_contract_nothing_exists.approved.json +1 -2
  53. data/spec/fixtures/approvals/publish_contract_nothing_exists_with_webhook.approved.json +1 -2
  54. data/spec/fixtures/approvals/publish_contract_verification_already_exists.approved.json +1 -2
  55. data/spec/fixtures/approvals/publish_contract_with_validation_error.approved.json +1 -2
  56. data/spec/integration/pact_metdata_spec.rb +105 -0
  57. data/spec/integration/webhooks_documentation_spec.rb +348 -0
  58. data/spec/lib/pact_broker/deployments/environment_service_spec.rb +21 -0
  59. data/spec/lib/pact_broker/domain/webhook_spec.rb +35 -0
  60. data/spec/lib/pact_broker/versions/abbreviate_number_spec.rb +2 -1
  61. data/spec/support/documentation.rb +64 -0
  62. data/spec/support/rack_helpers.rb +1 -1
  63. data/tasks/development.rake +14 -13
  64. metadata +65 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f376a0bea2db36abf0b4b601badefb182b836bad4c43be53063388ad65ecc1c0
4
- data.tar.gz: 5ab7478d03702755dea935bde89173461b6221c4723c719267a9a6e8360d6e9c
3
+ metadata.gz: b886a748e8133256c6b1a48f018263b18abe3e907878bd659941529791052b72
4
+ data.tar.gz: a236b15253a54764939b260d80aa77e1c3635448ce486606f6013df9f864029d
5
5
  SHA512:
6
- metadata.gz: 7bb19660447b2f13d2f815b6ce13b3aa27dac289ba023d4463de204fd6605c1f2d787f8e08d36c5868947ba4fa44fb277cf04a77a9e90ad1a9c5e0642d5ec269
7
- data.tar.gz: 1a68a6c2393f42469045b4fffd1fa548b4833e66401733e75a43382103c8481f38c54d5ed4241e3f4232596b5a23dab6af6a518bad5398d8777b23137c8d9fc9
6
+ metadata.gz: cededddf5b3eacacd0bc3347bb3350156d2acb5bd29bfd0f43b2a234470ec7a592f4a0b41c167d47f9ec25815092d5bdde16d688b4ded08cce6c1c57008683b3
7
+ data.tar.gz: 683226ee8e28b2055a0e99623c7b2fbbb0bc959308eee60d00f5f255a23411331818c236082f23f56ac4752bd32b63fbe37a702747ce99300e3980dbaa5d4262
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ <a name="v2.88.0"></a>
2
+ ### v2.88.0 (2021-10-11)
3
+
4
+ #### Features
5
+
6
+ * include relations for each consumer version that a pact version belongs to when retrieved using the URL from the 'pacts for verification' response ([3458c9e5](/../../commit/3458c9e5))
7
+
8
+ #### Bug Fixes
9
+
10
+ * use the decoded path info rather than the encoded one when creating the pact info ([dd30a1a2](/../../commit/dd30a1a2))
11
+ * edge case in webhook description rendering with participants specified by labels (#512) ([7e6a78d8](/../../commit/7e6a78d8))
12
+
13
+ * **matrix**
14
+ * prevent long version names overlfow the table (#511) ([3c279556](/../../commit/3c279556))
15
+
1
16
  <a name="v2.87.0"></a>
2
17
  ### v2.87.0 (2021-10-05)
3
18
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  <!-- This is a generated file. Please do not edit it directly. -->
5
5
 
6
- The Pact Broker supports configuration via environment variables or a YAML file.
6
+ The Pact Broker supports configuration via environment variables or a YAML file from version 2.87.0.1 of the Docker images.
7
7
 
8
8
  To configure the application using a YAML file, place it in the location `config/pact_broker.yml`,
9
9
  relative to the working directory of the application, or set the environment