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
a821d83b
Commit
a821d83b
authored
Apr 21, 2021
by
Jacques Erasmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update environments default branch name
Updated the branch name from master to main
parent
0c171090
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ee/spec/frontend/environments/mock_data.js
ee/spec/frontend/environments/mock_data.js
+2
-2
spec/frontend/environments/environment_table_spec.js
spec/frontend/environments/environment_table_spec.js
+3
-3
spec/frontend/environments/mock_data.js
spec/frontend/environments/mock_data.js
+4
-4
No files found.
ee/spec/frontend/environments/mock_data.js
View file @
a821d83b
...
@@ -9,8 +9,8 @@ export const environment = {
...
@@ -9,8 +9,8 @@ export const environment = {
iid
:
6
,
iid
:
6
,
sha
:
'
500aabcb17c97bdcf2d0c410b70cb8556f0362dd
'
,
sha
:
'
500aabcb17c97bdcf2d0c410b70cb8556f0362dd
'
,
ref
:
{
ref
:
{
name
:
'
ma
ster
'
,
name
:
'
ma
in
'
,
ref_url
:
'
root/ci-folders/tree/ma
ster
'
,
ref_url
:
'
root/ci-folders/tree/ma
in
'
,
},
},
tag
:
true
,
tag
:
true
,
'
last?
'
:
true
,
'
last?
'
:
true
,
...
...
spec/frontend/environments/environment_table_spec.js
View file @
a821d83b
...
@@ -359,7 +359,7 @@ describe('Environment table', () => {
...
@@ -359,7 +359,7 @@ describe('Environment table', () => {
},
},
},
},
{
{
name
:
'
review/ma
ster
'
,
name
:
'
review/ma
in
'
,
last_deployment
:
{
last_deployment
:
{
created_at
:
'
2019-02-17T16:26:15.125Z
'
,
created_at
:
'
2019-02-17T16:26:15.125Z
'
,
},
},
...
@@ -374,7 +374,7 @@ describe('Environment table', () => {
...
@@ -374,7 +374,7 @@ describe('Environment table', () => {
},
},
];
];
const
[
production
,
review
,
staging
]
=
mockItems
;
const
[
production
,
review
,
staging
]
=
mockItems
;
const
[
addcibuildstatus
,
ma
ster
]
=
mockItems
[
1
].
children
;
const
[
addcibuildstatus
,
ma
in
]
=
mockItems
[
1
].
children
;
factory
({
factory
({
propsData
:
{
propsData
:
{
...
@@ -390,7 +390,7 @@ describe('Environment table', () => {
...
@@ -390,7 +390,7 @@ describe('Environment table', () => {
production
.
name
,
production
.
name
,
]);
]);
expect
(
wrapper
.
vm
.
sortedEnvironments
[
0
].
children
).
toEqual
([
ma
ster
,
addcibuildstatus
]);
expect
(
wrapper
.
vm
.
sortedEnvironments
[
0
].
children
).
toEqual
([
ma
in
,
addcibuildstatus
]);
});
});
});
});
});
});
spec/frontend/environments/mock_data.js
View file @
a821d83b
...
@@ -76,8 +76,8 @@ const environment = {
...
@@ -76,8 +76,8 @@ const environment = {
iid
:
6
,
iid
:
6
,
sha
:
'
500aabcb17c97bdcf2d0c410b70cb8556f0362dd
'
,
sha
:
'
500aabcb17c97bdcf2d0c410b70cb8556f0362dd
'
,
ref
:
{
ref
:
{
name
:
'
ma
ster
'
,
name
:
'
ma
in
'
,
ref_url
:
'
root/ci-folders/tree/ma
ster
'
,
ref_url
:
'
root/ci-folders/tree/ma
in
'
,
},
},
tag
:
true
,
tag
:
true
,
'
last?
'
:
true
,
'
last?
'
:
true
,
...
@@ -130,8 +130,8 @@ const environment = {
...
@@ -130,8 +130,8 @@ const environment = {
iid
:
27
,
iid
:
27
,
sha
:
'
1132df044b73943943c949e7ac2c2f120a89bf59
'
,
sha
:
'
1132df044b73943943c949e7ac2c2f120a89bf59
'
,
ref
:
{
ref
:
{
name
:
'
ma
ster
'
,
name
:
'
ma
in
'
,
ref_path
:
'
/root/environment-test/-/tree/ma
ster
'
,
ref_path
:
'
/root/environment-test/-/tree/ma
in
'
,
},
},
status
:
'
running
'
,
status
:
'
running
'
,
created_at
:
'
2020-12-04T19:57:49.514Z
'
,
created_at
:
'
2020-12-04T19:57:49.514Z
'
,
...
...
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