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
866cab6d
Commit
866cab6d
authored
Nov 16, 2021
by
huzaifaiftikhar1
Committed by
Thong Kuah
Nov 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve audit events spec for group saml provider
parent
10b55756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ee/spec/support/shared_examples/services/group_saml/saml_provider/base_service_shared_examples.rb
.../group_saml/saml_provider/base_service_shared_examples.rb
+13
-0
No files found.
ee/spec/support/shared_examples/services/group_saml/saml_provider/base_service_shared_examples.rb
View file @
866cab6d
...
...
@@ -34,6 +34,19 @@ RSpec.shared_examples 'base SamlProvider service' do
.
and
change
{
group
.
saml_provider
&
.
enabled?
}.
to
(
true
)
.
and
change
{
group
.
saml_provider
&
.
enforced_sso?
}.
to
(
true
)
.
and
change
{
AuditEvent
.
count
}.
by
(
4
)
audit_event_messages
=
[
%r{enabled changed([
\w\s
]*)to true}
,
%r{certificate_fingerprint changed([
\w\W\s
]*)to
#{
fingerprint
}
}
,
%r{sso_url changed([
\w\W\s
]*)to https:
\/\/
test}
,
%r{enforced_sso changed([
\w\s
]*)to true}
]
audit_events
=
AuditEvent
.
last
(
4
)
audit_event_messages
.
each_with_index
do
|
expected_message
,
index
|
expect
(
audit_events
[
index
].
details
[
:custom_message
]).
to
match
(
expected_message
)
end
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