Skip to content
Snippets Groups Projects
Commit 46ffcce2 authored by Illya Klymov's avatar Illya Klymov :rocket:
Browse files

Merge branch '433192-audit-event-streaming-admin-tab-show-in-premium-license' into 'master'

Fix Audit event streaming Admin tab show in Premium license

See merge request gitlab-org/gitlab!138246



Merged-by: default avatarIllya Klymov <xanf@xanf.me>
Approved-by: Igor Drozdov's avatarIgor Drozdov <idrozdov@gitlab.com>
Approved-by: default avatarMarcos Rocha <mrocha@gitlab.com>
Co-authored-by: default avatarGerardo <ggutierrez@gitlab.com>
parents 27bfffdb c5e9ea5e
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ def audit_log_app_data(is_last_page, events, audit_event_definitions)
data.merge!({
empty_state_svg_path: image_path('illustrations/cloud.svg'),
group_path: 'instance',
show_streams: 'true',
show_streams: License.feature_available?(:external_audit_events).to_s,
audit_event_definitions: audit_event_definitions.to_json
})
end
......
......@@ -169,6 +169,7 @@ def setup_permission(model, permission, current_user, has_permission)
end
it 'returns the correct data' do
stub_licensed_features(external_audit_events: true)
expect(helper.audit_log_app_data(true, events, audit_event_definitions)).to contain_exactly(
[:form_path, "/admin/audit_logs"],
[:events, events.to_json],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment