Skip to content
代码片段 群组 项目
提交 6f547686 编辑于 作者: Andrejs Cunskis's avatar Andrejs Cunskis
浏览文件

Merge branch 'am-add-more-source-code-tests-to-reliable' into 'master'

Promote 7 Source Code examples to reliable

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/138430



Merged-by: default avatarAndrejs Cunskis <acunskis@gitlab.com>
Approved-by: default avatarAndrejs Cunskis <acunskis@gitlab.com>
Approved-by: default avatarAndy Hohenner <ahohenner@gitlab.com>
Co-authored-by: default avatara_mcdonald <amcdonald@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -31,7 +31,7 @@ module QA ...@@ -31,7 +31,7 @@ module QA
end end
it( it(
'creates, retrieves and deletes branches', 'creates, retrieves and deletes branches', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347740' testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347740'
) do ) do
# Create branch # Create branch
......
...@@ -11,7 +11,8 @@ module QA ...@@ -11,7 +11,8 @@ module QA
Runtime::ApplicationSettings.restore_application_settings(:default_branch_name) Runtime::ApplicationSettings.restore_application_settings(:default_branch_name)
end end
it 'sets the default branch name for a new project', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347837' do it 'sets the default branch name for a new project', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347837' do
project = create(:project, :with_readme, name: 'default-branch-name') project = create(:project, :with_readme, name: 'default-branch-name')
# It takes a moment to create the project. We wait until we # It takes a moment to create the project. We wait until we
...@@ -27,7 +28,8 @@ module QA ...@@ -27,7 +28,8 @@ module QA
end end
end end
it 'allows a project to be created via the CLI with a different default branch name', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347838' do it 'allows a project to be created via the CLI with a different default branch name', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347838' do
project_name = "default-branch-name-via-cli-#{SecureRandom.hex(8)}" project_name = "default-branch-name-via-cli-#{SecureRandom.hex(8)}"
group = create(:group) group = create(:group)
......
...@@ -28,7 +28,8 @@ module QA ...@@ -28,7 +28,8 @@ module QA
end end
end end
it 'download archives of each user project then check they are different', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347748' do it 'download archives of each user project then check they are different', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347748' do
archive_checksums = {} archive_checksums = {}
users.each do |user_key, user_info| users.each do |user_key, user_info|
......
...@@ -28,7 +28,7 @@ module QA ...@@ -28,7 +28,7 @@ module QA
# #
# There are unit tests to verify the accuracy of GitLab's determination of repo size, so for this test we # There are unit tests to verify the accuracy of GitLab's determination of repo size, so for this test we
# attempt to detect large differences that could indicate a regression to previous behavior. # attempt to detect large differences that could indicate a regression to previous behavior.
it 'matches cloned repo usage to reported usage', it 'matches cloned repo usage to reported usage', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/365196' do testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/365196' do
project = create(:project, name: project_name) project = create(:project, name: project_name)
......
...@@ -14,7 +14,7 @@ module QA ...@@ -14,7 +14,7 @@ module QA
end end
it( it(
'push successful when the file size is under the limit', 'push successful when the file size is under the limit', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347758' testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347758'
) do ) do
set_file_size_limit(5) set_file_size_limit(5)
...@@ -27,7 +27,7 @@ module QA ...@@ -27,7 +27,7 @@ module QA
end end
it( it(
'push fails when the file size is above the limit', 'push fails when the file size is above the limit', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347759' testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347759'
) do ) do
set_file_size_limit(2) set_file_size_limit(2)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册