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
0749a4db
Commit
0749a4db
authored
Mar 08, 2022
by
Sanad Liaquat
Committed by
Anastasia McDonald
Mar 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Log successful adding of license key
parent
ff0f7dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
qa/qa/ee/resource/license.rb
qa/qa/ee/resource/license.rb
+11
-7
No files found.
qa/qa/ee/resource/license.rb
View file @
0749a4db
...
...
@@ -10,18 +10,22 @@ module QA
QA
::
Page
::
Admin
::
Menu
.
perform
(
&
:click_subscription_menu_link
)
EE
::
Page
::
Admin
::
License
.
perform
do
|
license_page
|
unless
license_page
.
license?
if
license_page
.
license?
QA
::
Runtime
::
Logger
.
debug
(
"A license already exists."
)
else
QA
::
Page
::
Admin
::
Menu
.
perform
(
&
:go_to_general_settings
)
license_page
.
add_new_license
(
license
)
end
end
unless
EE
::
Page
::
Admin
::
Subscription
.
perform
(
&
:has_ultimate_subscription_plan?
)
license_length
=
license
.
to_s
.
strip
.
length
license_info
=
"License key length:
#{
license_length
}
. "
+
(
license_length
>
5
?
"Last five characters:
#{
license
.
to_s
.
strip
[
-
5
..
]
}
"
:
""
)
license_length
=
license
.
to_s
.
strip
.
length
license_info
=
"TEST_LICENSE_MODE:
#{
ENV
[
'TEST_LICENSE_MODE'
]
}
. License key length:
#{
license_length
}
. "
+
(
license_length
>
5
?
"Last five characters:
#{
license
.
to_s
.
strip
[
-
5
..
]
}
"
:
""
)
raise
"Adding license key was unsuccessful.
#{
license_info
}
"
if
EE
::
Page
::
Admin
::
Subscription
.
perform
(
&
:has_ultimate_subscription_plan?
)
QA
::
Runtime
::
Logger
.
debug
(
"Successfully added license key.
#{
license_info
}
"
)
else
raise
"Adding license key was unsuccessful.
#{
license_info
}
"
end
end
end
QA
::
Page
::
Main
::
Menu
.
perform
(
&
:sign_out_if_signed_in
)
...
...
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