Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
capif
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
OCF
capif
Commits
61677dbb
Commit
61677dbb
authored
7 months ago
by
torrespel
Browse files
Options
Downloads
Patches
Plain Diff
fix uuid
parent
62da2036
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!43
Staging to Main for Release 1
,
!27
Changes in Register
Pipeline
#6508
failed with stages
in 3 minutes and 26 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/register/register_service/core/register_operations.py
+2
-2
2 additions, 2 deletions
...ces/register/register_service/core/register_operations.py
tests/resources/common/basicRequests.robot
+5
-0
5 additions, 0 deletions
tests/resources/common/basicRequests.robot
with
7 additions
and
2 deletions
services/register/register_service/core/register_operations.py
+
2
−
2
View file @
61677dbb
...
...
@@ -23,7 +23,7 @@ class RegisterOperations:
name_space
=
uuid
.
UUID
(
self
.
config
[
"
register
"
][
"
register_uuid
"
])
user_uuid
=
str
(
uuid
.
uuid5
(
name_space
,
user_info
[
"
username
"
]))
user_info
[
"
user_
uuid
"
]
=
user_uuid
user_info
[
"
uuid
"
]
=
user_uuid
user_info
[
"
onboarding_date
"
]
=
datetime
.
now
()
obj
=
mycol
.
insert_one
(
user_info
)
...
...
@@ -40,7 +40,7 @@ class RegisterOperations:
if
exist_user
is
None
:
return
jsonify
(
"
Not exister user with this credentials
"
),
400
access_token
=
create_access_token
(
identity
=
(
username
+
"
"
+
exist_user
[
"
user_
uuid
"
]))
access_token
=
create_access_token
(
identity
=
(
username
+
"
"
+
exist_user
[
"
uuid
"
]))
cert_file
=
open
(
"
register_service/certs/ca_root.crt
"
,
'
rb
'
)
ca_root
=
cert_file
.
read
()
...
...
This diff is collapsed.
Click to expand it.
tests/resources/common/basicRequests.robot
+
5
−
0
View file @
61677dbb
...
...
@@ -416,6 +416,11 @@ Create User At Register
...
password=
${password}
...
description=
${description}
...
email=
${email}
...
enterprise=enterprise
...
country=Spain
...
purpose=testing
...
phone_number=123456789
...
company_web=www.enterprise.com
${resp}
=
Post On Session
register_session
/createUser
headers=
${headers}
json=
${body}
Should Be Equal As Strings
${resp.status_code}
201
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment