mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Merge pull request #4017 from ryanpetrello/swagger-action-node
make activity stream action_node deterministic for Swagger docs Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
176f8632e5
2
Makefile
2
Makefile
@ -345,7 +345,7 @@ pylint: reports
|
||||
@(set -o pipefail && $@ | reports/$@.report)
|
||||
|
||||
genschema: reports
|
||||
$(MAKE) swagger PYTEST_ARGS="--genschema"
|
||||
$(MAKE) swagger PYTEST_ARGS="--genschema --create-db "
|
||||
mv swagger.json schema.json
|
||||
|
||||
swagger: reports
|
||||
|
||||
@ -176,4 +176,9 @@ class TestSwaggerGeneration():
|
||||
r'\1xxxx\3',
|
||||
data
|
||||
)
|
||||
data = re.sub(
|
||||
r'"action_node": "awx-[^"]+"',
|
||||
'"action_node": "awx"',
|
||||
data
|
||||
)
|
||||
f.write(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user