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