Skip to content

Commit

Permalink
Merge pull request ansible#4017 from ryanpetrello/swagger-action-node
Browse files Browse the repository at this point in the history
make activity stream action_node deterministic for Swagger docs

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
  • Loading branch information
2 parents 958c192 + 6d1ba41 commit 176f863
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions awx/main/tests/docs/test_swagger_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,9 @@ def teardown_class(cls):
r'\1xxxx\3',
data
)
data = re.sub(
r'"action_node": "awx-[^"]+"',
'"action_node": "awx"',
data
)
f.write(data)

0 comments on commit 176f863

Please sign in to comment.