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
1e799b62
Commit
1e799b62
authored
Aug 04, 2020
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create freeze periods in local `it` block
parent
ea39e76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/frontend/fixtures/freeze_period.rb
spec/frontend/fixtures/freeze_period.rb
+4
-3
No files found.
spec/frontend/fixtures/freeze_period.rb
View file @
1e799b62
...
...
@@ -8,9 +8,6 @@ RSpec.describe 'Freeze Periods (JavaScript fixtures)' do
let_it_be
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
path:
'freeze-periods-project'
)
}
let_it_be
(
:freeze_period_1
)
{
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'5 4 * * *'
,
freeze_end:
'5 9 * 8 *'
,
cron_timezone:
'America/New_York'
)
}
let_it_be
(
:freeze_period_2
)
{
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'0 12 * * 1-5'
,
freeze_end:
'0 1 5 * *'
,
cron_timezone:
'Etc/UTC'
)
}
let_it_be
(
:freeze_period_3
)
{
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'0 12 * * 1-5'
,
freeze_end:
'0 16 * * 6'
,
cron_timezone:
'Europe/Berlin'
)
}
before
(
:all
)
do
clean_frontend_fixtures
(
'api/freeze-periods/'
)
...
...
@@ -24,6 +21,10 @@ RSpec.describe 'Freeze Periods (JavaScript fixtures)' do
include
ApiHelpers
it
'api/freeze-periods/freeze-periods.json'
do
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'5 4 * * *'
,
freeze_end:
'5 9 * 8 *'
,
cron_timezone:
'America/New_York'
)
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'0 12 * * 1-5'
,
freeze_end:
'0 1 5 * *'
,
cron_timezone:
'Etc/UTC'
)
create
(
:ci_freeze_period
,
project:
project
,
freeze_start:
'0 12 * * 1-5'
,
freeze_end:
'0 16 * * 6'
,
cron_timezone:
'Europe/Berlin'
)
get
api
(
"/projects/
#{
project
.
id
}
/freeze_periods"
,
admin
)
expect
(
response
).
to
be_successful
...
...
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