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:
softwarefactory-project-zuul[bot] 2019-06-06 16:13:17 +00:00 committed by GitHub
commit 176f8632e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)