make activity stream action_node deterministic for Swagger docs

This commit is contained in:
Ryan Petrello 2019-06-06 10:03:11 -04:00
parent 8be0b01c33
commit 6d1ba411e6
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -176,4 +176,9 @@ class TestSwaggerGeneration():
r'\1xxxx\3',
data
)
data = re.sub(
r'"action_node": "awx-[^"]+"',
'"action_node": "awx"',
data
)
f.write(data)