Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
40747c5c
Commit
40747c5c
authored
Mar 30, 2021
by
Yunhua Koglin
Browse files
Merge remote-tracking branch 'origin/master' into dev
parents
facc3c00
651020fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/security/test_auth.py
View file @
40747c5c
...
...
@@ -41,7 +41,7 @@ def skip_if_gcp_environment(base_url):
def
test_expired_token_returns_40X
(
base_url
,
check_cert
,
token
):
url
=
build_url
(
base_url
,
"/about"
)
headers
=
{
'Authorization'
:
'REMOVED_FOR_CICD_SCAN'
'Authorization'
:
'
Bearer
REMOVED_FOR_CICD_SCAN'
}
response
=
requests
.
request
(
"GET"
,
url
,
headers
=
headers
,
data
=
payload
,
verify
=
check_cert
)
assert
response
.
status_code
==
401
...
...
@@ -81,7 +81,7 @@ def test_invalid_token_returns_40X(base_url, check_cert, token):
blank
=
{}
token_invalid
=
token
[
0
:
len
(
token
)
-
10
]
headers
=
{
'Authorization'
:
f
"
REMOVED_FOR_CICD_SCAN'
'Authorization'
:
'Bearer
REMOVED_FOR_CICD_SCAN'
}
response
=
requests
.
request
(
"GET"
,
url
,
headers
=
headers
,
data
=
blank
,
verify
=
check_cert
)
...
...
@@ -93,7 +93,7 @@ def test_invalid_issuer_token_returns_40X(base_url, check_cert, token):
url
=
build_url
(
base_url
,
"/about"
)
blank
=
{}
headers
=
{
'Authorization': 'REMOVED_FOR_CICD_SCAN'
'Authorization'
:
'
Bearer
REMOVED_FOR_CICD_SCAN'
}
response
=
requests
.
request
(
"GET"
,
url
,
headers
=
headers
,
data
=
blank
,
verify
=
check_cert
)
assert
response
.
status_code
==
401
Write
Preview
Supports
Markdown
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