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
70463e4b
Commit
70463e4b
authored
Nov 19, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stub_licensed_features to enable audit events
parent
83a33764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
spec/requests/api/pipelines_spec.rb
spec/requests/api/pipelines_spec.rb
+1
-2
spec/services/ci/destroy_pipeline_service_spec.rb
spec/services/ci/destroy_pipeline_service_spec.rb
+1
-2
No files found.
spec/requests/api/pipelines_spec.rb
View file @
70463e4b
...
...
@@ -458,8 +458,7 @@ describe API::Pipelines do
context
'when audit events is enabled'
do
before
do
allow
(
License
).
to
receive
(
:feature_available?
).
and_call_original
allow
(
License
).
to
receive
(
:feature_available?
).
with
(
:extended_audit_events
).
and_return
(
true
)
stub_licensed_features
(
extended_audit_events:
true
)
end
it
'logs an audit event'
do
...
...
spec/services/ci/destroy_pipeline_service_spec.rb
View file @
70463e4b
...
...
@@ -19,8 +19,7 @@ describe ::Ci::DestroyPipelineService do
context
'when audit events is enabled'
do
before
do
allow
(
License
).
to
receive
(
:feature_available?
).
and_call_original
allow
(
License
).
to
receive
(
:feature_available?
).
with
(
:extended_audit_events
).
and_return
(
true
)
stub_licensed_features
(
extended_audit_events:
true
)
end
it
'logs an audit event'
do
...
...
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