Commit 4c0ee6b2 authored by Sofia Vistas's avatar Sofia Vistas Committed by Ramya Authappan

Add install package check to conan test

parent d5edc1b6
...@@ -31,7 +31,7 @@ module QA ...@@ -31,7 +31,7 @@ module QA
runner.remove_via_api! runner.remove_via_api!
end end
it 'publishes a conan package and deletes it', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1077' do it 'publishes, installs, and deletes a Conan package', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1077' do
Flow::Login.sign_in Flow::Login.sign_in
Resource::Repository::Commit.fabricate_via_api! do |commit| Resource::Repository::Commit.fabricate_via_api! do |commit|
...@@ -43,13 +43,14 @@ module QA ...@@ -43,13 +43,14 @@ module QA
<<~YAML <<~YAML
image: conanio/gcc7 image: conanio/gcc7
create_package: test_package:
stage: deploy stage: deploy
script: script:
- "conan remote add gitlab #{gitlab_address_with_port}/api/v4/projects/#{project.id}/packages/conan" - "conan remote add gitlab #{gitlab_address_with_port}/api/v4/projects/#{project.id}/packages/conan"
- "conan new #{package_name}/0.1 -t" - "conan new #{package_name}/0.1 -t"
- "conan create . mycompany/stable" - "conan create . mycompany/stable"
- "CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload #{package_name}/0.1@mycompany/stable --all --remote=gitlab" - "CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload #{package_name}/0.1@mycompany/stable --all --remote=gitlab"
- "conan install conantest/0.1@mycompany/stable --remote=gitlab"
tags: tags:
- "runner-for-#{project.name}" - "runner-for-#{project.name}"
YAML YAML
...@@ -60,7 +61,7 @@ module QA ...@@ -60,7 +61,7 @@ module QA
Flow::Pipeline.visit_latest_pipeline Flow::Pipeline.visit_latest_pipeline
Page::Project::Pipeline::Show.perform do |pipeline| Page::Project::Pipeline::Show.perform do |pipeline|
pipeline.click_job('create_package') pipeline.click_job('test_package')
end end
Page::Project::Job::Show.perform do |job| Page::Project::Job::Show.perform do |job|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment