pact_broker 2.77.0 → 2.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release_gem.yml +1 -0
- data/.github/workflows/test.yml +37 -11
- data/.rubocop.yml +37 -879
- data/.ruby-version +1 -1
- data/CHANGELOG.md +102 -0
- data/DEVELOPER_DOCUMENTATION.md +13 -0
- data/DEVELOPER_SETUP.md +6 -0
- data/Dockerfile +1 -1
- data/Gemfile +30 -28
- data/Rakefile +8 -6
- data/config.ru +11 -11
- data/config/boot.rb +6 -6
- data/db/ddl_statements/latest_pact_consumer_version_orders.rb +1 -1
- data/db/ddl_statements/latest_pact_publications_by_consumer_versions.rb +2 -2
- data/db/migrations/000001_create_pacticipant_table.rb +1 -1
- data/db/migrations/000002_create_versions_table.rb +1 -1
- data/db/migrations/000003_create_pacts_table.rb +1 -1
- data/db/migrations/000004_create_tags_table.rb +1 -1
- data/db/migrations/000007_increase_json_content_length.rb +1 -1
- data/db/migrations/000012_create_webhooks_table.rb +6 -6
- data/db/migrations/000015_create_pact_version_content.rb +4 -4
- data/db/migrations/000016_add_pact_content_foreign_key_to_pacts.rb +3 -3
- data/db/migrations/000017_migrate_json_content_to_pact_version_content_table.rb +2 -2
- data/db/migrations/000018_drop_json_content_column_from_pacts.rb +2 -2
- data/db/migrations/000019_make_pact_version_content_sha_not_nullable.rb +2 -2
- data/db/migrations/000020_add_pact_version_content_sha_to_all_pacts_view.rb +2 -2
- data/db/migrations/000021_recreate_latest_pacts_view.rb +2 -2
- data/db/migrations/000023_create_pact_versions_table.rb +3 -3
- data/db/migrations/000026_create_pact_publications.rb +3 -3
- data/db/migrations/000031_create_verifications.rb +1 -1
- data/db/migrations/000033_create_config_table.rb +3 -3
- data/db/migrations/000034_create_index_on_consumer_version_order.rb +3 -3
- data/db/migrations/000035_create_index_on_names.rb +2 -2
- data/db/migrations/000036_create_webhook_execution.rb +2 -2
- data/db/migrations/000037_create_labels_table.rb +1 -1
- data/db/migrations/000038_create_triggered_webhooks_table.rb +3 -3
- data/db/migrations/000041_migrate_execution_data.rb +3 -3
- data/db/migrations/000043_add_provider_version_to_verification.rb +1 -1
- data/db/migrations/000044_populate_verifications_provider_version_id.rb +9 -9
- data/db/migrations/20171112_add_test_results.rb +1 -1
- data/db/migrations/20171117_create_webhook_events.rb +3 -3
- data/db/migrations/20171118_create_webhook_events.rb +2 -2
- data/db/migrations/20180108_create_certificates_table.rb +3 -3
- data/db/migrations/20180109_migrate_trigger_type.rb +2 -2
- data/db/migrations/20180119_update_latest_triggered_webhooks.rb +1 -1
- data/db/migrations/20180123_create_tags_with_latest_flag.rb +1 -1
- data/db/migrations/20180130_create_materialized_matrix.rb +4 -4
- data/db/migrations/20180131_create_materialized_latest_matrix.rb +4 -4
- data/db/migrations/20180202_create_materialized_head_matrix.rb +4 -4
- data/db/migrations/20180205_drop_materialized_latest_matrix.rb +4 -4
- data/db/migrations/20180210_fix_latest_matrix_for_cv_and_pv_again.rb +2 -2
- data/db/migrations/20180311_optimise_head_matrix.rb +2 -3
- data/db/migrations/20180523_create_latest_verifications_for_consumer_version_tags.rb +1 -1
- data/db/migrations/20180524_create_latest_verifications_for_consumer_and_provider.rb +1 -1
- data/db/migrations/20180613_migrate_pacticipant_ids_for_verifications.rb +1 -1
- data/db/migrations/20180614_update_latest_verification_ids_for_consumer_and_provider.rb +1 -1
- data/db/migrations/20180616_migrate_consumer_ids_for_pact_publications.rb +1 -1
- data/db/migrations/20180720_create_latest_pact_publication_ids.rb +1 -1
- data/db/migrations/20180722_recreate_views.rb +1 -1
- data/db/migrations/20180723_create_latest_verification_ids.rb +6 -6
- data/db/migrations/20180729_create_latest_verification_ids_for_provider_versions.rb +1 -1
- data/db/migrations/20190509_create_version_sequence.rb +1 -1
- data/db/migrations/20190510_set_version_sequence.rb +1 -1
- data/db/migrations/20190524_set_webhooks_enabled.rb +1 -1
- data/db/migrations/20190603_migrate_webhook_headers.rb +1 -1
- data/db/migrations/20191025_optimise_latest_verification_ids_for_cv_tags.rb +1 -1
- data/db/migrations/20191028_optimise_latest_tagged_pact_cv_orders.rb +1 -1
- data/db/migrations/20191030_optimise_latest_pact_publications_by_consumer_versions_.rb +1 -1
- data/db/migrations/20191031_optimise_latest_verification_ids_for_consumer_version_tags.rb +1 -1
- data/db/migrations/20191101_create_head_pact_tags.rb +1 -1
- data/db/migrations/20200930_update_latest_triggered_webhooks.rb +2 -2
- data/db/migrations/20201023_create_verification_number_sequence.rb +1 -1
- data/db/migrations/20201024_create_version_order_sequence.rb +1 -1
- data/db/migrations/20201026_update_latest_verification_ids_for_consumer_and_provider.rb +2 -2
- data/db/migrations/20210115_add_webhook_foreign_key_indexes.rb +1 -1
- data/db/migrations/20210116_add_context_to_triggered_webhook.rb +1 -1
- data/db/migrations/20210202_add_created_at_to_head_pact_tags.rb +2 -2
- data/db/migrations/20210205_add_pacticipant_id_to_tag.rb +1 -1
- data/db/migrations/20210206_add_index_to_tags_and_versions.rb +1 -1
- data/db/migrations/20210207_optimise_latest_verification_ids_for_consumer_version_tags.rb +1 -1
- data/db/migrations/20210208_optimise_latest_tagged_pact_cv_orders.rb +1 -1
- data/db/migrations/20210210_create_environments_table.rb +16 -0
- data/db/migrations/20210216_create_deployed_versions_table.rb +18 -0
- data/db/migrations/20210226_set_deployment_columns_not_null.rb +31 -0
- data/db/migrations/20210301_add_pacticipant_columns.rb +10 -0
- data/db/migrations/20210413_create_currently_deployed_version_ids_table.rb +13 -0
- data/db/migrations/20210415_add_target_column_to_deployed_version.rb +21 -0
- data/db/migrations/20210419_create_released_versions_table.rb +17 -0
- data/db/migrations/20210529_add_main_branch_to_pacticipant.rb +18 -0
- data/db/migrations/20210608_add_uuid_to_webhook.rb +14 -0
- data/db/migrations/20210609_set_webhook_uuid.rb +11 -0
- data/db/migrations/20210702_drop_unused_columns_from_deployed_versions.rb +15 -0
- data/db/migrations/migration_helper.rb +3 -3
- data/db/test/backwards_compatibility/Gemfile +11 -11
- data/db/test/backwards_compatibility/Rakefile +17 -17
- data/db/test/backwards_compatibility/config.ru +6 -6
- data/db/test/backwards_compatibility/spec/publish_pact_spec.rb +13 -13
- data/db/test/backwards_compatibility/spec/spec_helper.rb +3 -3
- data/db/test/backwards_compatibility/spec/support/fixture_helpers.rb +2 -2
- data/db/test/backwards_compatibility/spec/support/request_helpers.rb +3 -4
- data/db/test/change_migration_strategy/Rakefile +6 -6
- data/db/test/change_migration_strategy/before/Gemfile +1 -1
- data/docker-compose-dev-postgres.yml +9 -1
- data/example/Gemfile +4 -4
- data/example/basic_auth/Gemfile +1 -1
- data/example/basic_auth/config.ru +7 -7
- data/example/config.ru +7 -7
- data/issue-reproduction/Dockerfile-pact-broker +1 -1
- data/lib/db.rb +18 -12
- data/lib/pact/doc/generator.rb +3 -3
- data/lib/pact/doc/interaction_view_model.rb +13 -13
- data/lib/pact/doc/markdown/consumer_contract_renderer.rb +4 -4
- data/lib/pact/doc/markdown/generator.rb +6 -6
- data/lib/pact/doc/markdown/interaction_renderer.rb +4 -4
- data/lib/pact/doc/sort_interactions.rb +0 -1
- data/lib/pact_broker.rb +4 -4
- data/lib/pact_broker/api.rb +102 -78
- data/lib/pact_broker/api/contracts/base_contract.rb +2 -2
- data/lib/pact_broker/api/contracts/dry_validation_predicates.rb +18 -1
- data/lib/pact_broker/api/contracts/dry_validation_workarounds.rb +3 -2
- data/lib/pact_broker/api/contracts/environment_schema.rb +49 -0
- data/lib/pact_broker/api/contracts/pacticipant_name_contract.rb +1 -1
- data/lib/pact_broker/api/contracts/pacticipant_name_validation.rb +2 -2
- data/lib/pact_broker/api/contracts/pacticipant_schema.rb +34 -0
- data/lib/pact_broker/api/contracts/publish_contracts_schema.rb +104 -0
- data/lib/pact_broker/api/contracts/put_pact_params_contract.rb +1 -1
- data/lib/pact_broker/api/contracts/request_validations.rb +2 -2
- data/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema.rb +70 -15
- data/lib/pact_broker/api/contracts/verifiable_pacts_query_schema.rb +3 -3
- data/lib/pact_broker/api/contracts/verification_contract.rb +2 -2
- data/lib/pact_broker/api/contracts/webhook_contract.rb +10 -7
- data/lib/pact_broker/api/decorators/base_decorator.rb +20 -5
- data/lib/pact_broker/api/decorators/basic_pacticipant_decorator.rb +1 -1
- data/lib/pact_broker/api/decorators/configuration.rb +2 -2
- data/lib/pact_broker/api/decorators/dashboard_decorator.rb +8 -8
- data/lib/pact_broker/api/decorators/dashboard_text_decorator.rb +3 -3
- data/lib/pact_broker/api/decorators/decorator_context.rb +1 -1
- data/lib/pact_broker/api/decorators/decorator_context_creator.rb +1 -1
- data/lib/pact_broker/api/decorators/deployed_version_decorator.rb +26 -0
- data/lib/pact_broker/api/decorators/deployed_versions_decorator.rb +20 -0
- data/lib/pact_broker/api/decorators/embedded_label_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/embedded_pacticipant_decorator.rb +17 -0
- data/lib/pact_broker/api/decorators/embedded_tag_decorator.rb +4 -4
- data/lib/pact_broker/api/decorators/embedded_version_decorator.rb +7 -2
- data/lib/pact_broker/api/decorators/environment_decorator.rb +51 -0
- data/lib/pact_broker/api/decorators/environments_decorator.rb +31 -0
- data/lib/pact_broker/api/decorators/extended_pact_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/extended_verification_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/integration_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/integrations_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/label_decorator.rb +5 -5
- data/lib/pact_broker/api/decorators/latest_pact_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/matrix_decorator.rb +26 -11
- data/lib/pact_broker/api/decorators/matrix_text_decorator.rb +5 -5
- data/lib/pact_broker/api/decorators/pact_collection_decorator.rb +6 -6
- data/lib/pact_broker/api/decorators/pact_decorator.rb +5 -5
- data/lib/pact_broker/api/decorators/pact_details_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/pact_pacticipant_decorator.rb +3 -3
- data/lib/pact_broker/api/decorators/pact_version_decorator.rb +3 -3
- data/lib/pact_broker/api/decorators/pact_versions_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/pact_webhooks_status_decorator.rb +6 -6
- data/lib/pact_broker/api/decorators/pacticipant_collection_decorator.rb +8 -8
- data/lib/pact_broker/api/decorators/pacticipant_decorator.rb +29 -13
- data/lib/pact_broker/api/decorators/pagination_links.rb +2 -2
- data/lib/pact_broker/api/decorators/provider_pacts_decorator.rb +2 -3
- data/lib/pact_broker/api/decorators/publish_contract_decorator.rb +19 -0
- data/lib/pact_broker/api/decorators/publish_contracts_decorator.rb +21 -0
- data/lib/pact_broker/api/decorators/publish_contracts_results_decorator.rb +55 -0
- data/lib/pact_broker/api/decorators/reason_decorator.rb +30 -14
- data/lib/pact_broker/api/decorators/relationships_csv_decorator.rb +3 -1
- data/lib/pact_broker/api/decorators/released_version_decorator.rb +25 -0
- data/lib/pact_broker/api/decorators/released_versions_decorator.rb +20 -0
- data/lib/pact_broker/api/decorators/representable_pact.rb +1 -1
- data/lib/pact_broker/api/decorators/tag_decorator.rb +6 -6
- data/lib/pact_broker/api/decorators/tagged_pact_versions_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/timestamps.rb +2 -2
- data/lib/pact_broker/api/decorators/triggered_webhook_decorator.rb +8 -6
- data/lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb +2 -2
- data/lib/pact_broker/api/decorators/verifiable_pact_decorator.rb +4 -4
- data/lib/pact_broker/api/decorators/verifiable_pacts_decorator.rb +3 -3
- data/lib/pact_broker/api/decorators/verifiable_pacts_query_decorator.rb +16 -9
- data/lib/pact_broker/api/decorators/verification_decorator.rb +6 -6
- data/lib/pact_broker/api/decorators/verification_summary_decorator.rb +4 -4
- data/lib/pact_broker/api/decorators/version_decorator.rb +38 -7
- data/lib/pact_broker/api/decorators/versions_decorator.rb +5 -5
- data/lib/pact_broker/api/decorators/webhook_decorator.rb +10 -8
- data/lib/pact_broker/api/decorators/webhook_execution_result_decorator.rb +7 -7
- data/lib/pact_broker/api/decorators/webhook_request_template_decorator.rb +1 -1
- data/lib/pact_broker/api/decorators/webhooks_decorator.rb +3 -3
- data/lib/pact_broker/api/pact_broker_urls.rb +125 -69
- data/lib/pact_broker/api/paths.rb +2 -2
- data/lib/pact_broker/api/renderers/html_pact_renderer.rb +16 -17
- data/lib/pact_broker/api/resources.rb +1 -1
- data/lib/pact_broker/api/resources/all_webhooks.rb +14 -6
- data/lib/pact_broker/api/resources/authentication.rb +1 -1
- data/lib/pact_broker/api/resources/authorization.rb +37 -0
- data/lib/pact_broker/api/resources/badge.rb +8 -8
- data/lib/pact_broker/api/resources/base_resource.rb +1 -1
- data/lib/pact_broker/api/resources/can_i_deploy.rb +13 -13
- data/lib/pact_broker/api/resources/can_i_deploy_badge.rb +7 -7
- data/lib/pact_broker/api/resources/can_i_deploy_pacticipant_version.rb +23 -18
- data/lib/pact_broker/api/resources/clean.rb +3 -3
- data/lib/pact_broker/api/resources/currently_deployed_versions_for_environment.rb +75 -0
- data/lib/pact_broker/api/resources/currently_supported_versions_for_environment.rb +70 -0
- data/lib/pact_broker/api/resources/dashboard.rb +3 -3
- data/lib/pact_broker/api/resources/default_base_resource.rb +47 -20
- data/lib/pact_broker/api/resources/deployed_version.rb +94 -0
- data/lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb +89 -0
- data/lib/pact_broker/api/resources/environment.rb +76 -0
- data/lib/pact_broker/api/resources/environments.rb +79 -0
- data/lib/pact_broker/api/resources/error_handler.rb +4 -4
- data/lib/pact_broker/api/resources/error_response_body_generator.rb +3 -3
- data/lib/pact_broker/api/resources/error_test.rb +2 -2
- data/lib/pact_broker/api/resources/group.rb +2 -2
- data/lib/pact_broker/api/resources/index.rb +91 -70
- data/lib/pact_broker/api/resources/integration.rb +1 -1
- data/lib/pact_broker/api/resources/integrations.rb +3 -3
- data/lib/pact_broker/api/resources/label.rb +2 -2
- data/lib/pact_broker/api/resources/latest_pact.rb +5 -5
- data/lib/pact_broker/api/resources/latest_pacts.rb +1 -1
- data/lib/pact_broker/api/resources/latest_provider_pacts.rb +3 -3
- data/lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb +5 -1
- data/lib/pact_broker/api/resources/latest_verification_for_pact.rb +5 -1
- data/lib/pact_broker/api/resources/latest_verifications_for_consumer_version.rb +5 -5
- data/lib/pact_broker/api/resources/latest_version.rb +1 -1
- data/lib/pact_broker/api/resources/matrix.rb +18 -13
- data/lib/pact_broker/api/resources/matrix_badge.rb +1 -1
- data/lib/pact_broker/api/resources/matrix_for_consumer_and_provider.rb +2 -2
- data/lib/pact_broker/api/resources/metadata_resource_methods.rb +2 -2
- data/lib/pact_broker/api/resources/metrics.rb +1 -1
- data/lib/pact_broker/api/resources/pact.rb +17 -27
- data/lib/pact_broker/api/resources/pact_content_diff.rb +3 -3
- data/lib/pact_broker/api/resources/pact_triggered_webhooks.rb +7 -3
- data/lib/pact_broker/api/resources/pact_version.rb +2 -2
- data/lib/pact_broker/api/resources/pact_versions.rb +3 -3
- data/lib/pact_broker/api/resources/pact_webhooks.rb +7 -8
- data/lib/pact_broker/api/resources/pact_webhooks_status.rb +2 -2
- data/lib/pact_broker/api/resources/pacticipant.rb +51 -15
- data/lib/pact_broker/api/resources/pacticipant_resource_methods.rb +1 -1
- data/lib/pact_broker/api/resources/{webhooks.rb → pacticipant_webhooks.rb} +12 -8
- data/lib/pact_broker/api/resources/pacticipants.rb +13 -8
- data/lib/pact_broker/api/resources/pacticipants_for_label.rb +2 -2
- data/lib/pact_broker/api/resources/previous_distinct_pact_version.rb +4 -4
- data/lib/pact_broker/api/resources/provider_pacts.rb +3 -3
- data/lib/pact_broker/api/resources/provider_pacts_for_verification.rb +10 -6
- data/lib/pact_broker/api/resources/publish_contracts.rb +81 -0
- data/lib/pact_broker/api/resources/relationships.rb +2 -2
- data/lib/pact_broker/api/resources/released_version.rb +84 -0
- data/lib/pact_broker/api/resources/released_versions_for_version_and_environment.rb +94 -0
- data/lib/pact_broker/api/resources/tag.rb +1 -1
- data/lib/pact_broker/api/resources/tagged_pact_versions.rb +4 -4
- data/lib/pact_broker/api/resources/triggered_webhook_logs.rb +16 -8
- data/lib/pact_broker/api/resources/verification.rb +17 -7
- data/lib/pact_broker/api/resources/verification_triggered_webhooks.rb +7 -3
- data/lib/pact_broker/api/resources/verifications.rb +13 -18
- data/lib/pact_broker/api/resources/version.rb +49 -11
- data/lib/pact_broker/api/resources/versions.rb +6 -6
- data/lib/pact_broker/api/resources/webhook.rb +17 -9
- data/lib/pact_broker/api/resources/webhook_execution.rb +18 -14
- data/lib/pact_broker/api/resources/webhook_execution_methods.rb +31 -0
- data/lib/pact_broker/app.rb +37 -35
- data/lib/pact_broker/application_context.rb +5 -5
- data/lib/pact_broker/badges/service.rb +22 -22
- data/lib/pact_broker/build_http_options.rb +2 -2
- data/lib/pact_broker/certificates/service.rb +4 -4
- data/lib/pact_broker/config/load.rb +4 -4
- data/lib/pact_broker/config/repository.rb +1 -1
- data/lib/pact_broker/config/save.rb +4 -4
- data/lib/pact_broker/config/setting.rb +28 -24
- data/lib/pact_broker/config/space_delimited_integer_list.rb +3 -3
- data/lib/pact_broker/config/space_delimited_string_list.rb +3 -3
- data/lib/pact_broker/configuration.rb +27 -20
- data/lib/pact_broker/constants.rb +2 -2
- data/lib/pact_broker/contracts/contract_to_publish.rb +19 -0
- data/lib/pact_broker/contracts/contracts_publication_results.rb +14 -0
- data/lib/pact_broker/contracts/contracts_to_publish.rb +11 -0
- data/lib/pact_broker/contracts/notice.rb +21 -0
- data/lib/pact_broker/contracts/service.rb +264 -0
- data/lib/pact_broker/date_helper.rb +48 -46
- data/lib/pact_broker/db.rb +11 -7
- data/lib/pact_broker/db/clean.rb +4 -8
- data/lib/pact_broker/db/clean_incremental.rb +8 -6
- data/lib/pact_broker/db/data_migrations/delete_deprecated_webhook_executions.rb +1 -1
- data/lib/pact_broker/db/data_migrations/migrate_webhook_headers.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_consumer_ids_for_pact_publications.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_created_at_for_latest_pact_publications.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_created_at_for_latest_verifications.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_extra_columns_for_tags.rb +3 -3
- data/lib/pact_broker/db/data_migrations/set_latest_version_sequence_value.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_pacticipant_display_name.rb +23 -0
- data/lib/pact_broker/db/data_migrations/set_pacticipant_ids_for_verifications.rb +1 -1
- data/lib/pact_broker/db/data_migrations/set_pacticipant_main_branch.rb +53 -0
- data/lib/pact_broker/db/data_migrations/set_webhook_uuid.rb +24 -0
- data/lib/pact_broker/db/data_migrations/set_webhooks_enabled.rb +1 -1
- data/lib/pact_broker/db/delete_overwritten_data.rb +7 -7
- data/lib/pact_broker/db/log_quietener.rb +1 -1
- data/lib/pact_broker/db/migrate.rb +4 -4
- data/lib/pact_broker/db/migrate_data.rb +4 -1
- data/lib/pact_broker/db/models.rb +17 -12
- data/lib/pact_broker/db/seed_example_data.rb +9 -4
- data/lib/pact_broker/db/validate_encoding.rb +4 -4
- data/lib/pact_broker/db/version.rb +1 -1
- data/lib/pact_broker/deployments/currently_deployed_version_id.rb +30 -0
- data/lib/pact_broker/deployments/deployed_version.rb +115 -0
- data/lib/pact_broker/deployments/deployed_version_service.rb +85 -0
- data/lib/pact_broker/deployments/environment.rb +49 -0
- data/lib/pact_broker/deployments/environment_service.rb +52 -0
- data/lib/pact_broker/deployments/released_version.rb +83 -0
- data/lib/pact_broker/deployments/released_version_service.rb +47 -0
- data/lib/pact_broker/diagnostic/app.rb +8 -8
- data/lib/pact_broker/diagnostic/resources/base_resource.rb +2 -2
- data/lib/pact_broker/diagnostic/resources/dependencies.rb +3 -3
- data/lib/pact_broker/diagnostic/resources/heartbeat.rb +1 -1
- data/lib/pact_broker/doc/controllers/app.rb +10 -10
- data/lib/pact_broker/doc/views/can-i-deploy.markdown +4 -2
- data/lib/pact_broker/doc/views/index/environment.markdown +37 -0
- data/lib/pact_broker/doc/views/index/environments.markdown +53 -0
- data/lib/pact_broker/doc/views/index/latest-pact-versions.markdown +1 -1
- data/lib/pact_broker/doc/views/index/pacticipant-version-tag.markdown +1 -0
- data/lib/pact_broker/doc/views/index/pacticipants.markdown +25 -3
- data/lib/pact_broker/doc/views/index/publish-contracts.markdown +120 -0
- data/lib/pact_broker/doc/views/provider-pacts-for-verification.markdown +22 -11
- data/lib/pact_broker/doc/views/webhooks.markdown +5 -3
- data/lib/pact_broker/domain.rb +6 -6
- data/lib/pact_broker/domain/index_item.rb +27 -8
- data/lib/pact_broker/domain/label.rb +1 -2
- data/lib/pact_broker/domain/order_versions.rb +2 -2
- data/lib/pact_broker/domain/pact.rb +14 -7
- data/lib/pact_broker/domain/pacticipant.rb +27 -18
- data/lib/pact_broker/domain/tag.rb +5 -3
- data/lib/pact_broker/domain/verification.rb +8 -8
- data/lib/pact_broker/domain/version.rb +55 -10
- data/lib/pact_broker/domain/webhook.rb +14 -15
- data/lib/pact_broker/domain/webhook_request.rb +14 -18
- data/lib/pact_broker/errors.rb +7 -7
- data/lib/pact_broker/errors/error_logger.rb +3 -3
- data/lib/pact_broker/events/event.rb +5 -0
- data/lib/pact_broker/events/publisher.rb +9 -0
- data/lib/pact_broker/events/subscriber.rb +42 -0
- data/lib/pact_broker/feature_toggle.rb +2 -2
- data/lib/pact_broker/groups/service.rb +2 -2
- data/lib/pact_broker/hash_refinements.rb +12 -12
- data/lib/pact_broker/index/service.rb +69 -36
- data/lib/pact_broker/integrations/integration.rb +5 -5
- data/lib/pact_broker/integrations/service.rb +11 -7
- data/lib/pact_broker/labels/repository.rb +2 -2
- data/lib/pact_broker/labels/service.rb +1 -1
- data/lib/pact_broker/locale/en.yml +54 -14
- data/lib/pact_broker/logging.rb +3 -3
- data/lib/pact_broker/logging/default_formatter.rb +3 -3
- data/lib/pact_broker/matrix/aggregated_row.rb +4 -4
- data/lib/pact_broker/matrix/can_i_deploy_query_schema.rb +17 -2
- data/lib/pact_broker/matrix/deployment_status_summary.rb +78 -38
- data/lib/pact_broker/matrix/every_row.rb +2 -2
- data/lib/pact_broker/matrix/head_row.rb +2 -2
- data/lib/pact_broker/matrix/integration.rb +6 -6
- data/lib/pact_broker/matrix/parse_can_i_deploy_query.rb +19 -3
- data/lib/pact_broker/matrix/parse_query.rb +47 -24
- data/lib/pact_broker/matrix/query_builder.rb +10 -10
- data/lib/pact_broker/matrix/query_results.rb +9 -4
- data/lib/pact_broker/matrix/query_results_with_deployment_status_summary.rb +3 -3
- data/lib/pact_broker/matrix/quick_row.rb +32 -34
- data/lib/pact_broker/matrix/reason.rb +88 -1
- data/lib/pact_broker/matrix/repository.rb +137 -66
- data/lib/pact_broker/matrix/resolved_selector.rb +82 -7
- data/lib/pact_broker/matrix/row.rb +6 -6
- data/lib/pact_broker/matrix/service.rb +44 -14
- data/lib/pact_broker/matrix/unresolved_selector.rb +22 -2
- data/lib/pact_broker/messages.rb +17 -5
- data/lib/pact_broker/metrics/service.rb +16 -15
- data/lib/pact_broker/pacticipants/find_potential_duplicate_pacticipant_names.rb +5 -5
- data/lib/pact_broker/pacticipants/generate_display_name.rb +27 -0
- data/lib/pact_broker/pacticipants/repository.rb +34 -16
- data/lib/pact_broker/pacticipants/service.rb +19 -19
- data/lib/pact_broker/pacts/all_pact_publications.rb +6 -6
- data/lib/pact_broker/pacts/build_verifiable_pact_notices.rb +8 -8
- data/lib/pact_broker/pacts/content.rb +23 -21
- data/lib/pact_broker/pacts/create_formatted_diff.rb +3 -3
- data/lib/pact_broker/pacts/diff.rb +8 -8
- data/lib/pact_broker/pacts/eager_loaders.rb +1 -1
- data/lib/pact_broker/pacts/generate_interaction_sha.rb +2 -2
- data/lib/pact_broker/pacts/generate_sha.rb +10 -10
- data/lib/pact_broker/pacts/head_pact.rb +1 -1
- data/lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb +2 -2
- data/lib/pact_broker/pacts/latest_pact_publications.rb +2 -2
- data/lib/pact_broker/pacts/latest_pact_publications_by_consumer_version.rb +1 -1
- data/lib/pact_broker/pacts/latest_tagged_pact_publications.rb +2 -2
- data/lib/pact_broker/pacts/lazy_loaders.rb +2 -2
- data/lib/pact_broker/pacts/merger.rb +2 -2
- data/lib/pact_broker/pacts/order_hash_keys.rb +1 -1
- data/lib/pact_broker/pacts/pact_params.rb +7 -7
- data/lib/pact_broker/pacts/pact_publication.rb +19 -13
- data/lib/pact_broker/pacts/pact_publication_dataset_module.rb +7 -49
- data/lib/pact_broker/pacts/pact_publication_selector_dataset_module.rb +70 -0
- data/lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb +106 -0
- data/lib/pact_broker/pacts/pact_version.rb +46 -14
- data/lib/pact_broker/pacts/pacts_for_verification_repository.rb +51 -47
- data/lib/pact_broker/pacts/parse.rb +1 -1
- data/lib/pact_broker/pacts/placeholder_pact.rb +1 -1
- data/lib/pact_broker/pacts/repository.rb +27 -23
- data/lib/pact_broker/pacts/selected_pact.rb +5 -1
- data/lib/pact_broker/pacts/selector.rb +124 -6
- data/lib/pact_broker/pacts/selectors.rb +5 -1
- data/lib/pact_broker/pacts/service.rb +102 -32
- data/lib/pact_broker/pacts/sort_content.rb +14 -9
- data/lib/pact_broker/pacts/squash_pacts_for_verification.rb +0 -1
- data/lib/pact_broker/pacts/verifiable_pact.rb +5 -3
- data/lib/pact_broker/pacts/verifiable_pact_messages.rb +82 -37
- data/lib/pact_broker/policies.rb +1 -1
- data/lib/pact_broker/project_root.rb +2 -2
- data/lib/pact_broker/relationships/groupify.rb +1 -1
- data/lib/pact_broker/repositories.rb +9 -9
- data/lib/pact_broker/services.rb +53 -15
- data/lib/pact_broker/string_refinements.rb +10 -4
- data/lib/pact_broker/tags/eager_loaders.rb +2 -2
- data/lib/pact_broker/tags/head_pact_tags.rb +2 -2
- data/lib/pact_broker/tags/repository.rb +2 -2
- data/lib/pact_broker/tags/service.rb +1 -1
- data/lib/pact_broker/tags/tag_with_latest_flag.rb +2 -2
- data/lib/pact_broker/tasks.rb +5 -5
- data/lib/pact_broker/tasks/clean_task.rb +12 -12
- data/lib/pact_broker/tasks/data_migration_task.rb +4 -4
- data/lib/pact_broker/tasks/delete_overwritten_data_task.rb +8 -8
- data/lib/pact_broker/tasks/migration_task.rb +5 -5
- data/lib/pact_broker/tasks/version_task.rb +3 -3
- data/lib/pact_broker/test/http_test_data_builder.rb +72 -31
- data/lib/pact_broker/test/test_data_builder.rb +119 -52
- data/lib/pact_broker/ui.rb +3 -3
- data/lib/pact_broker/ui/app.rb +9 -9
- data/lib/pact_broker/ui/controllers/base_controller.rb +6 -6
- data/lib/pact_broker/ui/controllers/can_i_deploy.rb +9 -9
- data/lib/pact_broker/ui/controllers/clusters.rb +5 -5
- data/lib/pact_broker/ui/controllers/error_test.rb +3 -3
- data/lib/pact_broker/ui/controllers/groups.rb +4 -4
- data/lib/pact_broker/ui/controllers/index.rb +28 -15
- data/lib/pact_broker/ui/controllers/matrix.rb +11 -11
- data/lib/pact_broker/ui/controllers/pacts.rb +1 -1
- data/lib/pact_broker/ui/helpers/matrix_helper.rb +12 -8
- data/lib/pact_broker/ui/helpers/url_helper.rb +3 -3
- data/lib/pact_broker/ui/view_models/index_item.rb +29 -15
- data/lib/pact_broker/ui/view_models/index_items.rb +2 -2
- data/lib/pact_broker/ui/view_models/matrix_deployed_version.rb +37 -0
- data/lib/pact_broker/ui/view_models/matrix_line.rb +45 -11
- data/lib/pact_broker/ui/view_models/matrix_lines.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_released_version.rb +37 -0
- data/lib/pact_broker/ui/view_models/matrix_tag.rb +3 -3
- data/lib/pact_broker/ui/views/index/show-with-tags.haml +60 -14
- data/lib/pact_broker/ui/views/index/show.haml +23 -2
- data/lib/pact_broker/ui/views/matrix/show.haml +33 -9
- data/lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb +1 -1
- data/lib/pact_broker/verifications/latest_verification_for_consumer_version_tag.rb +1 -1
- data/lib/pact_broker/verifications/latest_verification_for_pact_version.rb +1 -1
- data/lib/pact_broker/verifications/latest_verification_id_for_pact_version_and_provider_version.rb +1 -1
- data/lib/pact_broker/verifications/repository.rb +9 -5
- data/lib/pact_broker/verifications/sequence.rb +2 -2
- data/lib/pact_broker/verifications/service.rb +33 -17
- data/lib/pact_broker/version.rb +1 -1
- data/lib/pact_broker/versions/eager_loaders.rb +6 -6
- data/lib/pact_broker/versions/latest_version.rb +1 -1
- data/lib/pact_broker/versions/parse_semantic_version.rb +2 -2
- data/lib/pact_broker/versions/repository.rb +47 -15
- data/lib/pact_broker/versions/sequence.rb +1 -1
- data/lib/pact_broker/versions/service.rb +25 -2
- data/lib/pact_broker/webhooks/check_host_whitelist.rb +1 -1
- data/lib/pact_broker/webhooks/event_listener.rb +86 -0
- data/lib/pact_broker/webhooks/execution.rb +3 -3
- data/lib/pact_broker/webhooks/execution_configuration.rb +1 -1
- data/lib/pact_broker/webhooks/execution_configuration_creator.rb +2 -2
- data/lib/pact_broker/webhooks/http_request_with_redacted_headers.rb +1 -1
- data/lib/pact_broker/webhooks/http_response_with_utf_8_safe_body.rb +1 -1
- data/lib/pact_broker/webhooks/job.rb +5 -5
- data/lib/pact_broker/webhooks/latest_triggered_webhook.rb +17 -2
- data/lib/pact_broker/webhooks/pact_and_verification_parameters.rb +57 -15
- data/lib/pact_broker/webhooks/redact_logs.rb +3 -3
- data/lib/pact_broker/webhooks/render.rb +4 -5
- data/lib/pact_broker/webhooks/repository.rb +69 -75
- data/lib/pact_broker/webhooks/service.rb +52 -134
- data/lib/pact_broker/webhooks/status.rb +3 -1
- data/lib/pact_broker/webhooks/trigger_service.rb +75 -70
- data/lib/pact_broker/webhooks/triggered_webhook.rb +15 -12
- data/lib/pact_broker/webhooks/webhook.rb +43 -6
- data/lib/pact_broker/webhooks/webhook_event.rb +7 -7
- data/lib/pact_broker/webhooks/webhook_execution_result.rb +8 -3
- data/lib/pact_broker/webhooks/webhook_request_logger.rb +9 -7
- data/lib/pact_broker/webhooks/webhook_request_template.rb +41 -6
- data/lib/rack/hal_browser.rb +1 -1
- data/lib/rack/hal_browser/redirect.rb +9 -9
- data/lib/rack/pact_broker/add_pact_broker_version_header.rb +2 -2
- data/lib/rack/pact_broker/convert_404_to_hal.rb +2 -2
- data/lib/rack/pact_broker/convert_file_extension_to_accept_header.rb +1 -1
- data/lib/rack/pact_broker/database_transaction.rb +3 -3
- data/lib/rack/pact_broker/invalid_uri_protection.rb +5 -5
- data/lib/rack/pact_broker/no_auth.rb +1 -1
- data/lib/rack/pact_broker/request_target.rb +8 -8
- data/lib/rack/pact_broker/reset_thread_data.rb +1 -1
- data/lib/rack/pact_broker/set_base_url.rb +35 -5
- data/lib/rack/pact_broker/ui_authentication.rb +3 -3
- data/lib/rack/pact_broker/ui_request_filter.rb +1 -1
- data/lib/sequel/extensions/statement_timeout.rb +9 -9
- data/pact_broker.gemspec +26 -25
- data/public/javascripts/clipboard.js +8 -2
- data/public/javascripts/matrix.js +11 -6
- data/public/stylesheets/index.css +14 -1
- data/regression/can_i_deploy_spec.rb +1 -1
- data/regression/index_spec.rb +3 -3
- data/regression/regression_helper.rb +9 -9
- data/scaffolding/README.md +23 -0
- data/scaffolding/run.rb +242 -0
- data/scaffolding/templates/decorator.rb.erb +13 -0
- data/scaffolding/templates/decorator_spec.erb.rb +0 -0
- data/scaffolding/templates/migration.erb +12 -0
- data/scaffolding/templates/model.erb +14 -0
- data/scaffolding/templates/repository.rb.erb +18 -0
- data/scaffolding/templates/repository_spec.rb.erb +9 -0
- data/scaffolding/templates/resource.erb +46 -0
- data/scaffolding/templates/resource_spec.rb.erb +78 -0
- data/scaffolding/templates/service.rb.erb +22 -0
- data/scaffolding/templates/service_spec.rb.erb +9 -0
- data/script/data/environments.rb +45 -0
- data/script/demonstrate-version-branches.rb +2 -2
- data/script/docker-container/test.sh +1 -1
- data/script/generate-certificates-for-webooks-certificate-spec.rb +1 -1
- data/script/insert-self-signed-certificate-from-url.rb +5 -5
- data/script/pry.rb +18 -12
- data/script/query.rb +5 -5
- data/script/reproduce-issue-can-i-deploy-ignore.rb +48 -0
- data/script/reproduce-issue-expand-currently-deployed.rb +47 -0
- data/script/reproduce-issue-starting-up.rb +12 -7
- data/script/reproduce-issue.rb +7 -2
- data/script/run-with-ssl.rb +8 -8
- data/script/seed-example-matrix.rb +11 -11
- data/script/seed-for-webhook-test.rb +22 -22
- data/script/seed-matrix.rb +20 -20
- data/script/seed.rb +25 -25
- data/script/test/approval-all.sh +6 -0
- data/script/webhook-server.ru +3 -3
- data/spec/features/base_equality_only_on_content_that_affects_verification_results_spec.rb +3 -3
- data/spec/features/can_i_deploy_spec.rb +1 -1
- data/spec/features/create_environment_spec.rb +47 -0
- data/spec/features/create_pacticipant_spec.rb +13 -7
- data/spec/features/create_tag_spec.rb +32 -0
- data/spec/features/create_version_spec.rb +40 -26
- data/spec/features/create_webhook_spec.rb +10 -10
- data/spec/features/delete_environment_spec.rb +16 -0
- data/spec/features/delete_label_spec.rb +1 -1
- data/spec/features/delete_pact_spec.rb +1 -1
- data/spec/features/delete_verification_spec.rb +3 -3
- data/spec/features/delete_version_spec.rb +1 -1
- data/spec/features/delete_webhook_spec.rb +5 -1
- data/spec/features/edit_webhook_spec.rb +8 -8
- data/spec/features/end_deployment_spec.rb +29 -0
- data/spec/features/end_support_spec.rb +67 -0
- data/spec/features/execute_unsaved_webhook_spec.rb +7 -10
- data/spec/features/execute_webhook_spec.rb +5 -5
- data/spec/features/get_can_i_deploy_badge_spec.rb +2 -2
- data/spec/features/get_currently_deployed_versions_for_environment_spec.rb +59 -0
- data/spec/features/get_currently_deployed_versions_for_version_spec.rb +27 -0
- data/spec/features/get_currently_supported_versions_for_environment_spec.rb +57 -0
- data/spec/features/get_dashboard_spec.rb +1 -1
- data/spec/features/get_deployed_versions_for_version_and_environment.rb +27 -0
- data/spec/features/get_diff_spec.rb +5 -5
- data/spec/features/get_environment_spec.rb +19 -0
- data/spec/features/get_environments_spec.rb +30 -0
- data/spec/features/get_integrations_dot_file_spec.rb +2 -2
- data/spec/features/get_integrations_spec.rb +1 -1
- data/spec/features/get_label_spec.rb +1 -1
- data/spec/features/get_latest_pact_badge_spec.rb +7 -7
- data/spec/features/get_latest_tagged_pact_badge_spec.rb +8 -8
- data/spec/features/get_latest_untagged_pact_badge_spec.rb +8 -8
- data/spec/features/get_latest_untagged_pact_spec.rb +1 -1
- data/spec/features/get_latest_verification_for_pact_spec.rb +2 -2
- data/spec/features/get_matrix_badge_spec.rb +10 -10
- data/spec/features/get_matrix_for_consumer_and_provider_spec.rb +3 -6
- data/spec/features/get_matrix_spec.rb +5 -5
- data/spec/features/get_pact_version.rb +2 -2
- data/spec/features/get_pact_versions_spec.rb +1 -1
- data/spec/features/get_previous_distinct_version.rb +5 -5
- data/spec/features/get_provider_pacts_for_verification_spec.rb +16 -5
- data/spec/features/get_released_versions_for_version_and_environment.rb +27 -0
- data/spec/features/get_tagged_pact_versions_spec.rb +1 -1
- data/spec/features/get_triggered_webhooks_for_pact_spec.rb +1 -1
- data/spec/features/get_triggered_webhooks_for_verification_spec.rb +1 -1
- data/spec/features/get_verifications_for_consumer_version_spec.rb +1 -1
- data/spec/features/get_version_spec.rb +2 -2
- data/spec/features/get_versions_spec.rb +2 -2
- data/spec/features/label_pacticipant_spec.rb +3 -3
- data/spec/features/merge_pact_spec.rb +8 -8
- data/spec/features/pending_pacts_with_tags_spec.rb +138 -0
- data/spec/features/publish_not_a_pact_spec.rb +5 -5
- data/spec/features/publish_pact_all_in_one_approval_spec.rb +72 -0
- data/spec/features/publish_pact_all_in_one_spec.rb +43 -0
- data/spec/features/publish_pact_spec.rb +41 -6
- data/spec/features/publish_verification_spec.rb +11 -11
- data/spec/features/record_deployment_spec.rb +93 -0
- data/spec/features/record_release_spec.rb +84 -0
- data/spec/features/record_undeployment_spec.rb +67 -0
- data/spec/features/tag_version_spec.rb +2 -2
- data/spec/features/update_environment_spec.rb +44 -0
- data/spec/features/update_matrix_spec.rb +5 -5
- data/spec/features/update_pacticipant_spec.rb +87 -12
- data/spec/features/update_version_spec.rb +155 -0
- data/spec/features/update_webhook_spec.rb +6 -6
- data/spec/features/wip_pacts_spec.rb +64 -43
- data/spec/fixtures/approvals/get_provider_pacts_for_verification.approved.json +57 -0
- data/spec/fixtures/approvals/modifiable_resources.approved.json +24 -3
- data/spec/fixtures/approvals/publish_contract_no_branch.approved.json +166 -0
- data/spec/fixtures/approvals/publish_contract_nothing_exists.approved.json +158 -0
- data/spec/fixtures/approvals/publish_contract_nothing_exists_with_webhook.approved.json +158 -0
- data/spec/fixtures/approvals/publish_contract_verification_already_exists.approved.json +149 -0
- data/spec/fixtures/approvals/publish_contract_with_validation_error.approved.json +42 -0
- data/spec/fixtures/approvals/publish_contracts_results_decorator.approved.json +61 -0
- data/spec/integration/app_spec.rb +41 -41
- data/spec/integration/ui/index_spec.rb +4 -4
- data/spec/integration/ui/matrix_spec.rb +3 -3
- data/spec/integration/webhooks/certificate_spec.rb +7 -7
- data/spec/lib/pact/doc/generator_spec.rb +7 -7
- data/spec/lib/pact/doc/interaction_view_model_spec.rb +16 -16
- data/spec/lib/pact/doc/markdown/consumer_contract_renderer_spec.rb +9 -9
- data/spec/lib/pact/doc/markdown/index_renderer_spec.rb +3 -3
- data/spec/lib/pact_broker/api/contracts/environment_schema_spec.rb +91 -0
- data/spec/lib/pact_broker/api/contracts/pacticipant_schema_spec.rb +46 -0
- data/spec/lib/pact_broker/api/contracts/publish_contracts_schema_spec.rb +114 -0
- data/spec/lib/pact_broker/api/contracts/put_pact_params_contract_spec.rb +6 -6
- data/spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_combinations_spec.rb +76 -0
- data/spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_spec.rb +158 -4
- data/spec/lib/pact_broker/api/contracts/verifiable_pacts_query_schema_spec.rb +1 -1
- data/spec/lib/pact_broker/api/contracts/verification_contract_spec.rb +4 -4
- data/spec/lib/pact_broker/api/contracts/webhook_contract_spec.rb +26 -26
- data/spec/lib/pact_broker/api/decorators/dashboard_decorator_spec.rb +30 -30
- data/spec/lib/pact_broker/api/decorators/embedded_label_decorator_spec.rb +2 -2
- data/spec/lib/pact_broker/api/decorators/embedded_tag_decorator_spec.rb +5 -5
- data/spec/lib/pact_broker/api/decorators/embedded_version_decorator_spec.rb +3 -3
- data/spec/lib/pact_broker/api/decorators/extended_pact_decorator_spec.rb +17 -17
- data/spec/lib/pact_broker/api/decorators/integration_decorator_spec.rb +3 -3
- data/spec/lib/pact_broker/api/decorators/integrations_decorator_spec.rb +3 -3
- data/spec/lib/pact_broker/api/decorators/label_decorator_spec.rb +2 -2
- data/spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb +4 -4
- data/spec/lib/pact_broker/api/decorators/matrix_decorator_spec.rb +50 -25
- data/spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb +6 -6
- data/spec/lib/pact_broker/api/decorators/pact_decorator_spec.rb +25 -25
- data/spec/lib/pact_broker/api/decorators/pact_version_decorator_spec.rb +22 -17
- data/spec/lib/pact_broker/api/decorators/pact_webhooks_status_decorator_spec.rb +17 -14
- data/spec/lib/pact_broker/api/decorators/pacticipant_collection_decorator_spec.rb +7 -7
- data/spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb +63 -50
- data/spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb +7 -7
- data/spec/lib/pact_broker/api/decorators/publish_contracts_results_decorator_spec.rb +53 -0
- data/spec/lib/pact_broker/api/decorators/reason_decorator_spec.rb +27 -8
- data/spec/lib/pact_broker/api/decorators/relationships_csv_decorator_spec.rb +4 -4
- data/spec/lib/pact_broker/api/decorators/representable_pact_spec.rb +7 -7
- data/spec/lib/pact_broker/api/decorators/tag_decorator_spec.rb +4 -4
- data/spec/lib/pact_broker/api/decorators/tagged_pact_versions_decorator_spec.rb +4 -4
- data/spec/lib/pact_broker/api/decorators/triggered_webhook_decorator_spec.rb +18 -15
- data/spec/lib/pact_broker/api/decorators/triggered_webhooks_decorator_spec.rb +5 -5
- data/spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb +11 -11
- data/spec/lib/pact_broker/api/decorators/verifiable_pacts_decorator_spec.rb +3 -3
- data/spec/lib/pact_broker/api/decorators/verifiable_pacts_query_decorator_spec.rb +44 -1
- data/spec/lib/pact_broker/api/decorators/verification_decorator_spec.rb +15 -15
- data/spec/lib/pact_broker/api/decorators/verification_summary_decorator_spec.rb +9 -9
- data/spec/lib/pact_broker/api/decorators/version_decorator_spec.rb +93 -48
- data/spec/lib/pact_broker/api/decorators/versions_decorator_spec.rb +7 -7
- data/spec/lib/pact_broker/api/decorators/webhook_decorator_spec.rb +59 -59
- data/spec/lib/pact_broker/api/decorators/webhook_execution_result_decorator_spec.rb +15 -15
- data/spec/lib/pact_broker/api/decorators/webhook_request_template_decorator_spec.rb +13 -13
- data/spec/lib/pact_broker/api/decorators/webhooks_decorator_spec.rb +10 -10
- data/spec/lib/pact_broker/api/pact_broker_urls_spec.rb +36 -10
- data/spec/lib/pact_broker/api/renderers/html_pact_renderer_spec.rb +30 -30
- data/spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb +4 -4
- data/spec/lib/pact_broker/api/resources/all_webhooks_spec.rb +32 -41
- data/spec/lib/pact_broker/api/resources/badge_spec.rb +17 -17
- data/spec/lib/pact_broker/api/resources/can_i_deploy_badge_spec.rb +6 -6
- data/spec/lib/pact_broker/api/resources/can_i_deploy_pacticipant_version_spec.rb +9 -9
- data/spec/lib/pact_broker/api/resources/can_i_deploy_spec.rb +7 -7
- data/spec/lib/pact_broker/api/resources/dashboard_spec.rb +1 -1
- data/spec/lib/pact_broker/api/resources/default_base_resource_approval_spec.rb +12 -11
- data/spec/lib/pact_broker/api/resources/default_base_resource_spec.rb +25 -24
- data/spec/lib/pact_broker/api/resources/error_response_body_generator_spec.rb +11 -11
- data/spec/lib/pact_broker/api/resources/group_spec.rb +11 -11
- data/spec/lib/pact_broker/api/resources/latest_pact_spec.rb +15 -15
- data/spec/lib/pact_broker/api/resources/latest_provider_pacts_spec.rb +6 -6
- data/spec/lib/pact_broker/api/resources/latest_verifications_for_consumer_version_spec.rb +8 -8
- data/spec/lib/pact_broker/api/resources/matrix_badge_spec.rb +1 -1
- data/spec/lib/pact_broker/api/resources/matrix_spec.rb +10 -10
- data/spec/lib/pact_broker/api/resources/pact_spec.rb +24 -24
- data/spec/lib/pact_broker/api/resources/pact_triggered_webhooks_spec.rb +4 -4
- data/spec/lib/pact_broker/api/resources/pacticipant_spec.rb +2 -5
- data/spec/lib/pact_broker/api/resources/{webhooks_spec.rb → pacticipant_webhooks_spec.rb} +19 -19
- data/spec/lib/pact_broker/api/resources/pacticipants_spec.rb +18 -22
- data/spec/lib/pact_broker/api/resources/provider_pacts_for_verification_spec.rb +17 -17
- data/spec/lib/pact_broker/api/resources/provider_pacts_spec.rb +8 -8
- data/spec/lib/pact_broker/api/resources/released_version_spec.rb +61 -0
- data/spec/lib/pact_broker/api/resources/tag_spec.rb +3 -3
- data/spec/lib/pact_broker/api/resources/tagged_pact_versions_spec.rb +7 -7
- data/spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb +9 -6
- data/spec/lib/pact_broker/api/resources/verification_spec.rb +76 -7
- data/spec/lib/pact_broker/api/resources/verification_triggered_webhooks_spec.rb +4 -4
- data/spec/lib/pact_broker/api/resources/verifications_spec.rb +22 -28
- data/spec/lib/pact_broker/api/resources/webhook_execution_result_spec.rb +56 -0
- data/spec/lib/pact_broker/api/resources/webhook_execution_spec.rb +10 -10
- data/spec/lib/pact_broker/api/resources/webhook_spec.rb +15 -15
- data/spec/lib/pact_broker/app_spec.rb +43 -43
- data/spec/lib/pact_broker/badges/service_spec.rb +6 -6
- data/spec/lib/pact_broker/build_http_options_spec.rb +5 -5
- data/spec/lib/pact_broker/certificates/service_spec.rb +7 -7
- data/spec/lib/pact_broker/config/load_spec.rb +11 -11
- data/spec/lib/pact_broker/config/save_and_load_spec.rb +2 -2
- data/spec/lib/pact_broker/config/save_spec.rb +29 -29
- data/spec/lib/pact_broker/config/space_delimited_integer_list_spec.rb +1 -1
- data/spec/lib/pact_broker/config/space_delimited_string_list_spec.rb +1 -1
- data/spec/lib/pact_broker/configuration_spec.rb +9 -9
- data/spec/lib/pact_broker/contracts/service_spec.rb +108 -0
- data/spec/lib/pact_broker/db/clean_incremental_spec.rb +12 -11
- data/spec/lib/pact_broker/db/clean_old_spec.rb +2 -4
- data/spec/lib/pact_broker/db/clean_spec.rb +5 -7
- data/spec/lib/pact_broker/db/data_migrations/migrate_webhook_headers_spec.rb +1 -1
- data/spec/lib/pact_broker/db/data_migrations/set_consumer_ids_for_pact_publications_spec.rb +6 -6
- data/spec/lib/pact_broker/db/data_migrations/set_latest_version_sequence_value_spec.rb +8 -8
- data/spec/lib/pact_broker/db/data_migrations/set_pacticipant_main_branch_spec.rb +41 -0
- data/spec/lib/pact_broker/db/delete_overwritten_data_spec.rb +1 -1
- data/spec/lib/pact_broker/db/log_quietener_spec.rb +1 -1
- data/spec/lib/pact_broker/db/validate_encoding_spec.rb +8 -8
- data/spec/lib/pact_broker/deployments/deployed_version_spec.rb +109 -0
- data/spec/lib/pact_broker/deployments/environment_service_spec.rb +37 -0
- data/spec/lib/pact_broker/deployments/environment_spec.rb +27 -0
- data/spec/lib/pact_broker/diagnostic/resources/dependencies_spec.rb +9 -9
- data/spec/lib/pact_broker/diagnostic/resources/heartbeat_spec.rb +5 -5
- data/spec/lib/pact_broker/doc/controllers/app_spec.rb +4 -4
- data/spec/lib/pact_broker/doc/coverage_spec.rb +5 -5
- data/spec/lib/pact_broker/domain/group_spec.rb +7 -7
- data/spec/lib/pact_broker/domain/index_item_spec.rb +3 -3
- data/spec/lib/pact_broker/domain/order_versions_spec.rb +26 -26
- data/spec/lib/pact_broker/domain/pact_spec.rb +3 -3
- data/spec/lib/pact_broker/domain/tag_spec.rb +1 -1
- data/spec/lib/pact_broker/domain/verification_spec.rb +3 -3
- data/spec/lib/pact_broker/domain/version_spec.rb +118 -7
- data/spec/lib/pact_broker/domain/webhook_request_spec.rb +36 -36
- data/spec/lib/pact_broker/domain/webhook_spec.rb +11 -11
- data/spec/lib/pact_broker/errors/error_logger_spec.rb +4 -4
- data/spec/lib/pact_broker/errors_spec.rb +7 -8
- data/spec/lib/pact_broker/events/subscriber_spec.rb +43 -0
- data/spec/lib/pact_broker/feature_toggle_spec.rb +9 -9
- data/spec/lib/pact_broker/groups/service_spec.rb +8 -8
- data/spec/lib/pact_broker/hash_refinements_spec.rb +1 -1
- data/spec/lib/pact_broker/index/service_spec.rb +13 -14
- data/spec/lib/pact_broker/integrations/integration_spec.rb +1 -1
- data/spec/lib/pact_broker/integrations/service_spec.rb +17 -6
- data/spec/lib/pact_broker/labels/repository_spec.rb +2 -2
- data/spec/lib/pact_broker/labels/service_spec.rb +1 -1
- data/spec/lib/pact_broker/matrix/aggregated_row_spec.rb +14 -14
- data/spec/lib/pact_broker/matrix/can_i_deploy_query_schema_spec.rb +72 -0
- data/spec/lib/pact_broker/matrix/deployment_status_summary_spec.rb +100 -20
- data/spec/lib/pact_broker/matrix/every_row_spec.rb +5 -5
- data/spec/lib/pact_broker/matrix/head_row_spec.rb +1 -1
- data/spec/lib/pact_broker/matrix/integration_environment_spec.rb +175 -0
- data/spec/lib/pact_broker/matrix/integration_ignore_spec.rb +226 -0
- data/spec/lib/pact_broker/matrix/integration_spec.rb +11 -13
- data/spec/lib/pact_broker/matrix/parse_can_i_deploy_query_spec.rb +49 -0
- data/spec/lib/pact_broker/matrix/parse_query_spec.rb +28 -6
- data/spec/lib/pact_broker/matrix/quick_row_spec.rb +7 -7
- data/spec/lib/pact_broker/matrix/repository_dependency_spec.rb +2 -2
- data/spec/lib/pact_broker/matrix/repository_query_limit_spec.rb +9 -9
- data/spec/lib/pact_broker/matrix/repository_spec.rb +44 -211
- data/spec/lib/pact_broker/matrix/row_spec.rb +7 -7
- data/spec/lib/pact_broker/matrix/service_spec.rb +83 -20
- data/spec/lib/pact_broker/messages_spec.rb +6 -6
- data/spec/lib/pact_broker/metrics/service_spec.rb +1 -1
- data/spec/lib/pact_broker/pacticipants/find_potential_duplicate_pacticipant_names_spec.rb +10 -10
- data/spec/lib/pact_broker/pacticipants/generate_display_name_spec.rb +39 -0
- data/spec/lib/pact_broker/pacticipants/repository_spec.rb +86 -15
- data/spec/lib/pact_broker/pacticipants/service_spec.rb +27 -73
- data/spec/lib/pact_broker/pacts/build_verifiable_pact_notices_spec.rb +10 -10
- data/spec/lib/pact_broker/pacts/content_spec.rb +55 -55
- data/spec/lib/pact_broker/pacts/create_formatted_diff_spec.rb +10 -10
- data/spec/lib/pact_broker/pacts/diff_spec.rb +23 -23
- data/spec/lib/pact_broker/pacts/generate_interaction_sha_spec.rb +1 -1
- data/spec/lib/pact_broker/pacts/generate_sha_spec.rb +7 -7
- data/spec/lib/pact_broker/pacts/latest_tagged_pact_publications_spec.rb +1 -1
- data/spec/lib/pact_broker/pacts/merger_spec.rb +7 -7
- data/spec/lib/pact_broker/pacts/metadata_spec.rb +3 -3
- data/spec/lib/pact_broker/pacts/pact_params_spec.rb +12 -12
- data/spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb +8 -8
- data/spec/lib/pact_broker/pacts/pact_publication_selector_dataset_module_spec.rb +120 -0
- data/spec/lib/pact_broker/pacts/pact_publication_spec.rb +9 -9
- data/spec/lib/pact_broker/pacts/pact_version_spec.rb +47 -3
- data/spec/lib/pact_broker/pacts/repository_find_for_currently_deployed_spec.rb +124 -0
- data/spec/lib/pact_broker/pacts/repository_find_for_currently_supported_releases_spec.rb +159 -0
- data/spec/lib/pact_broker/pacts/repository_find_for_verification_fallback_spec.rb +1 -1
- data/spec/lib/pact_broker/pacts/repository_find_for_verification_spec.rb +19 -19
- data/spec/lib/pact_broker/pacts/repository_find_wip_pact_versions_for_provider_branch_spec.rb +59 -1
- data/spec/lib/pact_broker/pacts/repository_find_wip_pact_versions_for_provider_spec.rb +81 -22
- data/spec/lib/pact_broker/pacts/repository_spec.rb +39 -39
- data/spec/lib/pact_broker/pacts/selected_pact_spec.rb +1 -1
- data/spec/lib/pact_broker/pacts/selector_spec.rb +14 -11
- data/spec/lib/pact_broker/pacts/selectors_spec.rb +3 -3
- data/spec/lib/pact_broker/pacts/service_find_for_verification_spec.rb +5 -5
- data/spec/lib/pact_broker/pacts/service_spec.rb +111 -39
- data/spec/lib/pact_broker/pacts/sort_content_spec.rb +21 -8
- data/spec/lib/pact_broker/pacts/squash_pacts_for_verification_spec.rb +3 -3
- data/spec/lib/pact_broker/pacts/verifiable_pact_messages_spec.rb +99 -35
- data/spec/lib/pact_broker/relationships/groupify_spec.rb +12 -12
- data/spec/lib/pact_broker/tags/repository_spec.rb +2 -2
- data/spec/lib/pact_broker/tags/service_spec.rb +2 -2
- data/spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb +1 -1
- data/spec/lib/pact_broker/ui/controllers/clusters_spec.rb +3 -3
- data/spec/lib/pact_broker/ui/controllers/index_spec.rb +47 -8
- data/spec/lib/pact_broker/ui/view_models/index_item_spec.rb +9 -9
- data/spec/lib/pact_broker/ui/view_models/index_items_spec.rb +3 -3
- data/spec/lib/pact_broker/ui/view_models/matrix_deployed_version_spec.rb +29 -0
- data/spec/lib/pact_broker/verifications/pseudo_branch_status_spec.rb +5 -5
- data/spec/lib/pact_broker/verifications/repository_spec.rb +4 -4
- data/spec/lib/pact_broker/verifications/sequence_spec.rb +1 -1
- data/spec/lib/pact_broker/verifications/service_spec.rb +30 -25
- data/spec/lib/pact_broker/verifications/summary_for_consumer_version_spec.rb +6 -6
- data/spec/lib/pact_broker/versions/abbreviate_number_spec.rb +5 -5
- data/spec/lib/pact_broker/versions/parse_semantic_version_spec.rb +2 -2
- data/spec/lib/pact_broker/versions/repository_spec.rb +16 -6
- data/spec/lib/pact_broker/versions/service_spec.rb +1 -1
- data/spec/lib/pact_broker/webhooks/check_host_whitelist_spec.rb +1 -1
- data/spec/lib/pact_broker/webhooks/execution_configuration_spec.rb +1 -1
- data/spec/lib/pact_broker/webhooks/job_spec.rb +10 -10
- data/spec/lib/pact_broker/webhooks/pact_and_verification_parameters_spec.rb +16 -0
- data/spec/lib/pact_broker/webhooks/redact_logs_spec.rb +1 -1
- data/spec/lib/pact_broker/webhooks/render_spec.rb +19 -10
- data/spec/lib/pact_broker/webhooks/repository_spec.rb +203 -177
- data/spec/lib/pact_broker/webhooks/service_spec.rb +37 -243
- data/spec/lib/pact_broker/webhooks/status_spec.rb +5 -5
- data/spec/lib/pact_broker/webhooks/trigger_service_spec.rb +252 -127
- data/spec/lib/pact_broker/webhooks/triggered_webhook_spec.rb +2 -2
- data/spec/lib/pact_broker/webhooks/webhook_request_logger_spec.rb +11 -11
- data/spec/lib/pact_broker/webhooks/webhook_request_template_spec.rb +70 -28
- data/spec/lib/pact_broker/webhooks/webhook_spec.rb +2 -5
- data/spec/lib/rack/hal_browser/redirect_spec.rb +18 -18
- data/spec/lib/rack/pact_broker/add_pact_broker_version_header_spec.rb +3 -3
- data/spec/lib/rack/pact_broker/database_transaction_spec.rb +10 -15
- data/spec/lib/rack/pact_broker/invalid_uri_protection_spec.rb +2 -2
- data/spec/lib/rack/pact_broker/request_target_spec.rb +5 -5
- data/spec/lib/rack/pact_broker/set_base_url_spec.rb +86 -0
- data/spec/lib/rack/pact_broker/use_when_spec.rb +6 -6
- data/spec/lib/sequel/plugins/insert_ignore_spec.rb +2 -2
- data/spec/lib/sequel/plugins/upsert_spec.rb +3 -3
- data/spec/lib/webmachine/rack_adapter_monkey_patch_spec.rb +7 -8
- data/spec/migrations/23_pact_versions_spec.rb +11 -13
- data/spec/migrations/24_populate_pact_contents_spec.rb +7 -7
- data/spec/migrations/34_latest_tagged_pacts_spec.rb +23 -23
- data/spec/migrations/34_pact_revisions_spec.rb +10 -10
- data/spec/migrations/41_migrate_execution_data_spec.rb +11 -11
- data/spec/migrations/42_delete_ophan_webhook_data_spec.rb +17 -17
- data/spec/migrations/44_add_provider_version_to_verification_spec.rb +9 -9
- data/spec/migrations/50_create_latest_matrix_spec.rb +15 -15
- data/spec/migrations/change_migration_strategy_spec.rb +21 -21
- data/spec/migrations/rollback_spec.rb +2 -0
- data/spec/service_consumers/hal_relation_proxy_app.rb +30 -7
- data/spec/service_consumers/pact_helper.rb +24 -11
- data/spec/service_consumers/provider_states_for_pact_broker_client.rb +101 -18
- data/spec/service_consumers/provider_states_for_pact_broker_client_2.rb +36 -0
- data/spec/service_consumers/provider_states_for_pact_ruby.rb +64 -64
- data/spec/spec_helper.rb +13 -25
- data/spec/support/approvals.rb +9 -7
- data/spec/support/database.rb +8 -4
- data/spec/support/database_cleaner.rb +2 -2
- data/spec/support/fixture_helpers.rb +1 -1
- data/spec/support/logging.rb +2 -2
- data/spec/support/metadata_test_server.rb +7 -7
- data/spec/support/migration_helpers.rb +1 -1
- data/spec/support/rack_helpers.rb +20 -0
- data/spec/support/rspec_matchers.rb +1 -1
- data/spec/support/shared_context.rb +1 -1
- data/spec/support/shared_examples_for_responses.rb +15 -4
- data/spec/support/simplecov.rb +20 -7
- data/spec/support/ssl_pact_broker_server.rb +8 -8
- data/spec/support/ssl_webhook_server.rb +8 -8
- data/spec/support/test_data_builder.rb +1 -1
- data/spec/support/verification_job.rb +8 -8
- data/spec/support/webhook_endpoint_middleware.rb +4 -4
- data/tasks/audit.rake +1 -1
- data/tasks/database.rb +23 -23
- data/tasks/database/annotate.rb +2 -2
- data/tasks/database/table_dependency_calculator.rb +1 -1
- data/tasks/db.rake +34 -39
- data/tasks/development.rake +38 -6
- data/tasks/docker_database.rb +9 -9
- data/tasks/pact.rake +5 -5
- data/tasks/release.rake +2 -2
- data/tasks/rspec.rake +16 -16
- data/tasks/test_db.rake +11 -11
- data/vendor/hal-browser/styles.css +6 -0
- metadata +209 -21
- data/.travis.yml +0 -31
- data/lib/pact_broker/domain/webhook_request_header.rb +0 -13
- data/lib/webmachine/rack_adapter_monkey_patch.rb +0 -38
- data/spec/lib/pact_broker/domain/pacticipant_spec.rb +0 -26
data/tasks/development.rake
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
task 'pact_broker:dev:setup' do
|
1
|
+
desc "Set up a dev instance of the Pact Broker"
|
2
|
+
task "pact_broker:dev:setup" do
|
4
3
|
puts "Copying example directory"
|
5
|
-
FileUtils.cp_r
|
6
|
-
gemfile_contents = File.read(
|
4
|
+
FileUtils.cp_r "example", "dev"
|
5
|
+
gemfile_contents = File.read("dev/Gemfile")
|
7
6
|
|
8
7
|
|
9
8
|
puts "Changing source of pact_broker gem from rubygems.org to local file system"
|
10
9
|
new_gemfile_contents = gemfile_contents.gsub(/^.*gem.*pact_broker.*$/, "gem 'pact_broker', path: '../'")
|
11
|
-
File.open(
|
10
|
+
File.open("dev/Gemfile", "w") { |file| file << new_gemfile_contents }
|
12
11
|
|
13
12
|
Dir.chdir("dev") do
|
14
13
|
Bundler.with_clean_env do
|
@@ -17,3 +16,36 @@ task 'pact_broker:dev:setup' do
|
|
17
16
|
end
|
18
17
|
end
|
19
18
|
end
|
19
|
+
|
20
|
+
desc "List the Pact Broker API routes"
|
21
|
+
task "pact_broker:routes", [:search_term] do | _, args |
|
22
|
+
puts "Listing routes containing the term '#{args[:search_term]}'" if args[:search_term]
|
23
|
+
require "tempfile"
|
24
|
+
require "sequel"
|
25
|
+
require "pact_broker"
|
26
|
+
require "pact_broker/project_root"
|
27
|
+
|
28
|
+
Tempfile.create("pact_broker_routes") do |f|
|
29
|
+
CONNECTION = Sequel.connect({ adapter: "sqlite", database: f.path, encoding: "utf8", sql_log_level: :debug })
|
30
|
+
|
31
|
+
require "pact_broker/db"
|
32
|
+
PactBroker::DB.run_migrations(CONNECTION)
|
33
|
+
|
34
|
+
require "pact_broker/api"
|
35
|
+
|
36
|
+
routes_debugging = PactBroker::API.application.routes.collect do | route |
|
37
|
+
["/" + route.path_spec.collect{ |part| part.is_a?(Symbol) ? ":#{part}" : part }.join("/"), route.resource]
|
38
|
+
end
|
39
|
+
|
40
|
+
if args[:search_term]
|
41
|
+
routes_debugging = routes_debugging.select{ |(route, _)| route.include?(args[:search_term]) }
|
42
|
+
end
|
43
|
+
|
44
|
+
routes_debugging.sort_by(&:first).each do | (path, resource_class) |
|
45
|
+
puts ""
|
46
|
+
puts "#{path}"
|
47
|
+
puts " class: #{resource_class}"
|
48
|
+
puts " location: #{resource_class.instance_method(:allowed_methods).source_location.first.gsub(PactBroker.project_root.to_s + "/", "")}"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/tasks/docker_database.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
require
|
1
|
+
require "docker"
|
2
2
|
|
3
3
|
module DockerDatabase
|
4
4
|
|
5
|
-
POSTGRES_IMAGE_NAME =
|
5
|
+
POSTGRES_IMAGE_NAME = "postgres:9.6".freeze
|
6
6
|
|
7
7
|
def self.start(options)
|
8
|
-
Docker::Image.create(
|
8
|
+
Docker::Image.create("fromImage" => POSTGRES_IMAGE_NAME)
|
9
9
|
host_port = options.fetch(:port)
|
10
10
|
Docker::Container.create(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
"Image" => POSTGRES_IMAGE_NAME,
|
12
|
+
"name" => options.fetch(:name),
|
13
|
+
"ExposedPorts" => { "5432/tcp" => {} },
|
14
|
+
"HostConfig" => {
|
15
|
+
"PortBindings" => {
|
16
|
+
"5432/tcp" => [{ "HostPort" => host_port }]
|
17
17
|
}
|
18
18
|
}
|
19
19
|
).start({})
|
data/tasks/pact.rake
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
require
|
1
|
+
require "pact/tasks"
|
2
2
|
|
3
3
|
Pact::VerificationTask.new(:dev) do | pact |
|
4
4
|
pact.uri "../pact_broker-client/spec/pacts/pact_broker_client-pact_broker.json"
|
5
5
|
end
|
6
6
|
|
7
7
|
task :set_simplecov_command_to_pact_verify do
|
8
|
-
ENV[
|
8
|
+
ENV["SIMPLECOV_COMMAND_NAME"] = "pact:verify"
|
9
9
|
end
|
10
10
|
|
11
11
|
namespace :pact do
|
12
|
-
task :prepare => [
|
12
|
+
task :prepare => ["db:set_test_env", "db:prepare:test", "set_simplecov_command_to_pact_verify",]
|
13
13
|
task :verify => :prepare
|
14
|
-
task
|
15
|
-
task
|
14
|
+
task "verify:at" => :prepare
|
15
|
+
task "verify:dev" => :prepare
|
16
16
|
end
|
data/tasks/release.rake
CHANGED
data/tasks/rspec.rake
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "rspec/core"
|
2
|
+
require "rspec/core/rake_task"
|
3
3
|
|
4
|
-
RSpec::Core::RakeTask.new(
|
5
|
-
task.rspec_opts =
|
4
|
+
RSpec::Core::RakeTask.new("spec:focus") do |task|
|
5
|
+
task.rspec_opts = "--tag @focus"
|
6
6
|
end
|
7
7
|
|
8
|
-
RSpec::Core::RakeTask.new(
|
9
|
-
task.rspec_opts =
|
8
|
+
RSpec::Core::RakeTask.new("spec:quick") do |task|
|
9
|
+
task.rspec_opts = "--tag ~@no_db_clean --tag ~@migration --format progress"
|
10
10
|
end
|
11
11
|
|
12
|
-
RSpec::Core::RakeTask.new(
|
13
|
-
task.pattern =
|
14
|
-
task.rspec_opts =
|
12
|
+
RSpec::Core::RakeTask.new("regression") do |task|
|
13
|
+
task.pattern = "regression/**{,/*/**}/*_spec.rb"
|
14
|
+
task.rspec_opts = "--require ./regression/regression_helper.rb"
|
15
15
|
end
|
16
16
|
|
17
|
-
RSpec::Core::RakeTask.new(
|
18
|
-
task.rspec_opts =
|
17
|
+
RSpec::Core::RakeTask.new("spec:slow") do |task|
|
18
|
+
task.rspec_opts = "--tag @no_db_clean --tag @migration --format progress"
|
19
19
|
end
|
20
20
|
|
21
21
|
task :set_simplecov_command_to_spec_quick do
|
22
|
-
ENV[
|
22
|
+
ENV["SIMPLECOV_COMMAND_NAME"] = "spec:quick"
|
23
23
|
end
|
24
24
|
|
25
25
|
task :set_simplecov_command_to_spec_slow do
|
26
|
-
ENV[
|
26
|
+
ENV["SIMPLECOV_COMMAND_NAME"] = "spec:slow"
|
27
27
|
end
|
28
28
|
|
29
|
-
task
|
30
|
-
task
|
31
|
-
task :spec => [
|
29
|
+
task "spec:quick" => ["set_simplecov_command_to_spec_quick"]
|
30
|
+
task "spec:slow" => ["set_simplecov_command_to_spec_slow"]
|
31
|
+
task :spec => ["spec:quick", "spec:slow"]
|
32
32
|
|
data/tasks/test_db.rake
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
require
|
1
|
+
require "pact_broker/tasks"
|
2
2
|
|
3
3
|
PactBroker::DB::MigrationTask.new do | task |
|
4
|
-
ENV[
|
5
|
-
require
|
4
|
+
ENV["RACK_ENV"] ||= "test"
|
5
|
+
require "db"
|
6
6
|
task.database_connection = DB::PACT_BROKER_DB
|
7
7
|
end
|
8
8
|
|
9
9
|
PactBroker::DB::DataMigrationTask.new do | task |
|
10
|
-
ENV[
|
11
|
-
require
|
10
|
+
ENV["RACK_ENV"] ||= "test"
|
11
|
+
require "db"
|
12
12
|
task.database_connection = DB::PACT_BROKER_DB
|
13
13
|
end
|
14
14
|
|
15
15
|
PactBroker::DB::VersionTask.new do | task |
|
16
|
-
ENV[
|
17
|
-
require
|
16
|
+
ENV["RACK_ENV"] ||= "test"
|
17
|
+
require "db"
|
18
18
|
task.database_connection = DB::PACT_BROKER_DB
|
19
19
|
end
|
20
20
|
|
21
21
|
PactBroker::DB::CleanTask.new do | task |
|
22
|
-
ENV[
|
23
|
-
require
|
22
|
+
ENV["RACK_ENV"] ||= "test"
|
23
|
+
require "db"
|
24
24
|
task.database_connection = DB::PACT_BROKER_DB
|
25
25
|
end
|
26
26
|
|
27
27
|
PactBroker::DB::DeleteOverwrittenDataTask.new do | task |
|
28
|
-
ENV[
|
29
|
-
require
|
28
|
+
ENV["RACK_ENV"] ||= "test"
|
29
|
+
require "db"
|
30
30
|
task.database_connection = DB::PACT_BROKER_DB
|
31
31
|
task.age_in_days = 7
|
32
32
|
end
|
@@ -50,6 +50,10 @@ body table.table {
|
|
50
50
|
font-size: 11px;
|
51
51
|
}
|
52
52
|
|
53
|
+
body table.table td:nth-child(3) {
|
54
|
+
word-wrap: break-word;
|
55
|
+
}
|
56
|
+
|
53
57
|
.location-bar-container {
|
54
58
|
line-height: 30px;
|
55
59
|
}
|
@@ -70,7 +74,9 @@ body table.table {
|
|
70
74
|
}
|
71
75
|
.embedded-resource-title {
|
72
76
|
font-style: italic;
|
77
|
+
word-wrap: break-word;
|
73
78
|
}
|
79
|
+
|
74
80
|
.embedded-resource-title:before {
|
75
81
|
content: "\"";
|
76
82
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact_broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.80.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bethany Skurrie
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-07-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -60,20 +60,14 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 2.3.1
|
63
|
+
version: 2.3.3
|
67
64
|
type: :runtime
|
68
65
|
prerelease: false
|
69
66
|
version_requirements: !ruby/object:Gem::Requirement
|
70
67
|
requirements:
|
71
68
|
- - "~>"
|
72
69
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 2.3.1
|
70
|
+
version: 2.3.3
|
77
71
|
- !ruby/object:Gem::Dependency
|
78
72
|
name: dry-validation
|
79
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +102,14 @@ dependencies:
|
|
108
102
|
requirements:
|
109
103
|
- - '='
|
110
104
|
- !ruby/object:Gem::Version
|
111
|
-
version: 1.
|
105
|
+
version: 1.6.0
|
112
106
|
type: :runtime
|
113
107
|
prerelease: false
|
114
108
|
version_requirements: !ruby/object:Gem::Requirement
|
115
109
|
requirements:
|
116
110
|
- - '='
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version: 1.
|
112
|
+
version: 1.6.0
|
119
113
|
- !ruby/object:Gem::Dependency
|
120
114
|
name: semver2
|
121
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,6 +348,20 @@ dependencies:
|
|
354
348
|
- - "~>"
|
355
349
|
- !ruby/object:Gem::Version
|
356
350
|
version: '5.2'
|
351
|
+
- !ruby/object:Gem::Dependency
|
352
|
+
name: wisper
|
353
|
+
requirement: !ruby/object:Gem::Requirement
|
354
|
+
requirements:
|
355
|
+
- - "~>"
|
356
|
+
- !ruby/object:Gem::Version
|
357
|
+
version: '2.0'
|
358
|
+
type: :runtime
|
359
|
+
prerelease: false
|
360
|
+
version_requirements: !ruby/object:Gem::Requirement
|
361
|
+
requirements:
|
362
|
+
- - "~>"
|
363
|
+
- !ruby/object:Gem::Version
|
364
|
+
version: '2.0'
|
357
365
|
description: A server that stores and returns pact files generated by the pact gem.
|
358
366
|
It enables head/prod cross testing of the consumer and provider projects.
|
359
367
|
email:
|
@@ -382,7 +390,6 @@ files:
|
|
382
390
|
- ".rspec"
|
383
391
|
- ".rubocop.yml"
|
384
392
|
- ".ruby-version"
|
385
|
-
- ".travis.yml"
|
386
393
|
- CHANGELOG.md
|
387
394
|
- CODE_OF_CONDUCT.md
|
388
395
|
- CONTRIBUTING.md
|
@@ -540,6 +547,17 @@ files:
|
|
540
547
|
- db/migrations/20210206_add_index_to_tags_and_versions.rb
|
541
548
|
- db/migrations/20210207_optimise_latest_verification_ids_for_consumer_version_tags.rb
|
542
549
|
- db/migrations/20210208_optimise_latest_tagged_pact_cv_orders.rb
|
550
|
+
- db/migrations/20210210_create_environments_table.rb
|
551
|
+
- db/migrations/20210216_create_deployed_versions_table.rb
|
552
|
+
- db/migrations/20210226_set_deployment_columns_not_null.rb
|
553
|
+
- db/migrations/20210301_add_pacticipant_columns.rb
|
554
|
+
- db/migrations/20210413_create_currently_deployed_version_ids_table.rb
|
555
|
+
- db/migrations/20210415_add_target_column_to_deployed_version.rb
|
556
|
+
- db/migrations/20210419_create_released_versions_table.rb
|
557
|
+
- db/migrations/20210529_add_main_branch_to_pacticipant.rb
|
558
|
+
- db/migrations/20210608_add_uuid_to_webhook.rb
|
559
|
+
- db/migrations/20210609_set_webhook_uuid.rb
|
560
|
+
- db/migrations/20210702_drop_unused_columns_from_deployed_versions.rb
|
543
561
|
- db/migrations/migration_helper.rb
|
544
562
|
- db/test/backwards_compatibility/.rspec
|
545
563
|
- db/test/backwards_compatibility/Appraisals
|
@@ -602,8 +620,11 @@ files:
|
|
602
620
|
- lib/pact_broker/api/contracts/base_contract.rb
|
603
621
|
- lib/pact_broker/api/contracts/dry_validation_predicates.rb
|
604
622
|
- lib/pact_broker/api/contracts/dry_validation_workarounds.rb
|
623
|
+
- lib/pact_broker/api/contracts/environment_schema.rb
|
605
624
|
- lib/pact_broker/api/contracts/pacticipant_name_contract.rb
|
606
625
|
- lib/pact_broker/api/contracts/pacticipant_name_validation.rb
|
626
|
+
- lib/pact_broker/api/contracts/pacticipant_schema.rb
|
627
|
+
- lib/pact_broker/api/contracts/publish_contracts_schema.rb
|
607
628
|
- lib/pact_broker/api/contracts/put_pact_params_contract.rb
|
608
629
|
- lib/pact_broker/api/contracts/request_validations.rb
|
609
630
|
- lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema.rb
|
@@ -618,9 +639,14 @@ files:
|
|
618
639
|
- lib/pact_broker/api/decorators/dashboard_text_decorator.rb
|
619
640
|
- lib/pact_broker/api/decorators/decorator_context.rb
|
620
641
|
- lib/pact_broker/api/decorators/decorator_context_creator.rb
|
642
|
+
- lib/pact_broker/api/decorators/deployed_version_decorator.rb
|
643
|
+
- lib/pact_broker/api/decorators/deployed_versions_decorator.rb
|
621
644
|
- lib/pact_broker/api/decorators/embedded_label_decorator.rb
|
645
|
+
- lib/pact_broker/api/decorators/embedded_pacticipant_decorator.rb
|
622
646
|
- lib/pact_broker/api/decorators/embedded_tag_decorator.rb
|
623
647
|
- lib/pact_broker/api/decorators/embedded_version_decorator.rb
|
648
|
+
- lib/pact_broker/api/decorators/environment_decorator.rb
|
649
|
+
- lib/pact_broker/api/decorators/environments_decorator.rb
|
624
650
|
- lib/pact_broker/api/decorators/extended_pact_decorator.rb
|
625
651
|
- lib/pact_broker/api/decorators/extended_verification_decorator.rb
|
626
652
|
- lib/pact_broker/api/decorators/format_date_time.rb
|
@@ -641,8 +667,13 @@ files:
|
|
641
667
|
- lib/pact_broker/api/decorators/pacticipant_decorator.rb
|
642
668
|
- lib/pact_broker/api/decorators/pagination_links.rb
|
643
669
|
- lib/pact_broker/api/decorators/provider_pacts_decorator.rb
|
670
|
+
- lib/pact_broker/api/decorators/publish_contract_decorator.rb
|
671
|
+
- lib/pact_broker/api/decorators/publish_contracts_decorator.rb
|
672
|
+
- lib/pact_broker/api/decorators/publish_contracts_results_decorator.rb
|
644
673
|
- lib/pact_broker/api/decorators/reason_decorator.rb
|
645
674
|
- lib/pact_broker/api/decorators/relationships_csv_decorator.rb
|
675
|
+
- lib/pact_broker/api/decorators/released_version_decorator.rb
|
676
|
+
- lib/pact_broker/api/decorators/released_versions_decorator.rb
|
646
677
|
- lib/pact_broker/api/decorators/representable_pact.rb
|
647
678
|
- lib/pact_broker/api/decorators/tag_decorator.rb
|
648
679
|
- lib/pact_broker/api/decorators/tagged_pact_versions_decorator.rb
|
@@ -667,14 +698,21 @@ files:
|
|
667
698
|
- lib/pact_broker/api/resources.rb
|
668
699
|
- lib/pact_broker/api/resources/all_webhooks.rb
|
669
700
|
- lib/pact_broker/api/resources/authentication.rb
|
701
|
+
- lib/pact_broker/api/resources/authorization.rb
|
670
702
|
- lib/pact_broker/api/resources/badge.rb
|
671
703
|
- lib/pact_broker/api/resources/base_resource.rb
|
672
704
|
- lib/pact_broker/api/resources/can_i_deploy.rb
|
673
705
|
- lib/pact_broker/api/resources/can_i_deploy_badge.rb
|
674
706
|
- lib/pact_broker/api/resources/can_i_deploy_pacticipant_version.rb
|
675
707
|
- lib/pact_broker/api/resources/clean.rb
|
708
|
+
- lib/pact_broker/api/resources/currently_deployed_versions_for_environment.rb
|
709
|
+
- lib/pact_broker/api/resources/currently_supported_versions_for_environment.rb
|
676
710
|
- lib/pact_broker/api/resources/dashboard.rb
|
677
711
|
- lib/pact_broker/api/resources/default_base_resource.rb
|
712
|
+
- lib/pact_broker/api/resources/deployed_version.rb
|
713
|
+
- lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb
|
714
|
+
- lib/pact_broker/api/resources/environment.rb
|
715
|
+
- lib/pact_broker/api/resources/environments.rb
|
678
716
|
- lib/pact_broker/api/resources/error_handler.rb
|
679
717
|
- lib/pact_broker/api/resources/error_response_body_generator.rb
|
680
718
|
- lib/pact_broker/api/resources/error_test.rb
|
@@ -705,12 +743,16 @@ files:
|
|
705
743
|
- lib/pact_broker/api/resources/pact_webhooks_status.rb
|
706
744
|
- lib/pact_broker/api/resources/pacticipant.rb
|
707
745
|
- lib/pact_broker/api/resources/pacticipant_resource_methods.rb
|
746
|
+
- lib/pact_broker/api/resources/pacticipant_webhooks.rb
|
708
747
|
- lib/pact_broker/api/resources/pacticipants.rb
|
709
748
|
- lib/pact_broker/api/resources/pacticipants_for_label.rb
|
710
749
|
- lib/pact_broker/api/resources/previous_distinct_pact_version.rb
|
711
750
|
- lib/pact_broker/api/resources/provider_pacts.rb
|
712
751
|
- lib/pact_broker/api/resources/provider_pacts_for_verification.rb
|
752
|
+
- lib/pact_broker/api/resources/publish_contracts.rb
|
713
753
|
- lib/pact_broker/api/resources/relationships.rb
|
754
|
+
- lib/pact_broker/api/resources/released_version.rb
|
755
|
+
- lib/pact_broker/api/resources/released_versions_for_version_and_environment.rb
|
714
756
|
- lib/pact_broker/api/resources/tag.rb
|
715
757
|
- lib/pact_broker/api/resources/tagged_pact_versions.rb
|
716
758
|
- lib/pact_broker/api/resources/triggered_webhook_logs.rb
|
@@ -723,7 +765,6 @@ files:
|
|
723
765
|
- lib/pact_broker/api/resources/webhook_execution.rb
|
724
766
|
- lib/pact_broker/api/resources/webhook_execution_methods.rb
|
725
767
|
- lib/pact_broker/api/resources/webhook_resource_methods.rb
|
726
|
-
- lib/pact_broker/api/resources/webhooks.rb
|
727
768
|
- lib/pact_broker/app.rb
|
728
769
|
- lib/pact_broker/application_context.rb
|
729
770
|
- lib/pact_broker/badges/service.rb
|
@@ -738,6 +779,11 @@ files:
|
|
738
779
|
- lib/pact_broker/config/space_delimited_string_list.rb
|
739
780
|
- lib/pact_broker/configuration.rb
|
740
781
|
- lib/pact_broker/constants.rb
|
782
|
+
- lib/pact_broker/contracts/contract_to_publish.rb
|
783
|
+
- lib/pact_broker/contracts/contracts_publication_results.rb
|
784
|
+
- lib/pact_broker/contracts/contracts_to_publish.rb
|
785
|
+
- lib/pact_broker/contracts/notice.rb
|
786
|
+
- lib/pact_broker/contracts/service.rb
|
741
787
|
- lib/pact_broker/dashboard/service.rb
|
742
788
|
- lib/pact_broker/date_helper.rb
|
743
789
|
- lib/pact_broker/db.rb
|
@@ -751,7 +797,10 @@ files:
|
|
751
797
|
- lib/pact_broker/db/data_migrations/set_created_at_for_latest_verifications.rb
|
752
798
|
- lib/pact_broker/db/data_migrations/set_extra_columns_for_tags.rb
|
753
799
|
- lib/pact_broker/db/data_migrations/set_latest_version_sequence_value.rb
|
800
|
+
- lib/pact_broker/db/data_migrations/set_pacticipant_display_name.rb
|
754
801
|
- lib/pact_broker/db/data_migrations/set_pacticipant_ids_for_verifications.rb
|
802
|
+
- lib/pact_broker/db/data_migrations/set_pacticipant_main_branch.rb
|
803
|
+
- lib/pact_broker/db/data_migrations/set_webhook_uuid.rb
|
755
804
|
- lib/pact_broker/db/data_migrations/set_webhooks_enabled.rb
|
756
805
|
- lib/pact_broker/db/delete_overwritten_data.rb
|
757
806
|
- lib/pact_broker/db/log_quietener.rb
|
@@ -765,6 +814,13 @@ files:
|
|
765
814
|
- lib/pact_broker/db/table_dependency_calculator.rb
|
766
815
|
- lib/pact_broker/db/validate_encoding.rb
|
767
816
|
- lib/pact_broker/db/version.rb
|
817
|
+
- lib/pact_broker/deployments/currently_deployed_version_id.rb
|
818
|
+
- lib/pact_broker/deployments/deployed_version.rb
|
819
|
+
- lib/pact_broker/deployments/deployed_version_service.rb
|
820
|
+
- lib/pact_broker/deployments/environment.rb
|
821
|
+
- lib/pact_broker/deployments/environment_service.rb
|
822
|
+
- lib/pact_broker/deployments/released_version.rb
|
823
|
+
- lib/pact_broker/deployments/released_version_service.rb
|
768
824
|
- lib/pact_broker/diagnostic/app.rb
|
769
825
|
- lib/pact_broker/diagnostic/resources/base_resource.rb
|
770
826
|
- lib/pact_broker/diagnostic/resources/dependencies.rb
|
@@ -773,6 +829,8 @@ files:
|
|
773
829
|
- lib/pact_broker/doc/views/can-i-deploy.markdown
|
774
830
|
- lib/pact_broker/doc/views/consumer-version.markdown
|
775
831
|
- lib/pact_broker/doc/views/consumer.markdown
|
832
|
+
- lib/pact_broker/doc/views/index/environment.markdown
|
833
|
+
- lib/pact_broker/doc/views/index/environments.markdown
|
776
834
|
- lib/pact_broker/doc/views/index/latest-pact-versions.markdown
|
777
835
|
- lib/pact_broker/doc/views/index/latest-provider-pacts-with-tag.markdown
|
778
836
|
- lib/pact_broker/doc/views/index/latest-provider-pacts.markdown
|
@@ -783,6 +841,7 @@ files:
|
|
783
841
|
- lib/pact_broker/doc/views/index/pacticipants.markdown
|
784
842
|
- lib/pact_broker/doc/views/index/provider-pacts-with-tag.markdown
|
785
843
|
- lib/pact_broker/doc/views/index/provider-pacts.markdown
|
844
|
+
- lib/pact_broker/doc/views/index/publish-contracts.markdown
|
786
845
|
- lib/pact_broker/doc/views/index/publish-pact.markdown
|
787
846
|
- lib/pact_broker/doc/views/index/self.markdown
|
788
847
|
- lib/pact_broker/doc/views/index/tagged-pact-versions.markdown
|
@@ -820,10 +879,12 @@ files:
|
|
820
879
|
- lib/pact_broker/domain/version.rb
|
821
880
|
- lib/pact_broker/domain/webhook.rb
|
822
881
|
- lib/pact_broker/domain/webhook_request.rb
|
823
|
-
- lib/pact_broker/domain/webhook_request_header.rb
|
824
882
|
- lib/pact_broker/error.rb
|
825
883
|
- lib/pact_broker/errors.rb
|
826
884
|
- lib/pact_broker/errors/error_logger.rb
|
885
|
+
- lib/pact_broker/events/event.rb
|
886
|
+
- lib/pact_broker/events/publisher.rb
|
887
|
+
- lib/pact_broker/events/subscriber.rb
|
827
888
|
- lib/pact_broker/feature_toggle.rb
|
828
889
|
- lib/pact_broker/groups/service.rb
|
829
890
|
- lib/pact_broker/hash_refinements.rb
|
@@ -859,6 +920,7 @@ files:
|
|
859
920
|
- lib/pact_broker/messages.rb
|
860
921
|
- lib/pact_broker/metrics/service.rb
|
861
922
|
- lib/pact_broker/pacticipants/find_potential_duplicate_pacticipant_names.rb
|
923
|
+
- lib/pact_broker/pacticipants/generate_display_name.rb
|
862
924
|
- lib/pact_broker/pacticipants/repository.rb
|
863
925
|
- lib/pact_broker/pacticipants/service.rb
|
864
926
|
- lib/pact_broker/pacts/all_pact_publications.rb
|
@@ -881,6 +943,8 @@ files:
|
|
881
943
|
- lib/pact_broker/pacts/pact_params.rb
|
882
944
|
- lib/pact_broker/pacts/pact_publication.rb
|
883
945
|
- lib/pact_broker/pacts/pact_publication_dataset_module.rb
|
946
|
+
- lib/pact_broker/pacts/pact_publication_selector_dataset_module.rb
|
947
|
+
- lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb
|
884
948
|
- lib/pact_broker/pacts/pact_version.rb
|
885
949
|
- lib/pact_broker/pacts/pacts_for_verification_repository.rb
|
886
950
|
- lib/pact_broker/pacts/parse.rb
|
@@ -929,8 +993,10 @@ files:
|
|
929
993
|
- lib/pact_broker/ui/view_models/clusters.rb
|
930
994
|
- lib/pact_broker/ui/view_models/index_item.rb
|
931
995
|
- lib/pact_broker/ui/view_models/index_items.rb
|
996
|
+
- lib/pact_broker/ui/view_models/matrix_deployed_version.rb
|
932
997
|
- lib/pact_broker/ui/view_models/matrix_line.rb
|
933
998
|
- lib/pact_broker/ui/view_models/matrix_lines.rb
|
999
|
+
- lib/pact_broker/ui/view_models/matrix_released_version.rb
|
934
1000
|
- lib/pact_broker/ui/view_models/matrix_tag.rb
|
935
1001
|
- lib/pact_broker/ui/views/clusters/show.haml
|
936
1002
|
- lib/pact_broker/ui/views/groups/show.html.erb
|
@@ -962,6 +1028,7 @@ files:
|
|
962
1028
|
- lib/pact_broker/versions/sequence.rb
|
963
1029
|
- lib/pact_broker/versions/service.rb
|
964
1030
|
- lib/pact_broker/webhooks/check_host_whitelist.rb
|
1031
|
+
- lib/pact_broker/webhooks/event_listener.rb
|
965
1032
|
- lib/pact_broker/webhooks/execution.rb
|
966
1033
|
- lib/pact_broker/webhooks/execution_configuration.rb
|
967
1034
|
- lib/pact_broker/webhooks/execution_configuration_creator.rb
|
@@ -1001,7 +1068,6 @@ files:
|
|
1001
1068
|
- lib/sequel/extensions/statement_timeout.rb
|
1002
1069
|
- lib/sequel/plugins/insert_ignore.rb
|
1003
1070
|
- lib/sequel/plugins/upsert.rb
|
1004
|
-
- lib/webmachine/rack_adapter_monkey_patch.rb
|
1005
1071
|
- optic.yml
|
1006
1072
|
- pact_broker.gemspec
|
1007
1073
|
- pact_broker_client-pact_broker.json
|
@@ -1079,8 +1145,23 @@ files:
|
|
1079
1145
|
- regression/script/approval-all.sh
|
1080
1146
|
- regression/script/clear.sh
|
1081
1147
|
- regression/script/run.sh
|
1148
|
+
- scaffolding/README.md
|
1149
|
+
- scaffolding/run.rb
|
1150
|
+
- scaffolding/templates/decorator.rb.erb
|
1151
|
+
- scaffolding/templates/decorator_spec.erb.rb
|
1152
|
+
- scaffolding/templates/migration.erb
|
1153
|
+
- scaffolding/templates/model.erb
|
1154
|
+
- scaffolding/templates/repository.rb.erb
|
1155
|
+
- scaffolding/templates/repository_spec.rb.erb
|
1156
|
+
- scaffolding/templates/resource.erb
|
1157
|
+
- scaffolding/templates/resource_spec.rb.erb
|
1158
|
+
- scaffolding/templates/service.rb.erb
|
1159
|
+
- scaffolding/templates/service_spec.rb.erb
|
1160
|
+
- script/data/environments.rb
|
1082
1161
|
- script/db-spec.sh
|
1083
1162
|
- script/demonstrate-version-branches.rb
|
1163
|
+
- script/dev/rubocop-modified-files.sh
|
1164
|
+
- script/dev/webhook-server-with-random-errors.sh
|
1084
1165
|
- script/docker-container/test.sh
|
1085
1166
|
- script/docker/db-execute-sql-file.sh
|
1086
1167
|
- script/docker/db-psql.sh
|
@@ -1114,6 +1195,8 @@ files:
|
|
1114
1195
|
- script/recreate-test-database.sh
|
1115
1196
|
- script/release-via-github-action.sh
|
1116
1197
|
- script/release.sh
|
1198
|
+
- script/reproduce-issue-can-i-deploy-ignore.rb
|
1199
|
+
- script/reproduce-issue-expand-currently-deployed.rb
|
1117
1200
|
- script/reproduce-issue-starting-up.rb
|
1118
1201
|
- script/reproduce-issue.rb
|
1119
1202
|
- script/restart.sh
|
@@ -1122,6 +1205,7 @@ files:
|
|
1122
1205
|
- script/seed-for-webhook-test.rb
|
1123
1206
|
- script/seed-matrix.rb
|
1124
1207
|
- script/seed.rb
|
1208
|
+
- script/test/approval-all.sh
|
1125
1209
|
- script/test/run-rake-on-docker-compose-mysql.sh
|
1126
1210
|
- script/trigger-release.sh
|
1127
1211
|
- script/update-hal-browser
|
@@ -1129,9 +1213,12 @@ files:
|
|
1129
1213
|
- script/webhook-server.ru
|
1130
1214
|
- spec/features/base_equality_only_on_content_that_affects_verification_results_spec.rb
|
1131
1215
|
- spec/features/can_i_deploy_spec.rb
|
1216
|
+
- spec/features/create_environment_spec.rb
|
1132
1217
|
- spec/features/create_pacticipant_spec.rb
|
1218
|
+
- spec/features/create_tag_spec.rb
|
1133
1219
|
- spec/features/create_version_spec.rb
|
1134
1220
|
- spec/features/create_webhook_spec.rb
|
1221
|
+
- spec/features/delete_environment_spec.rb
|
1135
1222
|
- spec/features/delete_integration_spec.rb
|
1136
1223
|
- spec/features/delete_label_spec.rb
|
1137
1224
|
- spec/features/delete_pact_spec.rb
|
@@ -1141,11 +1228,19 @@ files:
|
|
1141
1228
|
- spec/features/delete_version_spec.rb
|
1142
1229
|
- spec/features/delete_webhook_spec.rb
|
1143
1230
|
- spec/features/edit_webhook_spec.rb
|
1231
|
+
- spec/features/end_deployment_spec.rb
|
1232
|
+
- spec/features/end_support_spec.rb
|
1144
1233
|
- spec/features/execute_unsaved_webhook_spec.rb
|
1145
1234
|
- spec/features/execute_webhook_spec.rb
|
1146
1235
|
- spec/features/get_can_i_deploy_badge_spec.rb
|
1236
|
+
- spec/features/get_currently_deployed_versions_for_environment_spec.rb
|
1237
|
+
- spec/features/get_currently_deployed_versions_for_version_spec.rb
|
1238
|
+
- spec/features/get_currently_supported_versions_for_environment_spec.rb
|
1147
1239
|
- spec/features/get_dashboard_spec.rb
|
1240
|
+
- spec/features/get_deployed_versions_for_version_and_environment.rb
|
1148
1241
|
- spec/features/get_diff_spec.rb
|
1242
|
+
- spec/features/get_environment_spec.rb
|
1243
|
+
- spec/features/get_environments_spec.rb
|
1149
1244
|
- spec/features/get_integrations_dot_file_spec.rb
|
1150
1245
|
- spec/features/get_integrations_spec.rb
|
1151
1246
|
- spec/features/get_label_spec.rb
|
@@ -1165,6 +1260,7 @@ files:
|
|
1165
1260
|
- spec/features/get_previous_distinct_version.rb
|
1166
1261
|
- spec/features/get_provider_pacts_for_verification_spec.rb
|
1167
1262
|
- spec/features/get_provider_pacts_spec.rb
|
1263
|
+
- spec/features/get_released_versions_for_version_and_environment.rb
|
1168
1264
|
- spec/features/get_tagged_pact_versions_spec.rb
|
1169
1265
|
- spec/features/get_triggered_webhooks_for_pact_spec.rb
|
1170
1266
|
- spec/features/get_triggered_webhooks_for_verification_spec.rb
|
@@ -1175,12 +1271,20 @@ files:
|
|
1175
1271
|
- spec/features/merge_pact_spec.rb
|
1176
1272
|
- spec/features/metrics_spec.rb
|
1177
1273
|
- spec/features/pending_pacts_spec.rb
|
1274
|
+
- spec/features/pending_pacts_with_tags_spec.rb
|
1178
1275
|
- spec/features/publish_not_a_pact_spec.rb
|
1276
|
+
- spec/features/publish_pact_all_in_one_approval_spec.rb
|
1277
|
+
- spec/features/publish_pact_all_in_one_spec.rb
|
1179
1278
|
- spec/features/publish_pact_spec.rb
|
1180
1279
|
- spec/features/publish_verification_spec.rb
|
1280
|
+
- spec/features/record_deployment_spec.rb
|
1281
|
+
- spec/features/record_release_spec.rb
|
1282
|
+
- spec/features/record_undeployment_spec.rb
|
1181
1283
|
- spec/features/tag_version_spec.rb
|
1284
|
+
- spec/features/update_environment_spec.rb
|
1182
1285
|
- spec/features/update_matrix_spec.rb
|
1183
1286
|
- spec/features/update_pacticipant_spec.rb
|
1287
|
+
- spec/features/update_version_spec.rb
|
1184
1288
|
- spec/features/update_webhook_spec.rb
|
1185
1289
|
- spec/features/wip_pacts_spec.rb
|
1186
1290
|
- spec/fixtures/a_consumer-a_provider-2.json
|
@@ -1189,7 +1293,14 @@ files:
|
|
1189
1293
|
- spec/fixtures/a_consumer-a_provider-merged.json
|
1190
1294
|
- spec/fixtures/a_consumer-a_provider.json
|
1191
1295
|
- spec/fixtures/approvals/clean_incremental_dry_run.approved.json
|
1296
|
+
- spec/fixtures/approvals/get_provider_pacts_for_verification.approved.json
|
1192
1297
|
- spec/fixtures/approvals/modifiable_resources.approved.json
|
1298
|
+
- spec/fixtures/approvals/publish_contract_no_branch.approved.json
|
1299
|
+
- spec/fixtures/approvals/publish_contract_nothing_exists.approved.json
|
1300
|
+
- spec/fixtures/approvals/publish_contract_nothing_exists_with_webhook.approved.json
|
1301
|
+
- spec/fixtures/approvals/publish_contract_verification_already_exists.approved.json
|
1302
|
+
- spec/fixtures/approvals/publish_contract_with_validation_error.approved.json
|
1303
|
+
- spec/fixtures/approvals/publish_contracts_results_decorator.approved.json
|
1193
1304
|
- spec/fixtures/certificate-invalid.pem
|
1194
1305
|
- spec/fixtures/certificate.pem
|
1195
1306
|
- spec/fixtures/certificates/cacert.pem
|
@@ -1215,7 +1326,11 @@ files:
|
|
1215
1326
|
- spec/lib/pact/doc/interaction_view_model_spec.rb
|
1216
1327
|
- spec/lib/pact/doc/markdown/consumer_contract_renderer_spec.rb
|
1217
1328
|
- spec/lib/pact/doc/markdown/index_renderer_spec.rb
|
1329
|
+
- spec/lib/pact_broker/api/contracts/environment_schema_spec.rb
|
1330
|
+
- spec/lib/pact_broker/api/contracts/pacticipant_schema_spec.rb
|
1331
|
+
- spec/lib/pact_broker/api/contracts/publish_contracts_schema_spec.rb
|
1218
1332
|
- spec/lib/pact_broker/api/contracts/put_pact_params_contract_spec.rb
|
1333
|
+
- spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_combinations_spec.rb
|
1219
1334
|
- spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_spec.rb
|
1220
1335
|
- spec/lib/pact_broker/api/contracts/verifiable_pacts_query_schema_spec.rb
|
1221
1336
|
- spec/lib/pact_broker/api/contracts/verification_contract_spec.rb
|
@@ -1237,6 +1352,7 @@ files:
|
|
1237
1352
|
- spec/lib/pact_broker/api/decorators/pacticipant_collection_decorator_spec.rb
|
1238
1353
|
- spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb
|
1239
1354
|
- spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb
|
1355
|
+
- spec/lib/pact_broker/api/decorators/publish_contracts_results_decorator_spec.rb
|
1240
1356
|
- spec/lib/pact_broker/api/decorators/reason_decorator_spec.rb
|
1241
1357
|
- spec/lib/pact_broker/api/decorators/relationships_csv_decorator_spec.rb
|
1242
1358
|
- spec/lib/pact_broker/api/decorators/representable_pact_spec.rb
|
@@ -1276,18 +1392,20 @@ files:
|
|
1276
1392
|
- spec/lib/pact_broker/api/resources/pact_spec.rb
|
1277
1393
|
- spec/lib/pact_broker/api/resources/pact_triggered_webhooks_spec.rb
|
1278
1394
|
- spec/lib/pact_broker/api/resources/pacticipant_spec.rb
|
1395
|
+
- spec/lib/pact_broker/api/resources/pacticipant_webhooks_spec.rb
|
1279
1396
|
- spec/lib/pact_broker/api/resources/pacticipants_spec.rb
|
1280
1397
|
- spec/lib/pact_broker/api/resources/provider_pacts_for_verification_spec.rb
|
1281
1398
|
- spec/lib/pact_broker/api/resources/provider_pacts_spec.rb
|
1399
|
+
- spec/lib/pact_broker/api/resources/released_version_spec.rb
|
1282
1400
|
- spec/lib/pact_broker/api/resources/tag_spec.rb
|
1283
1401
|
- spec/lib/pact_broker/api/resources/tagged_pact_versions_spec.rb
|
1284
1402
|
- spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
|
1285
1403
|
- spec/lib/pact_broker/api/resources/verification_spec.rb
|
1286
1404
|
- spec/lib/pact_broker/api/resources/verification_triggered_webhooks_spec.rb
|
1287
1405
|
- spec/lib/pact_broker/api/resources/verifications_spec.rb
|
1406
|
+
- spec/lib/pact_broker/api/resources/webhook_execution_result_spec.rb
|
1288
1407
|
- spec/lib/pact_broker/api/resources/webhook_execution_spec.rb
|
1289
1408
|
- spec/lib/pact_broker/api/resources/webhook_spec.rb
|
1290
|
-
- spec/lib/pact_broker/api/resources/webhooks_spec.rb
|
1291
1409
|
- spec/lib/pact_broker/app_spec.rb
|
1292
1410
|
- spec/lib/pact_broker/badges/service_spec.rb
|
1293
1411
|
- spec/lib/pact_broker/build_http_options_spec.rb
|
@@ -1298,15 +1416,20 @@ files:
|
|
1298
1416
|
- spec/lib/pact_broker/config/space_delimited_integer_list_spec.rb
|
1299
1417
|
- spec/lib/pact_broker/config/space_delimited_string_list_spec.rb
|
1300
1418
|
- spec/lib/pact_broker/configuration_spec.rb
|
1419
|
+
- spec/lib/pact_broker/contracts/service_spec.rb
|
1301
1420
|
- spec/lib/pact_broker/db/clean_incremental_spec.rb
|
1302
1421
|
- spec/lib/pact_broker/db/clean_old_spec.rb
|
1303
1422
|
- spec/lib/pact_broker/db/clean_spec.rb
|
1304
1423
|
- spec/lib/pact_broker/db/data_migrations/migrate_webhook_headers_spec.rb
|
1305
1424
|
- spec/lib/pact_broker/db/data_migrations/set_consumer_ids_for_pact_publications_spec.rb
|
1306
1425
|
- spec/lib/pact_broker/db/data_migrations/set_latest_version_sequence_value_spec.rb
|
1426
|
+
- spec/lib/pact_broker/db/data_migrations/set_pacticipant_main_branch_spec.rb
|
1307
1427
|
- spec/lib/pact_broker/db/delete_overwritten_data_spec.rb
|
1308
1428
|
- spec/lib/pact_broker/db/log_quietener_spec.rb
|
1309
1429
|
- spec/lib/pact_broker/db/validate_encoding_spec.rb
|
1430
|
+
- spec/lib/pact_broker/deployments/deployed_version_spec.rb
|
1431
|
+
- spec/lib/pact_broker/deployments/environment_service_spec.rb
|
1432
|
+
- spec/lib/pact_broker/deployments/environment_spec.rb
|
1310
1433
|
- spec/lib/pact_broker/diagnostic/resources/dependencies_spec.rb
|
1311
1434
|
- spec/lib/pact_broker/diagnostic/resources/heartbeat_spec.rb
|
1312
1435
|
- spec/lib/pact_broker/doc/controllers/app_spec.rb
|
@@ -1315,7 +1438,6 @@ files:
|
|
1315
1438
|
- spec/lib/pact_broker/domain/index_item_spec.rb
|
1316
1439
|
- spec/lib/pact_broker/domain/order_versions_spec.rb
|
1317
1440
|
- spec/lib/pact_broker/domain/pact_spec.rb
|
1318
|
-
- spec/lib/pact_broker/domain/pacticipant_spec.rb
|
1319
1441
|
- spec/lib/pact_broker/domain/tag_spec.rb
|
1320
1442
|
- spec/lib/pact_broker/domain/verification_spec.rb
|
1321
1443
|
- spec/lib/pact_broker/domain/version_spec.rb
|
@@ -1323,6 +1445,7 @@ files:
|
|
1323
1445
|
- spec/lib/pact_broker/domain/webhook_spec.rb
|
1324
1446
|
- spec/lib/pact_broker/errors/error_logger_spec.rb
|
1325
1447
|
- spec/lib/pact_broker/errors_spec.rb
|
1448
|
+
- spec/lib/pact_broker/events/subscriber_spec.rb
|
1326
1449
|
- spec/lib/pact_broker/feature_toggle_spec.rb
|
1327
1450
|
- spec/lib/pact_broker/groups/service_spec.rb
|
1328
1451
|
- spec/lib/pact_broker/hash_refinements_spec.rb
|
@@ -1332,10 +1455,14 @@ files:
|
|
1332
1455
|
- spec/lib/pact_broker/labels/repository_spec.rb
|
1333
1456
|
- spec/lib/pact_broker/labels/service_spec.rb
|
1334
1457
|
- spec/lib/pact_broker/matrix/aggregated_row_spec.rb
|
1458
|
+
- spec/lib/pact_broker/matrix/can_i_deploy_query_schema_spec.rb
|
1335
1459
|
- spec/lib/pact_broker/matrix/deployment_status_summary_spec.rb
|
1336
1460
|
- spec/lib/pact_broker/matrix/every_row_spec.rb
|
1337
1461
|
- spec/lib/pact_broker/matrix/head_row_spec.rb
|
1462
|
+
- spec/lib/pact_broker/matrix/integration_environment_spec.rb
|
1463
|
+
- spec/lib/pact_broker/matrix/integration_ignore_spec.rb
|
1338
1464
|
- spec/lib/pact_broker/matrix/integration_spec.rb
|
1465
|
+
- spec/lib/pact_broker/matrix/parse_can_i_deploy_query_spec.rb
|
1339
1466
|
- spec/lib/pact_broker/matrix/parse_query_spec.rb
|
1340
1467
|
- spec/lib/pact_broker/matrix/quick_row_spec.rb
|
1341
1468
|
- spec/lib/pact_broker/matrix/repository_dependency_spec.rb
|
@@ -1346,6 +1473,7 @@ files:
|
|
1346
1473
|
- spec/lib/pact_broker/messages_spec.rb
|
1347
1474
|
- spec/lib/pact_broker/metrics/service_spec.rb
|
1348
1475
|
- spec/lib/pact_broker/pacticipants/find_potential_duplicate_pacticipant_names_spec.rb
|
1476
|
+
- spec/lib/pact_broker/pacticipants/generate_display_name_spec.rb
|
1349
1477
|
- spec/lib/pact_broker/pacticipants/repository_spec.rb
|
1350
1478
|
- spec/lib/pact_broker/pacticipants/service_spec.rb
|
1351
1479
|
- spec/lib/pact_broker/pacts/build_verifiable_pact_notices_spec.rb
|
@@ -1359,8 +1487,11 @@ files:
|
|
1359
1487
|
- spec/lib/pact_broker/pacts/metadata_spec.rb
|
1360
1488
|
- spec/lib/pact_broker/pacts/pact_params_spec.rb
|
1361
1489
|
- spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb
|
1490
|
+
- spec/lib/pact_broker/pacts/pact_publication_selector_dataset_module_spec.rb
|
1362
1491
|
- spec/lib/pact_broker/pacts/pact_publication_spec.rb
|
1363
1492
|
- spec/lib/pact_broker/pacts/pact_version_spec.rb
|
1493
|
+
- spec/lib/pact_broker/pacts/repository_find_for_currently_deployed_spec.rb
|
1494
|
+
- spec/lib/pact_broker/pacts/repository_find_for_currently_supported_releases_spec.rb
|
1364
1495
|
- spec/lib/pact_broker/pacts/repository_find_for_verification_fallback_spec.rb
|
1365
1496
|
- spec/lib/pact_broker/pacts/repository_find_for_verification_spec.rb
|
1366
1497
|
- spec/lib/pact_broker/pacts/repository_find_wip_pact_versions_for_provider_branch_spec.rb
|
@@ -1383,6 +1514,7 @@ files:
|
|
1383
1514
|
- spec/lib/pact_broker/ui/controllers/index_spec.rb
|
1384
1515
|
- spec/lib/pact_broker/ui/view_models/index_item_spec.rb
|
1385
1516
|
- spec/lib/pact_broker/ui/view_models/index_items_spec.rb
|
1517
|
+
- spec/lib/pact_broker/ui/view_models/matrix_deployed_version_spec.rb
|
1386
1518
|
- spec/lib/pact_broker/ui/view_models/matrix_line_spec.rb
|
1387
1519
|
- spec/lib/pact_broker/verifications/pseudo_branch_status_spec.rb
|
1388
1520
|
- spec/lib/pact_broker/verifications/repository_spec.rb
|
@@ -1396,6 +1528,7 @@ files:
|
|
1396
1528
|
- spec/lib/pact_broker/webhooks/check_host_whitelist_spec.rb
|
1397
1529
|
- spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
|
1398
1530
|
- spec/lib/pact_broker/webhooks/job_spec.rb
|
1531
|
+
- spec/lib/pact_broker/webhooks/pact_and_verification_parameters_spec.rb
|
1399
1532
|
- spec/lib/pact_broker/webhooks/redact_logs_spec.rb
|
1400
1533
|
- spec/lib/pact_broker/webhooks/render_spec.rb
|
1401
1534
|
- spec/lib/pact_broker/webhooks/repository_spec.rb
|
@@ -1411,6 +1544,7 @@ files:
|
|
1411
1544
|
- spec/lib/rack/pact_broker/database_transaction_spec.rb
|
1412
1545
|
- spec/lib/rack/pact_broker/invalid_uri_protection_spec.rb
|
1413
1546
|
- spec/lib/rack/pact_broker/request_target_spec.rb
|
1547
|
+
- spec/lib/rack/pact_broker/set_base_url_spec.rb
|
1414
1548
|
- spec/lib/rack/pact_broker/use_when_spec.rb
|
1415
1549
|
- spec/lib/sequel/plugins/insert_ignore_spec.rb
|
1416
1550
|
- spec/lib/sequel/plugins/upsert_spec.rb
|
@@ -1429,6 +1563,7 @@ files:
|
|
1429
1563
|
- spec/service_consumers/hal_relation_proxy_app.rb
|
1430
1564
|
- spec/service_consumers/pact_helper.rb
|
1431
1565
|
- spec/service_consumers/provider_states_for_pact_broker_client.rb
|
1566
|
+
- spec/service_consumers/provider_states_for_pact_broker_client_2.rb
|
1432
1567
|
- spec/service_consumers/provider_states_for_pact_ruby.rb
|
1433
1568
|
- spec/spec_helper.rb
|
1434
1569
|
- spec/support/approvals.rb
|
@@ -1448,6 +1583,7 @@ files:
|
|
1448
1583
|
- spec/support/markdown_pact_with_markdown_chars_in_names.json
|
1449
1584
|
- spec/support/metadata_test_server.rb
|
1450
1585
|
- spec/support/migration_helpers.rb
|
1586
|
+
- spec/support/rack_helpers.rb
|
1451
1587
|
- spec/support/rspec_match_hash.rb
|
1452
1588
|
- spec/support/rspec_matchers.rb
|
1453
1589
|
- spec/support/shared_context.rb
|
@@ -1529,16 +1665,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1529
1665
|
- !ruby/object:Gem::Version
|
1530
1666
|
version: '0'
|
1531
1667
|
requirements: []
|
1532
|
-
rubygems_version: 3.2.
|
1668
|
+
rubygems_version: 3.2.21
|
1533
1669
|
signing_key:
|
1534
1670
|
specification_version: 4
|
1535
1671
|
summary: See description
|
1536
1672
|
test_files:
|
1537
1673
|
- spec/features/base_equality_only_on_content_that_affects_verification_results_spec.rb
|
1538
1674
|
- spec/features/can_i_deploy_spec.rb
|
1675
|
+
- spec/features/create_environment_spec.rb
|
1539
1676
|
- spec/features/create_pacticipant_spec.rb
|
1677
|
+
- spec/features/create_tag_spec.rb
|
1540
1678
|
- spec/features/create_version_spec.rb
|
1541
1679
|
- spec/features/create_webhook_spec.rb
|
1680
|
+
- spec/features/delete_environment_spec.rb
|
1542
1681
|
- spec/features/delete_integration_spec.rb
|
1543
1682
|
- spec/features/delete_label_spec.rb
|
1544
1683
|
- spec/features/delete_pact_spec.rb
|
@@ -1548,11 +1687,19 @@ test_files:
|
|
1548
1687
|
- spec/features/delete_version_spec.rb
|
1549
1688
|
- spec/features/delete_webhook_spec.rb
|
1550
1689
|
- spec/features/edit_webhook_spec.rb
|
1690
|
+
- spec/features/end_deployment_spec.rb
|
1691
|
+
- spec/features/end_support_spec.rb
|
1551
1692
|
- spec/features/execute_unsaved_webhook_spec.rb
|
1552
1693
|
- spec/features/execute_webhook_spec.rb
|
1553
1694
|
- spec/features/get_can_i_deploy_badge_spec.rb
|
1695
|
+
- spec/features/get_currently_deployed_versions_for_environment_spec.rb
|
1696
|
+
- spec/features/get_currently_deployed_versions_for_version_spec.rb
|
1697
|
+
- spec/features/get_currently_supported_versions_for_environment_spec.rb
|
1554
1698
|
- spec/features/get_dashboard_spec.rb
|
1699
|
+
- spec/features/get_deployed_versions_for_version_and_environment.rb
|
1555
1700
|
- spec/features/get_diff_spec.rb
|
1701
|
+
- spec/features/get_environment_spec.rb
|
1702
|
+
- spec/features/get_environments_spec.rb
|
1556
1703
|
- spec/features/get_integrations_dot_file_spec.rb
|
1557
1704
|
- spec/features/get_integrations_spec.rb
|
1558
1705
|
- spec/features/get_label_spec.rb
|
@@ -1572,6 +1719,7 @@ test_files:
|
|
1572
1719
|
- spec/features/get_previous_distinct_version.rb
|
1573
1720
|
- spec/features/get_provider_pacts_for_verification_spec.rb
|
1574
1721
|
- spec/features/get_provider_pacts_spec.rb
|
1722
|
+
- spec/features/get_released_versions_for_version_and_environment.rb
|
1575
1723
|
- spec/features/get_tagged_pact_versions_spec.rb
|
1576
1724
|
- spec/features/get_triggered_webhooks_for_pact_spec.rb
|
1577
1725
|
- spec/features/get_triggered_webhooks_for_verification_spec.rb
|
@@ -1582,12 +1730,20 @@ test_files:
|
|
1582
1730
|
- spec/features/merge_pact_spec.rb
|
1583
1731
|
- spec/features/metrics_spec.rb
|
1584
1732
|
- spec/features/pending_pacts_spec.rb
|
1733
|
+
- spec/features/pending_pacts_with_tags_spec.rb
|
1585
1734
|
- spec/features/publish_not_a_pact_spec.rb
|
1735
|
+
- spec/features/publish_pact_all_in_one_approval_spec.rb
|
1736
|
+
- spec/features/publish_pact_all_in_one_spec.rb
|
1586
1737
|
- spec/features/publish_pact_spec.rb
|
1587
1738
|
- spec/features/publish_verification_spec.rb
|
1739
|
+
- spec/features/record_deployment_spec.rb
|
1740
|
+
- spec/features/record_release_spec.rb
|
1741
|
+
- spec/features/record_undeployment_spec.rb
|
1588
1742
|
- spec/features/tag_version_spec.rb
|
1743
|
+
- spec/features/update_environment_spec.rb
|
1589
1744
|
- spec/features/update_matrix_spec.rb
|
1590
1745
|
- spec/features/update_pacticipant_spec.rb
|
1746
|
+
- spec/features/update_version_spec.rb
|
1591
1747
|
- spec/features/update_webhook_spec.rb
|
1592
1748
|
- spec/features/wip_pacts_spec.rb
|
1593
1749
|
- spec/fixtures/a_consumer-a_provider-2.json
|
@@ -1596,7 +1752,14 @@ test_files:
|
|
1596
1752
|
- spec/fixtures/a_consumer-a_provider-merged.json
|
1597
1753
|
- spec/fixtures/a_consumer-a_provider.json
|
1598
1754
|
- spec/fixtures/approvals/clean_incremental_dry_run.approved.json
|
1755
|
+
- spec/fixtures/approvals/get_provider_pacts_for_verification.approved.json
|
1599
1756
|
- spec/fixtures/approvals/modifiable_resources.approved.json
|
1757
|
+
- spec/fixtures/approvals/publish_contract_no_branch.approved.json
|
1758
|
+
- spec/fixtures/approvals/publish_contract_nothing_exists.approved.json
|
1759
|
+
- spec/fixtures/approvals/publish_contract_nothing_exists_with_webhook.approved.json
|
1760
|
+
- spec/fixtures/approvals/publish_contract_verification_already_exists.approved.json
|
1761
|
+
- spec/fixtures/approvals/publish_contract_with_validation_error.approved.json
|
1762
|
+
- spec/fixtures/approvals/publish_contracts_results_decorator.approved.json
|
1600
1763
|
- spec/fixtures/certificate-invalid.pem
|
1601
1764
|
- spec/fixtures/certificate.pem
|
1602
1765
|
- spec/fixtures/certificates/cacert.pem
|
@@ -1622,7 +1785,11 @@ test_files:
|
|
1622
1785
|
- spec/lib/pact/doc/interaction_view_model_spec.rb
|
1623
1786
|
- spec/lib/pact/doc/markdown/consumer_contract_renderer_spec.rb
|
1624
1787
|
- spec/lib/pact/doc/markdown/index_renderer_spec.rb
|
1788
|
+
- spec/lib/pact_broker/api/contracts/environment_schema_spec.rb
|
1789
|
+
- spec/lib/pact_broker/api/contracts/pacticipant_schema_spec.rb
|
1790
|
+
- spec/lib/pact_broker/api/contracts/publish_contracts_schema_spec.rb
|
1625
1791
|
- spec/lib/pact_broker/api/contracts/put_pact_params_contract_spec.rb
|
1792
|
+
- spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_combinations_spec.rb
|
1626
1793
|
- spec/lib/pact_broker/api/contracts/verifiable_pacts_json_query_schema_spec.rb
|
1627
1794
|
- spec/lib/pact_broker/api/contracts/verifiable_pacts_query_schema_spec.rb
|
1628
1795
|
- spec/lib/pact_broker/api/contracts/verification_contract_spec.rb
|
@@ -1644,6 +1811,7 @@ test_files:
|
|
1644
1811
|
- spec/lib/pact_broker/api/decorators/pacticipant_collection_decorator_spec.rb
|
1645
1812
|
- spec/lib/pact_broker/api/decorators/pacticipant_decorator_spec.rb
|
1646
1813
|
- spec/lib/pact_broker/api/decorators/provider_pacts_decorator_spec.rb
|
1814
|
+
- spec/lib/pact_broker/api/decorators/publish_contracts_results_decorator_spec.rb
|
1647
1815
|
- spec/lib/pact_broker/api/decorators/reason_decorator_spec.rb
|
1648
1816
|
- spec/lib/pact_broker/api/decorators/relationships_csv_decorator_spec.rb
|
1649
1817
|
- spec/lib/pact_broker/api/decorators/representable_pact_spec.rb
|
@@ -1683,18 +1851,20 @@ test_files:
|
|
1683
1851
|
- spec/lib/pact_broker/api/resources/pact_spec.rb
|
1684
1852
|
- spec/lib/pact_broker/api/resources/pact_triggered_webhooks_spec.rb
|
1685
1853
|
- spec/lib/pact_broker/api/resources/pacticipant_spec.rb
|
1854
|
+
- spec/lib/pact_broker/api/resources/pacticipant_webhooks_spec.rb
|
1686
1855
|
- spec/lib/pact_broker/api/resources/pacticipants_spec.rb
|
1687
1856
|
- spec/lib/pact_broker/api/resources/provider_pacts_for_verification_spec.rb
|
1688
1857
|
- spec/lib/pact_broker/api/resources/provider_pacts_spec.rb
|
1858
|
+
- spec/lib/pact_broker/api/resources/released_version_spec.rb
|
1689
1859
|
- spec/lib/pact_broker/api/resources/tag_spec.rb
|
1690
1860
|
- spec/lib/pact_broker/api/resources/tagged_pact_versions_spec.rb
|
1691
1861
|
- spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
|
1692
1862
|
- spec/lib/pact_broker/api/resources/verification_spec.rb
|
1693
1863
|
- spec/lib/pact_broker/api/resources/verification_triggered_webhooks_spec.rb
|
1694
1864
|
- spec/lib/pact_broker/api/resources/verifications_spec.rb
|
1865
|
+
- spec/lib/pact_broker/api/resources/webhook_execution_result_spec.rb
|
1695
1866
|
- spec/lib/pact_broker/api/resources/webhook_execution_spec.rb
|
1696
1867
|
- spec/lib/pact_broker/api/resources/webhook_spec.rb
|
1697
|
-
- spec/lib/pact_broker/api/resources/webhooks_spec.rb
|
1698
1868
|
- spec/lib/pact_broker/app_spec.rb
|
1699
1869
|
- spec/lib/pact_broker/badges/service_spec.rb
|
1700
1870
|
- spec/lib/pact_broker/build_http_options_spec.rb
|
@@ -1705,15 +1875,20 @@ test_files:
|
|
1705
1875
|
- spec/lib/pact_broker/config/space_delimited_integer_list_spec.rb
|
1706
1876
|
- spec/lib/pact_broker/config/space_delimited_string_list_spec.rb
|
1707
1877
|
- spec/lib/pact_broker/configuration_spec.rb
|
1878
|
+
- spec/lib/pact_broker/contracts/service_spec.rb
|
1708
1879
|
- spec/lib/pact_broker/db/clean_incremental_spec.rb
|
1709
1880
|
- spec/lib/pact_broker/db/clean_old_spec.rb
|
1710
1881
|
- spec/lib/pact_broker/db/clean_spec.rb
|
1711
1882
|
- spec/lib/pact_broker/db/data_migrations/migrate_webhook_headers_spec.rb
|
1712
1883
|
- spec/lib/pact_broker/db/data_migrations/set_consumer_ids_for_pact_publications_spec.rb
|
1713
1884
|
- spec/lib/pact_broker/db/data_migrations/set_latest_version_sequence_value_spec.rb
|
1885
|
+
- spec/lib/pact_broker/db/data_migrations/set_pacticipant_main_branch_spec.rb
|
1714
1886
|
- spec/lib/pact_broker/db/delete_overwritten_data_spec.rb
|
1715
1887
|
- spec/lib/pact_broker/db/log_quietener_spec.rb
|
1716
1888
|
- spec/lib/pact_broker/db/validate_encoding_spec.rb
|
1889
|
+
- spec/lib/pact_broker/deployments/deployed_version_spec.rb
|
1890
|
+
- spec/lib/pact_broker/deployments/environment_service_spec.rb
|
1891
|
+
- spec/lib/pact_broker/deployments/environment_spec.rb
|
1717
1892
|
- spec/lib/pact_broker/diagnostic/resources/dependencies_spec.rb
|
1718
1893
|
- spec/lib/pact_broker/diagnostic/resources/heartbeat_spec.rb
|
1719
1894
|
- spec/lib/pact_broker/doc/controllers/app_spec.rb
|
@@ -1722,7 +1897,6 @@ test_files:
|
|
1722
1897
|
- spec/lib/pact_broker/domain/index_item_spec.rb
|
1723
1898
|
- spec/lib/pact_broker/domain/order_versions_spec.rb
|
1724
1899
|
- spec/lib/pact_broker/domain/pact_spec.rb
|
1725
|
-
- spec/lib/pact_broker/domain/pacticipant_spec.rb
|
1726
1900
|
- spec/lib/pact_broker/domain/tag_spec.rb
|
1727
1901
|
- spec/lib/pact_broker/domain/verification_spec.rb
|
1728
1902
|
- spec/lib/pact_broker/domain/version_spec.rb
|
@@ -1730,6 +1904,7 @@ test_files:
|
|
1730
1904
|
- spec/lib/pact_broker/domain/webhook_spec.rb
|
1731
1905
|
- spec/lib/pact_broker/errors/error_logger_spec.rb
|
1732
1906
|
- spec/lib/pact_broker/errors_spec.rb
|
1907
|
+
- spec/lib/pact_broker/events/subscriber_spec.rb
|
1733
1908
|
- spec/lib/pact_broker/feature_toggle_spec.rb
|
1734
1909
|
- spec/lib/pact_broker/groups/service_spec.rb
|
1735
1910
|
- spec/lib/pact_broker/hash_refinements_spec.rb
|
@@ -1739,10 +1914,14 @@ test_files:
|
|
1739
1914
|
- spec/lib/pact_broker/labels/repository_spec.rb
|
1740
1915
|
- spec/lib/pact_broker/labels/service_spec.rb
|
1741
1916
|
- spec/lib/pact_broker/matrix/aggregated_row_spec.rb
|
1917
|
+
- spec/lib/pact_broker/matrix/can_i_deploy_query_schema_spec.rb
|
1742
1918
|
- spec/lib/pact_broker/matrix/deployment_status_summary_spec.rb
|
1743
1919
|
- spec/lib/pact_broker/matrix/every_row_spec.rb
|
1744
1920
|
- spec/lib/pact_broker/matrix/head_row_spec.rb
|
1921
|
+
- spec/lib/pact_broker/matrix/integration_environment_spec.rb
|
1922
|
+
- spec/lib/pact_broker/matrix/integration_ignore_spec.rb
|
1745
1923
|
- spec/lib/pact_broker/matrix/integration_spec.rb
|
1924
|
+
- spec/lib/pact_broker/matrix/parse_can_i_deploy_query_spec.rb
|
1746
1925
|
- spec/lib/pact_broker/matrix/parse_query_spec.rb
|
1747
1926
|
- spec/lib/pact_broker/matrix/quick_row_spec.rb
|
1748
1927
|
- spec/lib/pact_broker/matrix/repository_dependency_spec.rb
|
@@ -1753,6 +1932,7 @@ test_files:
|
|
1753
1932
|
- spec/lib/pact_broker/messages_spec.rb
|
1754
1933
|
- spec/lib/pact_broker/metrics/service_spec.rb
|
1755
1934
|
- spec/lib/pact_broker/pacticipants/find_potential_duplicate_pacticipant_names_spec.rb
|
1935
|
+
- spec/lib/pact_broker/pacticipants/generate_display_name_spec.rb
|
1756
1936
|
- spec/lib/pact_broker/pacticipants/repository_spec.rb
|
1757
1937
|
- spec/lib/pact_broker/pacticipants/service_spec.rb
|
1758
1938
|
- spec/lib/pact_broker/pacts/build_verifiable_pact_notices_spec.rb
|
@@ -1766,8 +1946,11 @@ test_files:
|
|
1766
1946
|
- spec/lib/pact_broker/pacts/metadata_spec.rb
|
1767
1947
|
- spec/lib/pact_broker/pacts/pact_params_spec.rb
|
1768
1948
|
- spec/lib/pact_broker/pacts/pact_publication_dataset_module_spec.rb
|
1949
|
+
- spec/lib/pact_broker/pacts/pact_publication_selector_dataset_module_spec.rb
|
1769
1950
|
- spec/lib/pact_broker/pacts/pact_publication_spec.rb
|
1770
1951
|
- spec/lib/pact_broker/pacts/pact_version_spec.rb
|
1952
|
+
- spec/lib/pact_broker/pacts/repository_find_for_currently_deployed_spec.rb
|
1953
|
+
- spec/lib/pact_broker/pacts/repository_find_for_currently_supported_releases_spec.rb
|
1771
1954
|
- spec/lib/pact_broker/pacts/repository_find_for_verification_fallback_spec.rb
|
1772
1955
|
- spec/lib/pact_broker/pacts/repository_find_for_verification_spec.rb
|
1773
1956
|
- spec/lib/pact_broker/pacts/repository_find_wip_pact_versions_for_provider_branch_spec.rb
|
@@ -1790,6 +1973,7 @@ test_files:
|
|
1790
1973
|
- spec/lib/pact_broker/ui/controllers/index_spec.rb
|
1791
1974
|
- spec/lib/pact_broker/ui/view_models/index_item_spec.rb
|
1792
1975
|
- spec/lib/pact_broker/ui/view_models/index_items_spec.rb
|
1976
|
+
- spec/lib/pact_broker/ui/view_models/matrix_deployed_version_spec.rb
|
1793
1977
|
- spec/lib/pact_broker/ui/view_models/matrix_line_spec.rb
|
1794
1978
|
- spec/lib/pact_broker/verifications/pseudo_branch_status_spec.rb
|
1795
1979
|
- spec/lib/pact_broker/verifications/repository_spec.rb
|
@@ -1803,6 +1987,7 @@ test_files:
|
|
1803
1987
|
- spec/lib/pact_broker/webhooks/check_host_whitelist_spec.rb
|
1804
1988
|
- spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
|
1805
1989
|
- spec/lib/pact_broker/webhooks/job_spec.rb
|
1990
|
+
- spec/lib/pact_broker/webhooks/pact_and_verification_parameters_spec.rb
|
1806
1991
|
- spec/lib/pact_broker/webhooks/redact_logs_spec.rb
|
1807
1992
|
- spec/lib/pact_broker/webhooks/render_spec.rb
|
1808
1993
|
- spec/lib/pact_broker/webhooks/repository_spec.rb
|
@@ -1818,6 +2003,7 @@ test_files:
|
|
1818
2003
|
- spec/lib/rack/pact_broker/database_transaction_spec.rb
|
1819
2004
|
- spec/lib/rack/pact_broker/invalid_uri_protection_spec.rb
|
1820
2005
|
- spec/lib/rack/pact_broker/request_target_spec.rb
|
2006
|
+
- spec/lib/rack/pact_broker/set_base_url_spec.rb
|
1821
2007
|
- spec/lib/rack/pact_broker/use_when_spec.rb
|
1822
2008
|
- spec/lib/sequel/plugins/insert_ignore_spec.rb
|
1823
2009
|
- spec/lib/sequel/plugins/upsert_spec.rb
|
@@ -1836,6 +2022,7 @@ test_files:
|
|
1836
2022
|
- spec/service_consumers/hal_relation_proxy_app.rb
|
1837
2023
|
- spec/service_consumers/pact_helper.rb
|
1838
2024
|
- spec/service_consumers/provider_states_for_pact_broker_client.rb
|
2025
|
+
- spec/service_consumers/provider_states_for_pact_broker_client_2.rb
|
1839
2026
|
- spec/service_consumers/provider_states_for_pact_ruby.rb
|
1840
2027
|
- spec/spec_helper.rb
|
1841
2028
|
- spec/support/approvals.rb
|
@@ -1855,6 +2042,7 @@ test_files:
|
|
1855
2042
|
- spec/support/markdown_pact_with_markdown_chars_in_names.json
|
1856
2043
|
- spec/support/metadata_test_server.rb
|
1857
2044
|
- spec/support/migration_helpers.rb
|
2045
|
+
- spec/support/rack_helpers.rb
|
1858
2046
|
- spec/support/rspec_match_hash.rb
|
1859
2047
|
- spec/support/rspec_matchers.rb
|
1860
2048
|
- spec/support/shared_context.rb
|