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
71abb2ff
Commit
71abb2ff
authored
Apr 09, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure ID is big enough for prometheus_metrics records
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
ae04aeba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/spec/migrations/allow_prometheus_alerts_per_environment_spec.rb
...igrations/allow_prometheus_alerts_per_environment_spec.rb
+4
-3
No files found.
ee/spec/migrations/allow_prometheus_alerts_per_environment_spec.rb
View file @
71abb2ff
...
...
@@ -38,9 +38,10 @@ describe AllowPrometheusAlertsPerEnvironment, :migration do
let
(
:b_prd
)
{
environment
(
id:
14
,
name:
'b_prd'
,
project:
b
)
}
let
(
:b_stg
)
{
environment
(
id:
15
,
name:
'b_stg'
,
project:
b
)
}
let
(
:c_prd
)
{
environment
(
id:
16
,
name:
'c_prd'
,
project:
c
)
}
let
(
:metric_a
)
{
metric
(
id:
21
,
project:
a
)
}
let
(
:metric_b
)
{
metric
(
id:
22
,
project:
b
)
}
let
(
:metric_c
)
{
metric
(
id:
23
,
project:
c
)
}
# Start with a big ID since db/migrate/20180831164910_import_common_metrics.rb inserts at least 21 metrics...
let
(
:metric_a
)
{
metric
(
id:
997
,
project:
a
)
}
let
(
:metric_b
)
{
metric
(
id:
998
,
project:
b
)
}
let
(
:metric_c
)
{
metric
(
id:
999
,
project:
c
)
}
let
(
:alert_a_prd
)
{
alert
(
id:
31
,
metric:
metric_a
,
environment:
a_prd
)
}
let
(
:alert_a_stg
)
{
alert
(
id:
32
,
metric:
metric_a
,
environment:
a_stg
)
}
...
...
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