Skip to content

Commit

Permalink
Pins moto to 2.2.7
Browse files Browse the repository at this point in the history
- moto 2.2.8 and above is currently broken with sqs
- adds output queue sample data for etd (not sure if we'll want to keep this or not, but pushing branch to allow for discussion)

To load sample data for etd testing:
- in this repo
- confirm .env has SQS_ENDPOINT_URL='http://localhost:5000'
- pipenv run moto_server sqs
- pipenv run submitter create-queue etd-test-output
- pipenv run submitter sample-output-data-loader --queue=etd-test-output

in etd .env
SQS_INPUT_QUEUE_URL=http://localhost:5000/123456789012/etd-test-input
SQS_OUTPUT_QUEUE_NAME=etd-test-output
SQS_OUTPUT_QUEUE_URL=http://localhost:5000/123456789012/etd-test-output

- rails c
- DspacePublicationResultsJob.perform_now
  • Loading branch information
JPrevost committed Oct 26, 2021
1 parent b2d65c7 commit baaf558
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 207 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ flake8 = "*"
black = "==21.7b0"
isort = "*"
bandit = "*"
moto = {extras = ["s3", "server", "sqs"], version = "*"}
moto = {extras = ["s3", "server", "sqs"], version = "==2.2.7"}
pytest = "*"
coveralls = "*"
requests-mock = "*"
Expand Down
Loading

0 comments on commit baaf558

Please sign in to comment.