Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tests_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
tests_api
Merge requests
!246
Add 'IS_DIRECT_CALL_HAFAH' env var
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add 'IS_DIRECT_CALL_HAFAH' env var
1-kb-validate-response-2
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Kristupas Bobraitis
requested to merge
1-kb-validate-response-2
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#1 (closed)
Recreated
1-kb-validate-response
after bad rebase
0
0
Merge request reports
Viewing commit
ed76410c
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ed76410c
Fixed bool env ar bug
#1
· ed76410c
Kristupas Bobraitis
authored
2 years ago
scripts/validate_response.py
+
1
−
1
Options
@@ -106,7 +106,7 @@ def compare_response_with_pattern(response, method=None, directory=None, ignore_
response_json
=
response
.
json
()
error
=
response_json
.
get
(
"
error
"
,
None
)
if
os
.
getenv
(
"
IS_DIRECT_CALL_HAFAH
"
,
False
)
:
if
os
.
getenv
(
"
IS_DIRECT_CALL_HAFAH
"
,
""
).
lower
()
==
"
true
"
:
result
=
response_json
else
:
result
=
response_json
.
get
(
"
result
"
,
None
)
Loading