Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/contracts/provider/pact_helpers/project/pipelines/new/post_create_a_new_pipeline_helper.rb')
-rw-r--r--spec/contracts/provider/pact_helpers/project/pipelines/new/post_create_a_new_pipeline_helper.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/contracts/provider/pact_helpers/project/pipelines/new/post_create_a_new_pipeline_helper.rb b/spec/contracts/provider/pact_helpers/project/pipelines/new/post_create_a_new_pipeline_helper.rb
new file mode 100644
index 00000000000..53e5ab61a20
--- /dev/null
+++ b/spec/contracts/provider/pact_helpers/project/pipelines/new/post_create_a_new_pipeline_helper.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+require_relative "../../../../spec_helper"
+require_relative "../../../../helpers/contract_source_helper"
+require_relative "../../../../helpers/publish_contract_helper"
+require_relative "../../../../states/project/pipelines/new_state"
+
+module Provider
+ module CreateNewPipelineHelper
+ Pact.service_provider "POST create a new pipeline" do
+ app { Environments::Test.app }
+
+ honours_pact_with "Pipelines#new" do
+ pact_uri Provider::ContractSourceHelper.contract_location(:spec, __FILE__)
+ end
+
+ Provider::PublishContractHelper.publish_contract_setup.call(
+ method(:app_version),
+ method(:app_version_branch),
+ method(:publish_verification_results)
+ )
+ end
+ end
+end