Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9af97a34
Commit
9af97a34
authored
Apr 21, 2021
by
Jacques Erasmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update master to main
Updated master to main
parent
0c171090
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
27 additions
and
27 deletions
+27
-27
spec/frontend/pipeline_new/components/pipeline_new_form_spec.js
...rontend/pipeline_new/components/pipeline_new_form_spec.js
+6
-6
spec/frontend/pipeline_new/components/refs_dropdown_spec.js
spec/frontend/pipeline_new/components/refs_dropdown_spec.js
+2
-2
spec/frontend/pipeline_new/mock_data.js
spec/frontend/pipeline_new/mock_data.js
+2
-2
spec/frontend/pipeline_new/utils/format_refs_spec.js
spec/frontend/pipeline_new/utils/format_refs_spec.js
+1
-1
spec/frontend/pipelines/components/pipelines_filtered_search_spec.js
...nd/pipelines/components/pipelines_filtered_search_spec.js
+1
-1
spec/frontend/pipelines/graph/linked_pipelines_mock_data.js
spec/frontend/pipelines/graph/linked_pipelines_mock_data.js
+2
-2
spec/frontend/pipelines/graph/mock_data_legacy.js
spec/frontend/pipelines/graph/mock_data_legacy.js
+4
-4
spec/frontend/pipelines/mock_data.js
spec/frontend/pipelines/mock_data.js
+3
-3
spec/frontend/pipelines/pipelines_ci_templates_spec.js
spec/frontend/pipelines/pipelines_ci_templates_spec.js
+1
-1
spec/frontend/pipelines/pipelines_spec.js
spec/frontend/pipelines/pipelines_spec.js
+2
-2
spec/frontend/pipelines/test_reports/test_case_details_spec.js
...frontend/pipelines/test_reports/test_case_details_spec.js
+1
-1
spec/frontend/pipelines/tokens/pipeline_branch_name_token_spec.js
...ntend/pipelines/tokens/pipeline_branch_name_token_spec.js
+1
-1
spec/frontend/pipelines/tokens/pipeline_tag_name_token_spec.js
...frontend/pipelines/tokens/pipeline_tag_name_token_spec.js
+1
-1
No files found.
spec/frontend/pipeline_new/components/pipeline_new_form_spec.js
View file @
9af97a34
...
...
@@ -17,7 +17,7 @@ const projectRefsEndpoint = '/root/project/refs';
const
pipelinesPath
=
'
/root/project/-/pipelines
'
;
const
configVariablesPath
=
'
/root/project/-/pipelines/config_variables
'
;
const
newPipelinePostResponse
=
{
id
:
1
};
const
defaultBranch
=
'
ma
ster
'
;
const
defaultBranch
=
'
ma
in
'
;
describe
(
'
Pipeline New Form
'
,
()
=>
{
let
wrapper
;
...
...
@@ -187,13 +187,13 @@ describe('Pipeline New Form', () => {
await
waitForPromises
();
});
it
(
'
variables persist between ref changes
'
,
async
()
=>
{
selectBranch
(
'
ma
ster
'
);
selectBranch
(
'
ma
in
'
);
await
waitForPromises
();
const
ma
ster
Input
=
findKeyInputs
().
at
(
0
);
ma
ster
Input
.
element
.
value
=
'
build_var
'
;
ma
ster
Input
.
trigger
(
'
change
'
);
const
ma
in
Input
=
findKeyInputs
().
at
(
0
);
ma
in
Input
.
element
.
value
=
'
build_var
'
;
ma
in
Input
.
trigger
(
'
change
'
);
await
wrapper
.
vm
.
$nextTick
();
...
...
@@ -207,7 +207,7 @@ describe('Pipeline New Form', () => {
await
wrapper
.
vm
.
$nextTick
();
selectBranch
(
'
ma
ster
'
);
selectBranch
(
'
ma
in
'
);
await
waitForPromises
();
...
...
spec/frontend/pipeline_new/components/refs_dropdown_spec.js
View file @
9af97a34
...
...
@@ -10,8 +10,8 @@ import RefsDropdown from '~/pipeline_new/components/refs_dropdown.vue';
import
{
mockRefs
,
mockFilteredRefs
}
from
'
../mock_data
'
;
const
projectRefsEndpoint
=
'
/root/project/refs
'
;
const
refShortName
=
'
ma
ster
'
;
const
refFullName
=
'
refs/heads/ma
ster
'
;
const
refShortName
=
'
ma
in
'
;
const
refFullName
=
'
refs/heads/ma
in
'
;
jest
.
mock
(
'
~/flash
'
);
...
...
spec/frontend/pipeline_new/mock_data.js
View file @
9af97a34
export
const
mockRefs
=
{
Branches
:
[
'
ma
ster
'
,
'
branch-1
'
,
'
branch-2
'
],
Branches
:
[
'
ma
in
'
,
'
branch-1
'
,
'
branch-2
'
],
Tags
:
[
'
1.0.0
'
,
'
1.1.0
'
,
'
1.2.0
'
],
};
...
...
@@ -40,6 +40,6 @@ export const mockError = {
total_warnings
:
7
,
};
export
const
mockBranchRefs
=
[
'
ma
ster
'
,
'
dev
'
,
'
release
'
];
export
const
mockBranchRefs
=
[
'
ma
in
'
,
'
dev
'
,
'
release
'
];
export
const
mockTagRefs
=
[
'
1.0.0
'
,
'
1.1.0
'
,
'
1.2.0
'
];
spec/frontend/pipeline_new/utils/format_refs_spec.js
View file @
9af97a34
...
...
@@ -5,7 +5,7 @@ import { mockBranchRefs, mockTagRefs } from '../mock_data';
describe
(
'
Format refs util
'
,
()
=>
{
it
(
'
formats branch ref correctly
'
,
()
=>
{
expect
(
formatRefs
(
mockBranchRefs
,
BRANCH_REF_TYPE
)).
toEqual
([
{
fullName
:
'
refs/heads/ma
ster
'
,
shortName
:
'
master
'
},
{
fullName
:
'
refs/heads/ma
in
'
,
shortName
:
'
main
'
},
{
fullName
:
'
refs/heads/dev
'
,
shortName
:
'
dev
'
},
{
fullName
:
'
refs/heads/release
'
,
shortName
:
'
release
'
},
]);
...
...
spec/frontend/pipelines/components/pipelines_filtered_search_spec.js
View file @
9af97a34
...
...
@@ -138,7 +138,7 @@ describe('Pipelines filtered search', () => {
describe
(
'
Url query params
'
,
()
=>
{
const
params
=
{
username
:
'
deja.green
'
,
ref
:
'
ma
ster
'
,
ref
:
'
ma
in
'
,
};
beforeEach
(()
=>
{
...
...
spec/frontend/pipelines/graph/linked_pipelines_mock_data.js
View file @
9af97a34
...
...
@@ -3727,8 +3727,8 @@ export default {
scheduled_actions
:
[],
},
ref
:
{
name
:
'
ma
ster
'
,
path
:
'
/h5bp/html5-boilerplate/commits/ma
ster
'
,
name
:
'
ma
in
'
,
path
:
'
/h5bp/html5-boilerplate/commits/ma
in
'
,
tag
:
false
,
branch
:
true
,
merge_request
:
false
,
...
...
spec/frontend/pipelines/graph/mock_data_legacy.js
View file @
9af97a34
...
...
@@ -221,22 +221,22 @@ export default {
cancelable
:
false
,
},
ref
:
{
name
:
'
ma
ster
'
,
path
:
'
/root/ci-mock/tree/ma
ster
'
,
name
:
'
ma
in
'
,
path
:
'
/root/ci-mock/tree/ma
in
'
,
tag
:
false
,
branch
:
true
,
},
commit
:
{
id
:
'
798e5f902592192afaba73f4668ae30e56eae492
'
,
short_id
:
'
798e5f90
'
,
title
:
"
Merge branch 'new-branch' into 'ma
ster
'
\r
"
,
title
:
"
Merge branch 'new-branch' into 'ma
in
'
\r
"
,
created_at
:
'
2017-04-13T10:25:17.000+01:00
'
,
parent_ids
:
[
'
54d483b1ed156fbbf618886ddf7ab023e24f8738
'
,
'
c8e2d38a6c538822e81c57022a6e3a0cfedebbcc
'
,
],
message
:
"
Merge branch 'new-branch' into 'ma
ster
'
\r\n\r\n
Add new file
\r\n\r\n
See merge request !1
"
,
"
Merge branch 'new-branch' into 'ma
in
'
\r\n\r\n
Add new file
\r\n\r\n
See merge request !1
"
,
author_name
:
'
Root
'
,
author_email
:
'
admin@example.com
'
,
authored_date
:
'
2017-04-13T10:25:17.000+01:00
'
,
...
...
spec/frontend/pipelines/mock_data.js
View file @
9af97a34
...
...
@@ -387,7 +387,7 @@ export const tags = [
protected
:
false
,
},
{
name
:
'
ma
ster
-tag
'
,
name
:
'
ma
in
-tag
'
,
message
:
''
,
target
:
'
66673b07efef254dab7d537f0433a40e61cf84fe
'
,
commit
:
{
...
...
@@ -413,10 +413,10 @@ export const tags = [
export
const
mockSearch
=
[
{
type
:
'
username
'
,
value
:
{
data
:
'
root
'
,
operator
:
'
=
'
}
},
{
type
:
'
ref
'
,
value
:
{
data
:
'
ma
ster
'
,
operator
:
'
=
'
}
},
{
type
:
'
ref
'
,
value
:
{
data
:
'
ma
in
'
,
operator
:
'
=
'
}
},
{
type
:
'
status
'
,
value
:
{
data
:
'
pending
'
,
operator
:
'
=
'
}
},
];
export
const
mockBranchesAfterMap
=
[
'
branch-1
'
,
'
branch-10
'
,
'
branch-11
'
];
export
const
mockTagsAfterMap
=
[
'
tag-3
'
,
'
tag-2
'
,
'
tag-1
'
,
'
ma
ster
-tag
'
];
export
const
mockTagsAfterMap
=
[
'
tag-3
'
,
'
tag-2
'
,
'
tag-1
'
,
'
ma
in
-tag
'
];
spec/frontend/pipelines/pipelines_ci_templates_spec.js
View file @
9af97a34
...
...
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils';
import
ExperimentTracking
from
'
~/experimentation/experiment_tracking
'
;
import
PipelinesCiTemplate
from
'
~/pipelines/components/pipelines_list/pipelines_ci_templates.vue
'
;
const
addCiYmlPath
=
"
/-/new/ma
ster
?commit_message='Add%20.gitlab-ci.yml'
"
;
const
addCiYmlPath
=
"
/-/new/ma
in
?commit_message='Add%20.gitlab-ci.yml'
"
;
const
suggestedCiTemplates
=
[
{
name
:
'
Android
'
,
logo
:
'
/assets/illustrations/logos/android.svg
'
},
{
name
:
'
Bash
'
,
logo
:
'
/assets/illustrations/logos/bash.svg
'
},
...
...
spec/frontend/pipelines/pipelines_spec.js
View file @
9af97a34
...
...
@@ -289,7 +289,7 @@ describe('Pipelines', () => {
page
:
'
1
'
,
scope
:
'
all
'
,
username
:
'
root
'
,
ref
:
'
ma
ster
'
,
ref
:
'
ma
in
'
,
status
:
'
pending
'
,
};
...
...
@@ -321,7 +321,7 @@ describe('Pipelines', () => {
expect
(
window
.
history
.
pushState
).
toHaveBeenCalledWith
(
expect
.
anything
(),
expect
.
anything
(),
`
${
window
.
location
.
pathname
}
?page=1&scope=all&username=root&ref=ma
ster
&status=pending`
,
`
${
window
.
location
.
pathname
}
?page=1&scope=all&username=root&ref=ma
in
&status=pending`
,
);
});
});
...
...
spec/frontend/pipelines/test_reports/test_case_details_spec.js
View file @
9af97a34
...
...
@@ -13,7 +13,7 @@ describe('Test case details', () => {
formattedTime
:
'
10.04ms
'
,
recent_failures
:
{
count
:
2
,
base_branch
:
'
ma
ster
'
,
base_branch
:
'
ma
in
'
,
},
system_output
:
'
Line 42 is broken
'
,
};
...
...
spec/frontend/pipelines/tokens/pipeline_branch_name_token_spec.js
View file @
9af97a34
...
...
@@ -89,7 +89,7 @@ describe('Pipeline Branch Name Token', () => {
});
it
(
'
renders only the branch searched for
'
,
()
=>
{
const
mockBranches
=
[
'
ma
ster
'
];
const
mockBranches
=
[
'
ma
in
'
];
createComponent
({
stubs
},
{
branches
:
mockBranches
,
loading
:
false
});
expect
(
findAllFilteredSearchSuggestions
()).
toHaveLength
(
mockBranches
.
length
);
...
...
spec/frontend/pipelines/tokens/pipeline_tag_name_token_spec.js
View file @
9af97a34
...
...
@@ -89,7 +89,7 @@ describe('Pipeline Branch Name Token', () => {
});
it
(
'
renders only the tag searched for
'
,
()
=>
{
const
mockTags
=
[
'
ma
ster
-tag
'
];
const
mockTags
=
[
'
ma
in
-tag
'
];
createComponent
({
stubs
},
{
tags
:
mockTags
,
loading
:
false
});
expect
(
findAllFilteredSearchSuggestions
()).
toHaveLength
(
mockTags
.
length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment