pact_broker-client 1.75.2 → 1.75.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/lib/pact_broker/client/version.rb +1 -1
  4. metadata +19 -216
  5. data/.github/workflows/test.yml +0 -59
  6. data/.rspec +0 -3
  7. data/lib/pact_broker/client/pacts/list_latest_versions.rb +0 -66
  8. data/lib/pact_broker/client/webhooks/test.rb +0 -16
  9. data/pact-broker-client.gemspec +0 -30
  10. data/spec/fixtures/MyConsumer-MyProvider (1).json +0 -37
  11. data/spec/fixtures/MyConsumer-MyProvider.json +0 -37
  12. data/spec/fixtures/approvals/can_i_deploy_failure_dry_run.approved.txt +0 -7
  13. data/spec/fixtures/approvals/can_i_deploy_ignore.approved.txt +0 -13
  14. data/spec/fixtures/approvals/can_i_deploy_success_dry_run.approved.txt +0 -7
  15. data/spec/fixtures/approvals/describe_environment.approved.txt +0 -7
  16. data/spec/fixtures/approvals/describe_pacticipant.approved.txt +0 -2
  17. data/spec/fixtures/approvals/list_environments.approved.txt +0 -3
  18. data/spec/fixtures/approvals/publish_provider_contract.approved.txt +0 -2
  19. data/spec/fixtures/certificates/ca_cert.pem +0 -19
  20. data/spec/fixtures/certificates/ca_cert.srl +0 -1
  21. data/spec/fixtures/certificates/ca_key.pem +0 -28
  22. data/spec/fixtures/certificates/client_cert.pem +0 -17
  23. data/spec/fixtures/certificates/key.pem +0 -28
  24. data/spec/fixtures/certificates/server.csr +0 -15
  25. data/spec/fixtures/certificates/unsigned_cert.pem +0 -19
  26. data/spec/fixtures/certificates/unsigned_key.pem +0 -28
  27. data/spec/fixtures/foo-bar.json +0 -31
  28. data/spec/integration/can_i_deploy_spec.rb +0 -24
  29. data/spec/integration/can_i_merge_spec.rb +0 -44
  30. data/spec/integration/create_version_tag_spec.rb +0 -20
  31. data/spec/integration/describe_environment_spec.rb +0 -31
  32. data/spec/integration/publish_provider_contract_spec.rb +0 -53
  33. data/spec/integration/unknown_options_spec.rb +0 -39
  34. data/spec/lib/pact_broker/client/base_client_spec.rb +0 -182
  35. data/spec/lib/pact_broker/client/branches/delete_branch_spec.rb +0 -103
  36. data/spec/lib/pact_broker/client/can_i_deploy_spec.rb +0 -250
  37. data/spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb +0 -196
  38. data/spec/lib/pact_broker/client/cli/broker_create_or_update_webhook_spec.rb +0 -23
  39. data/spec/lib/pact_broker/client/cli/broker_create_webhook_spec.rb +0 -23
  40. data/spec/lib/pact_broker/client/cli/broker_publish_spec.rb +0 -327
  41. data/spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb +0 -287
  42. data/spec/lib/pact_broker/client/cli/custom_thor_spec.rb +0 -174
  43. data/spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb +0 -97
  44. data/spec/lib/pact_broker/client/deployments/record_deployment_spec.rb +0 -224
  45. data/spec/lib/pact_broker/client/deployments/record_support_ended_spec.rb +0 -208
  46. data/spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb +0 -227
  47. data/spec/lib/pact_broker/client/environments/delete_environment_spec.rb +0 -120
  48. data/spec/lib/pact_broker/client/environments/describe_environment_spec.rb +0 -89
  49. data/spec/lib/pact_broker/client/environments/update_environment_spec.rb +0 -167
  50. data/spec/lib/pact_broker/client/generate_display_name_spec.rb +0 -39
  51. data/spec/lib/pact_broker/client/git_spec.rb +0 -159
  52. data/spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb +0 -17
  53. data/spec/lib/pact_broker/client/hal/entity_spec.rb +0 -149
  54. data/spec/lib/pact_broker/client/hal/http_client_spec.rb +0 -238
  55. data/spec/lib/pact_broker/client/hal/link_spec.rb +0 -127
  56. data/spec/lib/pact_broker/client/matrix/abbreviate_version_number_spec.rb +0 -42
  57. data/spec/lib/pact_broker/client/matrix/resource_spec.rb +0 -70
  58. data/spec/lib/pact_broker/client/matrix/text_formatter_spec.rb +0 -63
  59. data/spec/lib/pact_broker/client/matrix_spec.rb +0 -17
  60. data/spec/lib/pact_broker/client/merge_pacts_spec.rb +0 -198
  61. data/spec/lib/pact_broker/client/pact_broker_client_spec.rb +0 -47
  62. data/spec/lib/pact_broker/client/pacticipants/create_spec.rb +0 -31
  63. data/spec/lib/pact_broker/client/pacticipants_spec.rb +0 -18
  64. data/spec/lib/pact_broker/client/publish_pacts_the_old_way_spec.rb +0 -272
  65. data/spec/lib/pact_broker/client/retry_spec.rb +0 -119
  66. data/spec/lib/pact_broker/client/tasks/publication_task_spec.rb +0 -231
  67. data/spec/lib/pact_broker/client/versions/create_spec.rb +0 -174
  68. data/spec/lib/pact_broker/client/versions/describe_spec.rb +0 -64
  69. data/spec/lib/pact_broker/client/versions_spec.rb +0 -34
  70. data/spec/lib/pact_broker/client/webhooks/create_spec.rb +0 -99
  71. data/spec/lib/pactflow/client/provider_contracts/publish_spec.rb +0 -179
  72. data/spec/pacts/pact_broker_client-pact_broker.json +0 -2969
  73. data/spec/pacts/pact_broker_client-pactflow.json +0 -288
  74. data/spec/readme_spec.rb +0 -16
  75. data/spec/service_providers/create_environment_spec.rb +0 -78
  76. data/spec/service_providers/delete_branch_spec.rb +0 -68
  77. data/spec/service_providers/extra_goodies_spec.rb +0 -108
  78. data/spec/service_providers/list_environments_spec.rb +0 -77
  79. data/spec/service_providers/list_latest_pact_versions_spec.rb.bak +0 -44
  80. data/spec/service_providers/pact_broker_client_matrix_ignore_spec.rb +0 -98
  81. data/spec/service_providers/pact_broker_client_matrix_spec.rb +0 -292
  82. data/spec/service_providers/pact_broker_client_pacticipant_version_spec.rb +0 -56
  83. data/spec/service_providers/pact_broker_client_publish_spec.rb +0 -135
  84. data/spec/service_providers/pact_broker_client_register_repository_spec.rb +0 -49
  85. data/spec/service_providers/pact_broker_client_retrieve_all_pacts_for_provider_spec.rb +0 -53
  86. data/spec/service_providers/pact_broker_client_retrieve_pact_spec.rb +0 -109
  87. data/spec/service_providers/pact_broker_client_tags_spec.rb +0 -101
  88. data/spec/service_providers/pact_broker_client_versions_spec.rb +0 -113
  89. data/spec/service_providers/pact_helper.rb +0 -136
  90. data/spec/service_providers/pactflow_publish_provider_contract_spec.rb +0 -137
  91. data/spec/service_providers/pactflow_publish_provider_contract_the_old_way_spec.rb +0 -129
  92. data/spec/service_providers/pactflow_webhooks_create_spec.rb +0 -86
  93. data/spec/service_providers/pacticipants_create_spec.rb +0 -119
  94. data/spec/service_providers/publish_pacts_spec.rb +0 -114
  95. data/spec/service_providers/record_deployment_spec.rb +0 -199
  96. data/spec/service_providers/record_release_spec.rb +0 -130
  97. data/spec/service_providers/record_undeployment_spec.rb +0 -164
  98. data/spec/service_providers/webhooks_create_spec.rb +0 -391
  99. data/spec/spec_helper.rb +0 -68
  100. data/spec/support/approvals.rb +0 -26
  101. data/spec/support/cli_test_pacts/bar.json +0 -0
  102. data/spec/support/cli_test_pacts/foo.json +0 -0
  103. data/spec/support/latest_pacts_for_provider.json +0 -15
  104. data/spec/support/matrix.json +0 -35
  105. data/spec/support/matrix.txt +0 -3
  106. data/spec/support/matrix_error.txt +0 -3
  107. data/spec/support/matrix_with_results.txt +0 -10
  108. data/spec/support/pacticipant_get.json +0 -18
  109. data/spec/support/pacticipants_list.json +0 -26
  110. data/spec/support/pacts_latest_list.json +0 -41
  111. data/spec/support/shared_context.rb +0 -25
  112. data/spec/support/ssl_server.rb +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1182bbb55b2f96fd7be7619d813cd4d144b5f3ed2d0b39c96bf26f50ebe3f49
4
- data.tar.gz: 6f191eb22fa4764e41d59f5be90310637162fc7ac769b00820ab2703e24069a1
3
+ metadata.gz: 4d9a8ebbc45caf061e803ba67adbaf3be6143886ec69f709cf9d474d16125b30
4
+ data.tar.gz: 1ecb4eae6b6f584922598a32a9a8c9e84ee047415d357fba2bd06e8acd4365e4
5
5
  SHA512:
6
- metadata.gz: 57e26c965b62b16ec547f0892efed4006e78c22f4b26ad64b0968953d4d03a3c01c5fac4f9dfd806438df623d1992a8bea575ed85b222b767b8cad43ef487611
7
- data.tar.gz: 1564437e9b96f362b82f0e12cbf7c2ec90f26ca73f0a7792c11b5b622e8e4e50a7121dd2c94544a14c359311f03eb69b3b68d17affd4f5a2c95e4e561f9f9aee
6
+ metadata.gz: 7d604176f1ca12ee9cb622d38d646d0efdc6f658dc4b349ea7c8046fa018536a01672d85be1e7419261899b029746fb11a9380b815ade364e43f82969d4c77df
7
+ data.tar.gz: 82462107861c80e0503af14551a2c7c5a626724b819ea9917ffebfdcaafb247d06ea775a95979e3177bcc7c641e41a1c48c997bbe721bc7172cf6407b68bcd49
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="v1.75.4"></a>
2
+ ### v1.75.4 (2024-07-30)
3
+
4
+ #### Bug Fixes
5
+
6
+ * remove test files from built gem ([4bb7bac](/../../commit/4bb7bac))
7
+
8
+ <a name="v1.75.3"></a>
9
+ ### v1.75.3 (2024-06-17)
10
+
1
11
  <a name="v1.75.2"></a>
2
12
  ### v1.75.2 (2024-05-13)
3
13
 
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.75.2'
3
+ VERSION = '1.75.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.2
4
+ version: 1.75.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -106,6 +106,20 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '1.0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: base64
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.2'
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.2'
109
123
  description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
110
124
  results. Manage webhooks and environments.
111
125
  email:
@@ -120,11 +134,9 @@ files:
120
134
  - ".github/workflows/delete_branch_in_pactflow.yml"
121
135
  - ".github/workflows/release_gem.yml"
122
136
  - ".github/workflows/smartbear-issue-label-added.yml"
123
- - ".github/workflows/test.yml"
124
137
  - ".github/workflows/triage.yml"
125
138
  - ".github/workflows/trigger_pact_docs_update.yml"
126
139
  - ".gitignore"
127
- - ".rspec"
128
140
  - ".ruby-version"
129
141
  - CHANGELOG.md
130
142
  - DEVELOPING.md
@@ -220,7 +232,6 @@ files:
220
232
  - lib/pact_broker/client/pacticipants/list.rb
221
233
  - lib/pact_broker/client/pacticipants/text_formatter.rb
222
234
  - lib/pact_broker/client/pacts.rb
223
- - lib/pact_broker/client/pacts/list_latest_versions.rb
224
235
  - lib/pact_broker/client/publish_pacts.rb
225
236
  - lib/pact_broker/client/publish_pacts_the_old_way.rb
226
237
  - lib/pact_broker/client/retry.rb
@@ -236,13 +247,11 @@ files:
236
247
  - lib/pact_broker/client/versions/json_formatter.rb
237
248
  - lib/pact_broker/client/versions/text_formatter.rb
238
249
  - lib/pact_broker/client/webhooks/create.rb
239
- - lib/pact_broker/client/webhooks/test.rb
240
250
  - lib/pact_broker_client.rb
241
251
  - lib/pactflow/client/cli/pactflow.rb
242
252
  - lib/pactflow/client/cli/provider_contract_commands.rb
243
253
  - lib/pactflow/client/provider_contracts/publish.rb
244
254
  - lib/pactflow/client/provider_contracts/publish_the_old_way.rb
245
- - pact-broker-client.gemspec
246
255
  - script/approve-all.sh
247
256
  - script/can-i-deploy.sh
248
257
  - script/ci/delete-branch-in-pactflow.sh
@@ -260,109 +269,6 @@ files:
260
269
  - script/update-cli-usage-in-readme.rb
261
270
  - script/verification-results.txt
262
271
  - script/webhook-commands.sh
263
- - spec/fixtures/MyConsumer-MyProvider (1).json
264
- - spec/fixtures/MyConsumer-MyProvider.json
265
- - spec/fixtures/approvals/can_i_deploy_failure_dry_run.approved.txt
266
- - spec/fixtures/approvals/can_i_deploy_ignore.approved.txt
267
- - spec/fixtures/approvals/can_i_deploy_success_dry_run.approved.txt
268
- - spec/fixtures/approvals/describe_environment.approved.txt
269
- - spec/fixtures/approvals/describe_pacticipant.approved.txt
270
- - spec/fixtures/approvals/list_environments.approved.txt
271
- - spec/fixtures/approvals/publish_provider_contract.approved.txt
272
- - spec/fixtures/certificates/ca_cert.pem
273
- - spec/fixtures/certificates/ca_cert.srl
274
- - spec/fixtures/certificates/ca_key.pem
275
- - spec/fixtures/certificates/client_cert.pem
276
- - spec/fixtures/certificates/key.pem
277
- - spec/fixtures/certificates/server.csr
278
- - spec/fixtures/certificates/unsigned_cert.pem
279
- - spec/fixtures/certificates/unsigned_key.pem
280
- - spec/fixtures/foo-bar.json
281
- - spec/integration/can_i_deploy_spec.rb
282
- - spec/integration/can_i_merge_spec.rb
283
- - spec/integration/create_version_tag_spec.rb
284
- - spec/integration/describe_environment_spec.rb
285
- - spec/integration/publish_provider_contract_spec.rb
286
- - spec/integration/unknown_options_spec.rb
287
- - spec/lib/pact_broker/client/base_client_spec.rb
288
- - spec/lib/pact_broker/client/branches/delete_branch_spec.rb
289
- - spec/lib/pact_broker/client/can_i_deploy_spec.rb
290
- - spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb
291
- - spec/lib/pact_broker/client/cli/broker_create_or_update_webhook_spec.rb
292
- - spec/lib/pact_broker/client/cli/broker_create_webhook_spec.rb
293
- - spec/lib/pact_broker/client/cli/broker_publish_spec.rb
294
- - spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb
295
- - spec/lib/pact_broker/client/cli/custom_thor_spec.rb
296
- - spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb
297
- - spec/lib/pact_broker/client/deployments/record_deployment_spec.rb
298
- - spec/lib/pact_broker/client/deployments/record_support_ended_spec.rb
299
- - spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb
300
- - spec/lib/pact_broker/client/environments/delete_environment_spec.rb
301
- - spec/lib/pact_broker/client/environments/describe_environment_spec.rb
302
- - spec/lib/pact_broker/client/environments/update_environment_spec.rb
303
- - spec/lib/pact_broker/client/generate_display_name_spec.rb
304
- - spec/lib/pact_broker/client/git_spec.rb
305
- - spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
306
- - spec/lib/pact_broker/client/hal/entity_spec.rb
307
- - spec/lib/pact_broker/client/hal/http_client_spec.rb
308
- - spec/lib/pact_broker/client/hal/link_spec.rb
309
- - spec/lib/pact_broker/client/matrix/abbreviate_version_number_spec.rb
310
- - spec/lib/pact_broker/client/matrix/resource_spec.rb
311
- - spec/lib/pact_broker/client/matrix/text_formatter_spec.rb
312
- - spec/lib/pact_broker/client/matrix_spec.rb
313
- - spec/lib/pact_broker/client/merge_pacts_spec.rb
314
- - spec/lib/pact_broker/client/pact_broker_client_spec.rb
315
- - spec/lib/pact_broker/client/pacticipants/create_spec.rb
316
- - spec/lib/pact_broker/client/pacticipants_spec.rb
317
- - spec/lib/pact_broker/client/publish_pacts_the_old_way_spec.rb
318
- - spec/lib/pact_broker/client/retry_spec.rb
319
- - spec/lib/pact_broker/client/tasks/publication_task_spec.rb
320
- - spec/lib/pact_broker/client/versions/create_spec.rb
321
- - spec/lib/pact_broker/client/versions/describe_spec.rb
322
- - spec/lib/pact_broker/client/versions_spec.rb
323
- - spec/lib/pact_broker/client/webhooks/create_spec.rb
324
- - spec/lib/pactflow/client/provider_contracts/publish_spec.rb
325
- - spec/pacts/pact_broker_client-pact_broker.json
326
- - spec/pacts/pact_broker_client-pactflow.json
327
- - spec/readme_spec.rb
328
- - spec/service_providers/create_environment_spec.rb
329
- - spec/service_providers/delete_branch_spec.rb
330
- - spec/service_providers/extra_goodies_spec.rb
331
- - spec/service_providers/list_environments_spec.rb
332
- - spec/service_providers/list_latest_pact_versions_spec.rb.bak
333
- - spec/service_providers/pact_broker_client_matrix_ignore_spec.rb
334
- - spec/service_providers/pact_broker_client_matrix_spec.rb
335
- - spec/service_providers/pact_broker_client_pacticipant_version_spec.rb
336
- - spec/service_providers/pact_broker_client_publish_spec.rb
337
- - spec/service_providers/pact_broker_client_register_repository_spec.rb
338
- - spec/service_providers/pact_broker_client_retrieve_all_pacts_for_provider_spec.rb
339
- - spec/service_providers/pact_broker_client_retrieve_pact_spec.rb
340
- - spec/service_providers/pact_broker_client_tags_spec.rb
341
- - spec/service_providers/pact_broker_client_versions_spec.rb
342
- - spec/service_providers/pact_helper.rb
343
- - spec/service_providers/pactflow_publish_provider_contract_spec.rb
344
- - spec/service_providers/pactflow_publish_provider_contract_the_old_way_spec.rb
345
- - spec/service_providers/pactflow_webhooks_create_spec.rb
346
- - spec/service_providers/pacticipants_create_spec.rb
347
- - spec/service_providers/publish_pacts_spec.rb
348
- - spec/service_providers/record_deployment_spec.rb
349
- - spec/service_providers/record_release_spec.rb
350
- - spec/service_providers/record_undeployment_spec.rb
351
- - spec/service_providers/webhooks_create_spec.rb
352
- - spec/spec_helper.rb
353
- - spec/support/approvals.rb
354
- - spec/support/cli_test_pacts/bar.json
355
- - spec/support/cli_test_pacts/foo.json
356
- - spec/support/latest_pacts_for_provider.json
357
- - spec/support/matrix.json
358
- - spec/support/matrix.txt
359
- - spec/support/matrix_error.txt
360
- - spec/support/matrix_with_results.txt
361
- - spec/support/pacticipant_get.json
362
- - spec/support/pacticipants_list.json
363
- - spec/support/pacts_latest_list.json
364
- - spec/support/shared_context.rb
365
- - spec/support/ssl_server.rb
366
272
  - tasks/pact.rake
367
273
  homepage: https://github.com/pact-foundation/pact_broker-client.git
368
274
  licenses:
@@ -376,118 +282,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
282
  requirements:
377
283
  - - ">="
378
284
  - !ruby/object:Gem::Version
379
- version: '2.0'
285
+ version: '0'
380
286
  required_rubygems_version: !ruby/object:Gem::Requirement
381
287
  requirements:
382
288
  - - ">="
383
289
  - !ruby/object:Gem::Version
384
290
  version: '0'
385
291
  requirements: []
386
- rubygems_version: 3.5.10
292
+ rubygems_version: 3.5.16
387
293
  signing_key:
388
294
  specification_version: 4
389
295
  summary: See description
390
- test_files:
391
- - spec/fixtures/MyConsumer-MyProvider (1).json
392
- - spec/fixtures/MyConsumer-MyProvider.json
393
- - spec/fixtures/approvals/can_i_deploy_failure_dry_run.approved.txt
394
- - spec/fixtures/approvals/can_i_deploy_ignore.approved.txt
395
- - spec/fixtures/approvals/can_i_deploy_success_dry_run.approved.txt
396
- - spec/fixtures/approvals/describe_environment.approved.txt
397
- - spec/fixtures/approvals/describe_pacticipant.approved.txt
398
- - spec/fixtures/approvals/list_environments.approved.txt
399
- - spec/fixtures/approvals/publish_provider_contract.approved.txt
400
- - spec/fixtures/certificates/ca_cert.pem
401
- - spec/fixtures/certificates/ca_cert.srl
402
- - spec/fixtures/certificates/ca_key.pem
403
- - spec/fixtures/certificates/client_cert.pem
404
- - spec/fixtures/certificates/key.pem
405
- - spec/fixtures/certificates/server.csr
406
- - spec/fixtures/certificates/unsigned_cert.pem
407
- - spec/fixtures/certificates/unsigned_key.pem
408
- - spec/fixtures/foo-bar.json
409
- - spec/integration/can_i_deploy_spec.rb
410
- - spec/integration/can_i_merge_spec.rb
411
- - spec/integration/create_version_tag_spec.rb
412
- - spec/integration/describe_environment_spec.rb
413
- - spec/integration/publish_provider_contract_spec.rb
414
- - spec/integration/unknown_options_spec.rb
415
- - spec/lib/pact_broker/client/base_client_spec.rb
416
- - spec/lib/pact_broker/client/branches/delete_branch_spec.rb
417
- - spec/lib/pact_broker/client/can_i_deploy_spec.rb
418
- - spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb
419
- - spec/lib/pact_broker/client/cli/broker_create_or_update_webhook_spec.rb
420
- - spec/lib/pact_broker/client/cli/broker_create_webhook_spec.rb
421
- - spec/lib/pact_broker/client/cli/broker_publish_spec.rb
422
- - spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb
423
- - spec/lib/pact_broker/client/cli/custom_thor_spec.rb
424
- - spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb
425
- - spec/lib/pact_broker/client/deployments/record_deployment_spec.rb
426
- - spec/lib/pact_broker/client/deployments/record_support_ended_spec.rb
427
- - spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb
428
- - spec/lib/pact_broker/client/environments/delete_environment_spec.rb
429
- - spec/lib/pact_broker/client/environments/describe_environment_spec.rb
430
- - spec/lib/pact_broker/client/environments/update_environment_spec.rb
431
- - spec/lib/pact_broker/client/generate_display_name_spec.rb
432
- - spec/lib/pact_broker/client/git_spec.rb
433
- - spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
434
- - spec/lib/pact_broker/client/hal/entity_spec.rb
435
- - spec/lib/pact_broker/client/hal/http_client_spec.rb
436
- - spec/lib/pact_broker/client/hal/link_spec.rb
437
- - spec/lib/pact_broker/client/matrix/abbreviate_version_number_spec.rb
438
- - spec/lib/pact_broker/client/matrix/resource_spec.rb
439
- - spec/lib/pact_broker/client/matrix/text_formatter_spec.rb
440
- - spec/lib/pact_broker/client/matrix_spec.rb
441
- - spec/lib/pact_broker/client/merge_pacts_spec.rb
442
- - spec/lib/pact_broker/client/pact_broker_client_spec.rb
443
- - spec/lib/pact_broker/client/pacticipants/create_spec.rb
444
- - spec/lib/pact_broker/client/pacticipants_spec.rb
445
- - spec/lib/pact_broker/client/publish_pacts_the_old_way_spec.rb
446
- - spec/lib/pact_broker/client/retry_spec.rb
447
- - spec/lib/pact_broker/client/tasks/publication_task_spec.rb
448
- - spec/lib/pact_broker/client/versions/create_spec.rb
449
- - spec/lib/pact_broker/client/versions/describe_spec.rb
450
- - spec/lib/pact_broker/client/versions_spec.rb
451
- - spec/lib/pact_broker/client/webhooks/create_spec.rb
452
- - spec/lib/pactflow/client/provider_contracts/publish_spec.rb
453
- - spec/pacts/pact_broker_client-pact_broker.json
454
- - spec/pacts/pact_broker_client-pactflow.json
455
- - spec/readme_spec.rb
456
- - spec/service_providers/create_environment_spec.rb
457
- - spec/service_providers/delete_branch_spec.rb
458
- - spec/service_providers/extra_goodies_spec.rb
459
- - spec/service_providers/list_environments_spec.rb
460
- - spec/service_providers/list_latest_pact_versions_spec.rb.bak
461
- - spec/service_providers/pact_broker_client_matrix_ignore_spec.rb
462
- - spec/service_providers/pact_broker_client_matrix_spec.rb
463
- - spec/service_providers/pact_broker_client_pacticipant_version_spec.rb
464
- - spec/service_providers/pact_broker_client_publish_spec.rb
465
- - spec/service_providers/pact_broker_client_register_repository_spec.rb
466
- - spec/service_providers/pact_broker_client_retrieve_all_pacts_for_provider_spec.rb
467
- - spec/service_providers/pact_broker_client_retrieve_pact_spec.rb
468
- - spec/service_providers/pact_broker_client_tags_spec.rb
469
- - spec/service_providers/pact_broker_client_versions_spec.rb
470
- - spec/service_providers/pact_helper.rb
471
- - spec/service_providers/pactflow_publish_provider_contract_spec.rb
472
- - spec/service_providers/pactflow_publish_provider_contract_the_old_way_spec.rb
473
- - spec/service_providers/pactflow_webhooks_create_spec.rb
474
- - spec/service_providers/pacticipants_create_spec.rb
475
- - spec/service_providers/publish_pacts_spec.rb
476
- - spec/service_providers/record_deployment_spec.rb
477
- - spec/service_providers/record_release_spec.rb
478
- - spec/service_providers/record_undeployment_spec.rb
479
- - spec/service_providers/webhooks_create_spec.rb
480
- - spec/spec_helper.rb
481
- - spec/support/approvals.rb
482
- - spec/support/cli_test_pacts/bar.json
483
- - spec/support/cli_test_pacts/foo.json
484
- - spec/support/latest_pacts_for_provider.json
485
- - spec/support/matrix.json
486
- - spec/support/matrix.txt
487
- - spec/support/matrix_error.txt
488
- - spec/support/matrix_with_results.txt
489
- - spec/support/pacticipant_get.json
490
- - spec/support/pacticipants_list.json
491
- - spec/support/pacts_latest_list.json
492
- - spec/support/shared_context.rb
493
- - spec/support/ssl_server.rb
296
+ test_files: []
@@ -1,59 +0,0 @@
1
- name: Test
2
-
3
- on:
4
- push:
5
- pull_request:
6
- workflow_dispatch:
7
-
8
- jobs:
9
- test:
10
- runs-on: ${{ matrix.os }}
11
- strategy:
12
- fail-fast: false
13
- matrix:
14
- ruby_version: ["2.7", "3.0", "3.1", "3.2", "3.3"]
15
- os: ["ubuntu-latest","windows-latest","macos-latest"]
16
- steps:
17
- - uses: actions/checkout@v4
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby_version }}
21
- - run: "bundle install"
22
- - run: "bundle exec rake"
23
- pact:
24
- runs-on: "ubuntu-latest"
25
- continue-on-error: true
26
- strategy:
27
- fail-fast: false
28
- matrix:
29
- feature: [""]
30
- steps:
31
- - uses: actions/checkout@v4
32
- - uses: ruby/setup-ruby@v1
33
- with:
34
- ruby-version: "3.2"
35
- - run: "bundle install"
36
- # Publish to old and new account until we can disable the old account
37
- - name: Generate and publish pacts
38
- run: |
39
- rm -rf spec/pacts/*
40
- bundle exec rspec spec/service_providers/
41
- bundle exec rake pact:publish:pactflow_pact_foundation
42
- env:
43
- PACT_BROKER_TOKEN_PACT_FOUNDATION: ${{ secrets.PACT_BROKER_TOKEN_PACT_FOUNDATION }}
44
- PACT_BROKER_FEATURES: ${{ matrix.feature }}
45
- TEST_FEATURE: ${{ matrix.feature }}
46
- can-i-deploy:
47
- runs-on: "ubuntu-latest"
48
- needs: pact
49
- steps:
50
- - run: |
51
- docker run --rm \
52
- -e PACT_BROKER_BASE_URL=https://pact-foundation.pactflow.io \
53
- -e PACT_BROKER_TOKEN \
54
- pactfoundation/pact-cli:latest \
55
- broker can-i-deploy \
56
- --pacticipant "Pact Broker Client" --version ${GITHUB_SHA} \
57
- --pacticipant "Pact Broker" --branch master
58
- env:
59
- PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN_PACT_FOUNDATION }}
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --format documentation
3
- --require spec_helper
@@ -1,66 +0,0 @@
1
- require 'pact_broker/client/hal'
2
- require 'pact_broker/client/command_result'
3
- require 'pact_broker/client/hal_client_methods'
4
- require 'ostruct'
5
-
6
- module PactBroker
7
- module Client
8
- module Pacts
9
- class ListLatestVersions
10
-
11
- include HalClientMethods
12
-
13
- def self.call(pact_broker_base_url, output, pact_broker_client_options)
14
- new(pact_broker_base_url, output, pact_broker_client_options).call
15
- end
16
-
17
- def initialize(pact_broker_base_url, output, pact_broker_client_options)
18
- @index_entry_point = create_index_entry_point(pact_broker_base_url, pact_broker_client_options)
19
- @output = output
20
- end
21
-
22
- def call
23
- message = if output == 'json'
24
- versions_resource.response.raw_body
25
- else
26
- to_text(versions)
27
- end
28
- PactBroker::Client::CommandResult.new(true, message)
29
-
30
- rescue StandardError => e
31
- PactBroker::Client::CommandResult.new(false, e.message)
32
- end
33
-
34
- private
35
-
36
- attr_reader :index_entry_point, :output
37
-
38
- def versions
39
- versions_resource.pacts.collect do | pact |
40
- OpenStruct.new(
41
- consumer_name: pact['_embedded']['consumer']['name'],
42
- provider_name: pact['_embedded']['provider']['name'],
43
- consumer_version_number: pact['_embedded']['consumer']['_embedded']['version']['number'],
44
- created_at: pact['createdAt']
45
- )
46
- end
47
- end
48
-
49
- def versions_resource
50
- index_entry_point.get!._link('pb:latest-pact-versions').get!
51
- end
52
-
53
- def to_text(pacts)
54
- require 'table_print'
55
- options = [
56
- { consumer_name: {display_name: 'consumer'} },
57
- { consumer_version_number: {display_name: 'consumer_version'} },
58
- { provider_name: {display_name: 'provider'} },
59
- { created_at: {} }
60
- ]
61
- TablePrint::Printer.new(pacts, options).table_print
62
- end
63
- end
64
- end
65
- end
66
- end
@@ -1,16 +0,0 @@
1
- require 'pact_broker/client/hal'
2
- require 'pact_broker/client/command_result'
3
-
4
- module PactBroker
5
- module Client
6
- module Webhooks
7
- class Test
8
- def self.call(options, pact_broker_client_options)
9
- http_client = PactBroker::Client::Hal::HttpClient.new(pact_broker_client_options.merge(pact_broker_client_options[:basic_auth] || {}))
10
- execution_result = PactBroker::Client::Hal::EntryPoint.new(options.broker_base_url, http_client).get!._link!('pb:webhook').expand('uuid' => options.uuid).get!.post('pb:execute')
11
- PactBroker::Client::CommandResult.new(true, execution_result.response.body['logs'])
12
- end
13
- end
14
- end
15
- end
16
- end
@@ -1,30 +0,0 @@
1
-
2
- # -*- encoding: utf-8 -*-
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'pact_broker/client/version'
6
-
7
- Gem::Specification.new do |gem|
8
- gem.name = "pact_broker-client"
9
- gem.version = PactBroker::Client::VERSION
10
- gem.authors = ["Beth Skurrie"]
11
- gem.email = ["beth@bethesque.com"]
12
- gem.description = %q{Client for the Pact Broker. Publish, retrieve and query pacts and verification results. Manage webhooks and environments.}
13
- gem.summary = %q{See description}
14
- gem.homepage = "https://github.com/pact-foundation/pact_broker-client.git"
15
-
16
- gem.required_ruby_version = '>= 2.0'
17
-
18
- gem.files = `git ls-files`.split($/)
19
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
20
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
- gem.require_paths = ["lib"]
22
- gem.license = 'MIT'
23
-
24
- gem.add_runtime_dependency 'httparty', ">= 0.21.0", "< 1.0.0"
25
- gem.add_runtime_dependency 'term-ansicolor', '~> 1.7'
26
- gem.add_runtime_dependency 'table_print', '~> 1.5'
27
- gem.add_runtime_dependency 'thor', '>= 0.20', '< 2.0'
28
- gem.add_runtime_dependency 'rake', '~> 13.0' #For FileList
29
- gem.add_runtime_dependency 'dig_rb', '~> 1.0'
30
- end
@@ -1,37 +0,0 @@
1
- {
2
- "consumer": {
3
- "name": "MyConsumer"
4
- },
5
- "interactions": [
6
- {
7
- "description": "request",
8
- "providerStates": [
9
- {
10
- "name": "state 2"
11
- }
12
- ],
13
- "request": {
14
- "method": "GET",
15
- "path": "/2"
16
- },
17
- "response": {
18
- "status": 200
19
- }
20
- }
21
- ],
22
- "metadata": {
23
- "pact-js": {
24
- "version": "11.0.2"
25
- },
26
- "pactRust": {
27
- "ffi": "0.4.0",
28
- "models": "1.0.4"
29
- },
30
- "pactSpecification": {
31
- "version": "3.0.0"
32
- }
33
- },
34
- "provider": {
35
- "name": "MyProvider"
36
- }
37
- }
@@ -1,37 +0,0 @@
1
- {
2
- "consumer": {
3
- "name": "MyConsumer"
4
- },
5
- "interactions": [
6
- {
7
- "description": "request",
8
- "providerStates": [
9
- {
10
- "name": "state 1"
11
- }
12
- ],
13
- "request": {
14
- "method": "GET",
15
- "path": "/1"
16
- },
17
- "response": {
18
- "status": 200
19
- }
20
- }
21
- ],
22
- "metadata": {
23
- "pact-js": {
24
- "version": "11.0.2"
25
- },
26
- "pactRust": {
27
- "ffi": "0.4.0",
28
- "models": "1.0.4"
29
- },
30
- "pactSpecification": {
31
- "version": "3.0.0"
32
- }
33
- },
34
- "provider": {
35
- "name": "MyProvider"
36
- }
37
- }
@@ -1,7 +0,0 @@
1
- [dry-run] Computer says no ¯\_(ツ)_/¯ (but you're ignoring this by enabling dry run)
2
- [dry-run] 
3
- [dry-run] text matrix
4
- [dry-run] 
5
- [dry-run] some reason
6
- [dry-run] 
7
- [dry-run] Dry run enabled - ignoring any failures
@@ -1,13 +0,0 @@
1
- Computer says yes \o/ 
2
-
3
- CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS? | RESULT#
4
- ---------|-----------|----------|-----------|-----------------|--------
5
- Foo | 1.2.3 | Bar | 4.5.6 | true | 1
6
- Foo | 3.4.5 | Bar | 4.5.6 | false [ignored] | 2
7
-
8
- VERIFICATION RESULTS
9
- --------------------
10
- 1. http://result (success)
11
- 2. http://result (failure)
12
-
13
- some notice
@@ -1,7 +0,0 @@
1
- [dry-run] Computer says yes \o/ (and maybe you don't need to enable dry run)
2
- [dry-run] 
3
- [dry-run] text matrix
4
- [dry-run] 
5
- [dry-run] some reason
6
- [dry-run] 
7
- [dry-run] Dry run enabled - ignoring any failures
@@ -1,7 +0,0 @@
1
- Name: existing name
2
- Display Name: existing display name
3
- Production: true
4
- Contacts:
5
- - Name: Someone
6
- Details:
7
- Email Address: foo@bar.com
@@ -1,2 +0,0 @@
1
- Name: Pricing Service
2
- Repository Url: git@git.realestate.com.au:business-systems/pricing-service
@@ -1,3 +0,0 @@
1
- UUID | NAME | DISPLAY NAME | PRODUCTION
2
- -------------------------------------|------|--------------|-----------
3
- 78e85fb2-9df1-48da-817e-c9bea6294e01 | test | Test | false
@@ -1,2 +0,0 @@
1
- some notice
2
- some other notice
@@ -1,19 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDATCCAemgAwIBAgIUWfQF2Mh+eFd3q+cSVgekpaMTh9MwDQYJKoZIhvcNAQEL
3
- BQAwDzENMAsGA1UEAwwETXlDQTAgFw0yMzA5MTkxMTA2MjZaGA8yMTIzMDgyNjEx
4
- MDYyNlowDzENMAsGA1UEAwwETXlDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
5
- AQoCggEBAK9Qha2OdeFrSCUqiYRUBngNLn8PRGDaKPWmjd+3WOWJNM1RNgFfGpKY
6
- nxYJp4J6eW7aeQ6o94Q+QOZp+Yxm6thrtvjRbcEafAore4EwC4tjXvoFoy+mKwzm
7
- njlJw+ha3TsMAqD3GGDLF7uDnmliURRo8TOmJ++Mwss9Uhb5p9LArjWXa3sV8da+
8
- gsxP2aTgBZfznUhNKDGUfezYa5UEbHQ869rA1PAqL3tOC2M5LTX08C2PlzzLOF5S
9
- gBzicV1PPDkmkbxKmFV+D8LmkwWNsRhrzZ6TIxYoXIRhziS7JuYOGU7G0+6ZKpIP
10
- mo7WXSoSrd7GL5PQJzlHKCsTckd4so0CAwEAAaNTMFEwHQYDVR0OBBYEFCeovNXs
11
- r1mcbprFaLyll+LrBJmQMB8GA1UdIwQYMBaAFCeovNXsr1mcbprFaLyll+LrBJmQ
12
- MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHOsbZ0iDiKiRU8Q
13
- hIAav056dboPjTK19Q736DUD6oCbTbvecfxMv/wu9LmYGW5jt/DWP6s+jDYhcPpj
14
- c3U03pPKCnvsG5z60ZgmNSqzyVAVPW17UVdw/ZnkKK/SFxYgYQaF/1g6opS2Zana
15
- 4aBGypqqGoD4KE+DAnRjuuCUpiz3zXwGd86auajY6soMlLNnVXteVa/whW6IZ84x
16
- w4LISeMGUr+MXw9ye4WhcZYKZ4vwJdUYst2PA0pDuGwBDbGnrYloGm2BSpaHXUUo
17
- XrwKFFkIxcK63IpAhoceTJpyfjI1BSmItfjEwToOUu6xDBsHLNiH6BKstSxk0DfX
18
- 01PHz2I=
19
- -----END CERTIFICATE-----