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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a3fbaffc
Commit
a3fbaffc
authored
Sep 05, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test production/development fixtures seed
parent
db467ad6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
spec/db/development/import_common_metrics_spec.rb
spec/db/development/import_common_metrics_spec.rb
+15
-0
spec/db/production/import_common_metrics_spec.rb
spec/db/production/import_common_metrics_spec.rb
+15
-0
No files found.
spec/db/development/import_common_metrics_spec.rb
0 → 100644
View file @
a3fbaffc
# frozen_string_literal: true
require
'spec_helper'
describe
'Import metrics on development seed'
do
subject
{
load
Rails
.
root
.
join
(
'db'
,
'fixtures'
,
'development'
,
'99_common_metrics.rb'
)
}
it
"imports all prometheus metrics"
do
expect
(
PrometheusMetric
.
common
).
to
be_empty
subject
expect
(
PrometheusMetric
.
common
).
not_to
be_empty
end
end
spec/db/production/import_common_metrics_spec.rb
0 → 100644
View file @
a3fbaffc
# frozen_string_literal: true
require
'spec_helper'
describe
'Import metrics on production seed'
do
subject
{
load
Rails
.
root
.
join
(
'db'
,
'fixtures'
,
'production'
,
'999_common_metrics.rb'
)
}
it
"imports all prometheus metrics"
do
expect
(
PrometheusMetric
.
common
).
to
be_empty
subject
expect
(
PrometheusMetric
.
common
).
not_to
be_empty
end
end
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