pact_broker-client 1.75.3 → 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 +7 -0
  3. data/lib/pact_broker/client/version.rb +1 -1
  4. metadata +5 -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 -31
  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: 2d85daa10328b3c815584473aca64d42fb2f2139098782e39249956a14239f9f
4
- data.tar.gz: 92e4204165393e3c6de26a8dad87bd199e199b1bc0bcf1f6323cde11d8b2e523
3
+ metadata.gz: 4d9a8ebbc45caf061e803ba67adbaf3be6143886ec69f709cf9d474d16125b30
4
+ data.tar.gz: 1ecb4eae6b6f584922598a32a9a8c9e84ee047415d357fba2bd06e8acd4365e4
5
5
  SHA512:
6
- metadata.gz: be3514dcba91fb1153e227be1bc2f0e419ec40799b1a81426db87a28c2c7610634c84f312c3c58142088ef098c0059ceaa9d23f19dae698618b8c41358e30643
7
- data.tar.gz: 18d34ff71ee33a0d16b72726ad9d2e95a778d3b997447b122665f50a2afef725c7f42d47c6bf39e6bafec481a8abd762b1621aa5fd36b2f581f1cd014b78f915
6
+ metadata.gz: 7d604176f1ca12ee9cb622d38d646d0efdc6f658dc4b349ea7c8046fa018536a01672d85be1e7419261899b029746fb11a9380b815ade364e43f82969d4c77df
7
+ data.tar.gz: 82462107861c80e0503af14551a2c7c5a626724b819ea9917ffebfdcaafb247d06ea775a95979e3177bcc7c641e41a1c48c997bbe721bc7172cf6407b68bcd49
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  <a name="v1.75.3"></a>
2
9
  ### v1.75.3 (2024-06-17)
3
10
 
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.75.3'
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.3
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-06-17 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
@@ -134,11 +134,9 @@ files:
134
134
  - ".github/workflows/delete_branch_in_pactflow.yml"
135
135
  - ".github/workflows/release_gem.yml"
136
136
  - ".github/workflows/smartbear-issue-label-added.yml"
137
- - ".github/workflows/test.yml"
138
137
  - ".github/workflows/triage.yml"
139
138
  - ".github/workflows/trigger_pact_docs_update.yml"
140
139
  - ".gitignore"
141
- - ".rspec"
142
140
  - ".ruby-version"
143
141
  - CHANGELOG.md
144
142
  - DEVELOPING.md
@@ -234,7 +232,6 @@ files:
234
232
  - lib/pact_broker/client/pacticipants/list.rb
235
233
  - lib/pact_broker/client/pacticipants/text_formatter.rb
236
234
  - lib/pact_broker/client/pacts.rb
237
- - lib/pact_broker/client/pacts/list_latest_versions.rb
238
235
  - lib/pact_broker/client/publish_pacts.rb
239
236
  - lib/pact_broker/client/publish_pacts_the_old_way.rb
240
237
  - lib/pact_broker/client/retry.rb
@@ -250,13 +247,11 @@ files:
250
247
  - lib/pact_broker/client/versions/json_formatter.rb
251
248
  - lib/pact_broker/client/versions/text_formatter.rb
252
249
  - lib/pact_broker/client/webhooks/create.rb
253
- - lib/pact_broker/client/webhooks/test.rb
254
250
  - lib/pact_broker_client.rb
255
251
  - lib/pactflow/client/cli/pactflow.rb
256
252
  - lib/pactflow/client/cli/provider_contract_commands.rb
257
253
  - lib/pactflow/client/provider_contracts/publish.rb
258
254
  - lib/pactflow/client/provider_contracts/publish_the_old_way.rb
259
- - pact-broker-client.gemspec
260
255
  - script/approve-all.sh
261
256
  - script/can-i-deploy.sh
262
257
  - script/ci/delete-branch-in-pactflow.sh
@@ -274,109 +269,6 @@ files:
274
269
  - script/update-cli-usage-in-readme.rb
275
270
  - script/verification-results.txt
276
271
  - script/webhook-commands.sh
277
- - spec/fixtures/MyConsumer-MyProvider (1).json
278
- - spec/fixtures/MyConsumer-MyProvider.json
279
- - spec/fixtures/approvals/can_i_deploy_failure_dry_run.approved.txt
280
- - spec/fixtures/approvals/can_i_deploy_ignore.approved.txt
281
- - spec/fixtures/approvals/can_i_deploy_success_dry_run.approved.txt
282
- - spec/fixtures/approvals/describe_environment.approved.txt
283
- - spec/fixtures/approvals/describe_pacticipant.approved.txt
284
- - spec/fixtures/approvals/list_environments.approved.txt
285
- - spec/fixtures/approvals/publish_provider_contract.approved.txt
286
- - spec/fixtures/certificates/ca_cert.pem
287
- - spec/fixtures/certificates/ca_cert.srl
288
- - spec/fixtures/certificates/ca_key.pem
289
- - spec/fixtures/certificates/client_cert.pem
290
- - spec/fixtures/certificates/key.pem
291
- - spec/fixtures/certificates/server.csr
292
- - spec/fixtures/certificates/unsigned_cert.pem
293
- - spec/fixtures/certificates/unsigned_key.pem
294
- - spec/fixtures/foo-bar.json
295
- - spec/integration/can_i_deploy_spec.rb
296
- - spec/integration/can_i_merge_spec.rb
297
- - spec/integration/create_version_tag_spec.rb
298
- - spec/integration/describe_environment_spec.rb
299
- - spec/integration/publish_provider_contract_spec.rb
300
- - spec/integration/unknown_options_spec.rb
301
- - spec/lib/pact_broker/client/base_client_spec.rb
302
- - spec/lib/pact_broker/client/branches/delete_branch_spec.rb
303
- - spec/lib/pact_broker/client/can_i_deploy_spec.rb
304
- - spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb
305
- - spec/lib/pact_broker/client/cli/broker_create_or_update_webhook_spec.rb
306
- - spec/lib/pact_broker/client/cli/broker_create_webhook_spec.rb
307
- - spec/lib/pact_broker/client/cli/broker_publish_spec.rb
308
- - spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb
309
- - spec/lib/pact_broker/client/cli/custom_thor_spec.rb
310
- - spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb
311
- - spec/lib/pact_broker/client/deployments/record_deployment_spec.rb
312
- - spec/lib/pact_broker/client/deployments/record_support_ended_spec.rb
313
- - spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb
314
- - spec/lib/pact_broker/client/environments/delete_environment_spec.rb
315
- - spec/lib/pact_broker/client/environments/describe_environment_spec.rb
316
- - spec/lib/pact_broker/client/environments/update_environment_spec.rb
317
- - spec/lib/pact_broker/client/generate_display_name_spec.rb
318
- - spec/lib/pact_broker/client/git_spec.rb
319
- - spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
320
- - spec/lib/pact_broker/client/hal/entity_spec.rb
321
- - spec/lib/pact_broker/client/hal/http_client_spec.rb
322
- - spec/lib/pact_broker/client/hal/link_spec.rb
323
- - spec/lib/pact_broker/client/matrix/abbreviate_version_number_spec.rb
324
- - spec/lib/pact_broker/client/matrix/resource_spec.rb
325
- - spec/lib/pact_broker/client/matrix/text_formatter_spec.rb
326
- - spec/lib/pact_broker/client/matrix_spec.rb
327
- - spec/lib/pact_broker/client/merge_pacts_spec.rb
328
- - spec/lib/pact_broker/client/pact_broker_client_spec.rb
329
- - spec/lib/pact_broker/client/pacticipants/create_spec.rb
330
- - spec/lib/pact_broker/client/pacticipants_spec.rb
331
- - spec/lib/pact_broker/client/publish_pacts_the_old_way_spec.rb
332
- - spec/lib/pact_broker/client/retry_spec.rb
333
- - spec/lib/pact_broker/client/tasks/publication_task_spec.rb
334
- - spec/lib/pact_broker/client/versions/create_spec.rb
335
- - spec/lib/pact_broker/client/versions/describe_spec.rb
336
- - spec/lib/pact_broker/client/versions_spec.rb
337
- - spec/lib/pact_broker/client/webhooks/create_spec.rb
338
- - spec/lib/pactflow/client/provider_contracts/publish_spec.rb
339
- - spec/pacts/pact_broker_client-pact_broker.json
340
- - spec/pacts/pact_broker_client-pactflow.json
341
- - spec/readme_spec.rb
342
- - spec/service_providers/create_environment_spec.rb
343
- - spec/service_providers/delete_branch_spec.rb
344
- - spec/service_providers/extra_goodies_spec.rb
345
- - spec/service_providers/list_environments_spec.rb
346
- - spec/service_providers/list_latest_pact_versions_spec.rb.bak
347
- - spec/service_providers/pact_broker_client_matrix_ignore_spec.rb
348
- - spec/service_providers/pact_broker_client_matrix_spec.rb
349
- - spec/service_providers/pact_broker_client_pacticipant_version_spec.rb
350
- - spec/service_providers/pact_broker_client_publish_spec.rb
351
- - spec/service_providers/pact_broker_client_register_repository_spec.rb
352
- - spec/service_providers/pact_broker_client_retrieve_all_pacts_for_provider_spec.rb
353
- - spec/service_providers/pact_broker_client_retrieve_pact_spec.rb
354
- - spec/service_providers/pact_broker_client_tags_spec.rb
355
- - spec/service_providers/pact_broker_client_versions_spec.rb
356
- - spec/service_providers/pact_helper.rb
357
- - spec/service_providers/pactflow_publish_provider_contract_spec.rb
358
- - spec/service_providers/pactflow_publish_provider_contract_the_old_way_spec.rb
359
- - spec/service_providers/pactflow_webhooks_create_spec.rb
360
- - spec/service_providers/pacticipants_create_spec.rb
361
- - spec/service_providers/publish_pacts_spec.rb
362
- - spec/service_providers/record_deployment_spec.rb
363
- - spec/service_providers/record_release_spec.rb
364
- - spec/service_providers/record_undeployment_spec.rb
365
- - spec/service_providers/webhooks_create_spec.rb
366
- - spec/spec_helper.rb
367
- - spec/support/approvals.rb
368
- - spec/support/cli_test_pacts/bar.json
369
- - spec/support/cli_test_pacts/foo.json
370
- - spec/support/latest_pacts_for_provider.json
371
- - spec/support/matrix.json
372
- - spec/support/matrix.txt
373
- - spec/support/matrix_error.txt
374
- - spec/support/matrix_with_results.txt
375
- - spec/support/pacticipant_get.json
376
- - spec/support/pacticipants_list.json
377
- - spec/support/pacts_latest_list.json
378
- - spec/support/shared_context.rb
379
- - spec/support/ssl_server.rb
380
272
  - tasks/pact.rake
381
273
  homepage: https://github.com/pact-foundation/pact_broker-client.git
382
274
  licenses:
@@ -390,118 +282,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
390
282
  requirements:
391
283
  - - ">="
392
284
  - !ruby/object:Gem::Version
393
- version: '2.0'
285
+ version: '0'
394
286
  required_rubygems_version: !ruby/object:Gem::Requirement
395
287
  requirements:
396
288
  - - ">="
397
289
  - !ruby/object:Gem::Version
398
290
  version: '0'
399
291
  requirements: []
400
- rubygems_version: 3.5.13
292
+ rubygems_version: 3.5.16
401
293
  signing_key:
402
294
  specification_version: 4
403
295
  summary: See description
404
- test_files:
405
- - spec/fixtures/MyConsumer-MyProvider (1).json
406
- - spec/fixtures/MyConsumer-MyProvider.json
407
- - spec/fixtures/approvals/can_i_deploy_failure_dry_run.approved.txt
408
- - spec/fixtures/approvals/can_i_deploy_ignore.approved.txt
409
- - spec/fixtures/approvals/can_i_deploy_success_dry_run.approved.txt
410
- - spec/fixtures/approvals/describe_environment.approved.txt
411
- - spec/fixtures/approvals/describe_pacticipant.approved.txt
412
- - spec/fixtures/approvals/list_environments.approved.txt
413
- - spec/fixtures/approvals/publish_provider_contract.approved.txt
414
- - spec/fixtures/certificates/ca_cert.pem
415
- - spec/fixtures/certificates/ca_cert.srl
416
- - spec/fixtures/certificates/ca_key.pem
417
- - spec/fixtures/certificates/client_cert.pem
418
- - spec/fixtures/certificates/key.pem
419
- - spec/fixtures/certificates/server.csr
420
- - spec/fixtures/certificates/unsigned_cert.pem
421
- - spec/fixtures/certificates/unsigned_key.pem
422
- - spec/fixtures/foo-bar.json
423
- - spec/integration/can_i_deploy_spec.rb
424
- - spec/integration/can_i_merge_spec.rb
425
- - spec/integration/create_version_tag_spec.rb
426
- - spec/integration/describe_environment_spec.rb
427
- - spec/integration/publish_provider_contract_spec.rb
428
- - spec/integration/unknown_options_spec.rb
429
- - spec/lib/pact_broker/client/base_client_spec.rb
430
- - spec/lib/pact_broker/client/branches/delete_branch_spec.rb
431
- - spec/lib/pact_broker/client/can_i_deploy_spec.rb
432
- - spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb
433
- - spec/lib/pact_broker/client/cli/broker_create_or_update_webhook_spec.rb
434
- - spec/lib/pact_broker/client/cli/broker_create_webhook_spec.rb
435
- - spec/lib/pact_broker/client/cli/broker_publish_spec.rb
436
- - spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb
437
- - spec/lib/pact_broker/client/cli/custom_thor_spec.rb
438
- - spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb
439
- - spec/lib/pact_broker/client/deployments/record_deployment_spec.rb
440
- - spec/lib/pact_broker/client/deployments/record_support_ended_spec.rb
441
- - spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb
442
- - spec/lib/pact_broker/client/environments/delete_environment_spec.rb
443
- - spec/lib/pact_broker/client/environments/describe_environment_spec.rb
444
- - spec/lib/pact_broker/client/environments/update_environment_spec.rb
445
- - spec/lib/pact_broker/client/generate_display_name_spec.rb
446
- - spec/lib/pact_broker/client/git_spec.rb
447
- - spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
448
- - spec/lib/pact_broker/client/hal/entity_spec.rb
449
- - spec/lib/pact_broker/client/hal/http_client_spec.rb
450
- - spec/lib/pact_broker/client/hal/link_spec.rb
451
- - spec/lib/pact_broker/client/matrix/abbreviate_version_number_spec.rb
452
- - spec/lib/pact_broker/client/matrix/resource_spec.rb
453
- - spec/lib/pact_broker/client/matrix/text_formatter_spec.rb
454
- - spec/lib/pact_broker/client/matrix_spec.rb
455
- - spec/lib/pact_broker/client/merge_pacts_spec.rb
456
- - spec/lib/pact_broker/client/pact_broker_client_spec.rb
457
- - spec/lib/pact_broker/client/pacticipants/create_spec.rb
458
- - spec/lib/pact_broker/client/pacticipants_spec.rb
459
- - spec/lib/pact_broker/client/publish_pacts_the_old_way_spec.rb
460
- - spec/lib/pact_broker/client/retry_spec.rb
461
- - spec/lib/pact_broker/client/tasks/publication_task_spec.rb
462
- - spec/lib/pact_broker/client/versions/create_spec.rb
463
- - spec/lib/pact_broker/client/versions/describe_spec.rb
464
- - spec/lib/pact_broker/client/versions_spec.rb
465
- - spec/lib/pact_broker/client/webhooks/create_spec.rb
466
- - spec/lib/pactflow/client/provider_contracts/publish_spec.rb
467
- - spec/pacts/pact_broker_client-pact_broker.json
468
- - spec/pacts/pact_broker_client-pactflow.json
469
- - spec/readme_spec.rb
470
- - spec/service_providers/create_environment_spec.rb
471
- - spec/service_providers/delete_branch_spec.rb
472
- - spec/service_providers/extra_goodies_spec.rb
473
- - spec/service_providers/list_environments_spec.rb
474
- - spec/service_providers/list_latest_pact_versions_spec.rb.bak
475
- - spec/service_providers/pact_broker_client_matrix_ignore_spec.rb
476
- - spec/service_providers/pact_broker_client_matrix_spec.rb
477
- - spec/service_providers/pact_broker_client_pacticipant_version_spec.rb
478
- - spec/service_providers/pact_broker_client_publish_spec.rb
479
- - spec/service_providers/pact_broker_client_register_repository_spec.rb
480
- - spec/service_providers/pact_broker_client_retrieve_all_pacts_for_provider_spec.rb
481
- - spec/service_providers/pact_broker_client_retrieve_pact_spec.rb
482
- - spec/service_providers/pact_broker_client_tags_spec.rb
483
- - spec/service_providers/pact_broker_client_versions_spec.rb
484
- - spec/service_providers/pact_helper.rb
485
- - spec/service_providers/pactflow_publish_provider_contract_spec.rb
486
- - spec/service_providers/pactflow_publish_provider_contract_the_old_way_spec.rb
487
- - spec/service_providers/pactflow_webhooks_create_spec.rb
488
- - spec/service_providers/pacticipants_create_spec.rb
489
- - spec/service_providers/publish_pacts_spec.rb
490
- - spec/service_providers/record_deployment_spec.rb
491
- - spec/service_providers/record_release_spec.rb
492
- - spec/service_providers/record_undeployment_spec.rb
493
- - spec/service_providers/webhooks_create_spec.rb
494
- - spec/spec_helper.rb
495
- - spec/support/approvals.rb
496
- - spec/support/cli_test_pacts/bar.json
497
- - spec/support/cli_test_pacts/foo.json
498
- - spec/support/latest_pacts_for_provider.json
499
- - spec/support/matrix.json
500
- - spec/support/matrix.txt
501
- - spec/support/matrix_error.txt
502
- - spec/support/matrix_with_results.txt
503
- - spec/support/pacticipant_get.json
504
- - spec/support/pacticipants_list.json
505
- - spec/support/pacts_latest_list.json
506
- - spec/support/shared_context.rb
507
- - 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,31 +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
- gem.add_runtime_dependency 'base64', '~> 0.2'
31
- 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-----
@@ -1 +0,0 @@
1
- 494F82D5FE5055D2C9C64941C421085B59521071