diff options
author | Zeff Morgan <zmorgan@gitlab.com> | 2019-03-20 14:51:20 -0400 |
---|---|---|
committer | Zeff Morgan <zmorgan@gitlab.com> | 2019-04-02 15:41:37 -0400 |
commit | 86461f9fe8da4d1eae5c451c6bc6820bb757e7fc (patch) | |
tree | aa37713739f5fa1f0571a95809ce3570737b8d5d | |
parent | 3d24e7225ea01d5a4f8398b7626eee77a904b8dc (diff) | |
download | gitlab-ce-pipeline_smoke_test.tar.gz |
Add basic pipeline smoke testpipeline_smoke_test
-rw-r--r-- | qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb index 7c1d4489c47..4246d324a96 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb @@ -9,7 +9,7 @@ module QA Service::Runner.new(executor).remove! end - it 'users creates a pipeline which gets processed' do + it 'user creates a pipeline which gets processed' do Runtime::Browser.visit(:gitlab, Page::Main::Login) Page::Main::Login.perform(&:sign_in_using_credentials) @@ -80,6 +80,41 @@ module QA expect(pipeline).to have_build('test-artifacts', status: :success) end end + + it 'user creates a pipeline which gets started', :smoke do + Runtime::Browser.visit(:gitlab, Page::Main::Login) + Page::Main::Login.act { sign_in_using_credentials } + + project = Resource::Project.fabricate! do |project| + project.name = 'project-with-pipeline' + project.description = 'Project with CI/CD Pipeline.' + end + + Resource::Runner.fabricate! do |runner| + runner.project = project + runner.name = executor + runner.tags = %w[qa test] + end + + Resource::Repository::ProjectPush.fabricate! do |push| + push.project = project + push.file_name = '.gitlab-ci.yml' + push.commit_message = 'Add .gitlab-ci.yml' + push.file_content = <<~EOF + test-running: + tags: + - qa + - test + script: echo 'running';sleep 10s;echo 'completed' + EOF + end + + Page::Project::Menu.act { click_ci_cd_pipelines } + Page::Project::Pipeline::Index.act { go_to_latest_pipeline } + Page::Project::Pipeline::Show.perform do |pipeline| + expect(pipeline).to be_running + end + end end end end |