Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LSO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
LSO
Merge requests
!38
Nat 189 ansible return json
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Nat 189 ansible return json
NAT-189-ansible-return-json
into
develop
Overview
0
Commits
3
Pipelines
2
Changes
7
Merged
Pino, Adrián
requested to merge
NAT-189-ansible-return-json
into
develop
1 year ago
Overview
0
Commits
3
Pipelines
2
Changes
7
Expand
0
0
Merge request reports
Viewing commit
e3fb6ceb
Prev
Next
Show latest version
7 files
+
25
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
Verified
e3fb6ceb
pass mypy linting, and make flake8 stricter
· e3fb6ceb
Karel van Klink
authored
1 year ago
test/routes/__init__.py
+
8
−
6
Options
from
io
import
StringIO
from
typing
import
Any
TEST_CALLBACK_URL
=
"
https://fqdn.abc.xyz/api/resume
"
def
test_ansible_runner_run
(
**
kwargs
):
class
Runner
:
def
__init__
(
self
):
self
.
status
=
"
success
"
self
.
rc
=
0
self
.
stdout
=
StringIO
(
"
some initial text data
"
)
class
Runner
:
def
__init__
(
self
)
->
None
:
self
.
status
=
"
success
"
self
.
rc
=
0
self
.
stdout
=
StringIO
(
"
[{
'
step one
'
:
'
results
'
}, {
'
step two
'
: 2}]
"
)
def
test_ansible_runner_run
(
**
kwargs
:
Any
)
->
Runner
:
return
Runner
()
Loading