Skip to content
代码片段 群组 项目
未验证 提交 597f0f94 编辑于 作者: Dan Davison's avatar Dan Davison 提交者: GitLab
浏览文件

Merge branch 'hm-promote-auth-specs-reliable' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -16,7 +16,7 @@ module QA
end
it(
'can be used to create a file via the project API',
'can be used to create a file via the project API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/367064'
) do
expect do
......@@ -31,7 +31,7 @@ module QA
end
it(
'can be used to commit via the API',
'can be used to commit via the API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/367067'
) do
expect do
......
......@@ -14,7 +14,7 @@ module QA
end
context 'for the same project' do
it 'can be used to create a file via the project API',
it 'can be used to create a file via the project API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347858' do
expect do
create(:file,
......@@ -58,7 +58,7 @@ module QA
different_project.remove_via_api!
end
it 'cannot be used to create a file via the project API',
it 'cannot be used to create a file via the project API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347860' do
expect do
create(:file,
......@@ -68,7 +68,7 @@ module QA
end.to raise_error(Resource::ApiFabricator::ResourceFabricationFailedError, /403 Forbidden/)
end
it 'cannot be used to commit via the API',
it 'cannot be used to commit via the API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347861' do
expect do
create(:commit,
......
......@@ -6,7 +6,7 @@ module QA
let(:group_access_token) { QA::Resource::GroupAccessToken.fabricate_via_browser_ui! }
it(
'can be created and revoked via the UI',
'can be created and revoked via the UI', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/367044'
) do
expect(group_access_token.token).not_to be_nil
......
......@@ -8,7 +8,7 @@ module QA
let!(:user) { create(:user, :hard_delete, api_client: admin_api_client) }
it(
'can be created and revoked via the UI',
'can be created and revoked via the UI', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/368888'
) do
impersonation_token = QA::Resource::ImpersonationToken.fabricate_via_browser_ui! do |impersonation_token|
......
......@@ -41,7 +41,7 @@ module QA
end.to raise_error(QA::Support::Run::CommandError, /You are not allowed to push code to this project/)
end
it 'is not allowed to create a file via the API',
it 'is not allowed to create a file via the API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347874' do
expect do
create(:file,
......@@ -51,7 +51,7 @@ module QA
end.to raise_error(Resource::ApiFabricator::ResourceFabricationFailedError, /403 Forbidden/)
end
it 'is not allowed to commit via the API',
it 'is not allowed to commit via the API', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347652' do
expect do
Resource::Repository::Commit.fabricate_via_api! do |commit|
......
......@@ -31,7 +31,7 @@ module QA
end
end
it 'is not allowed to edit files via the UI',
it 'is not allowed to edit files via the UI', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347869' do
Flow::Login.sign_in(as: user_with_minimal_access)
project.visit!
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册