Skip to content

Commit

Permalink
Switch moto from 5000 to 6000 (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem authored Nov 14, 2023
1 parent 3390825 commit 9609ec3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build-requirements:
$(TEMPDIR)/bin/pip freeze | grep -v -- '^-e' > requirements.txt

run-moto:
$(VENV)/bin/moto_server s3bucket_path -H 0.0.0.0 -p 5000
$(VENV)/bin/moto_server s3bucket_path -H 0.0.0.0 -p 6000

tests-once: install
$(VENV)/bin/py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment
Expand Down
2 changes: 1 addition & 1 deletion kinto_attachment/tests/config/s3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kinto.attachment.base_url = https://cdn.firefox.net/
kinto.attachment.folder = {bucket_id}/{collection_id}

kinto.attachment.aws.host = localhost
kinto.attachment.aws.port = 5000
kinto.attachment.aws.port = 6000
kinto.attachment.aws.is_secure = false
kinto.attachment.aws.use_path_style = true
kinto.attachment.aws.access_key = aws
Expand Down
2 changes: 1 addition & 1 deletion kinto_attachment/tests/config/s3_per_resource.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kinto.attachment.base_url = https://cdn.firefox.net/
kinto.attachment.folder = {bucket_id}/{collection_id}

kinto.attachment.aws.host = localhost
kinto.attachment.aws.port = 5000
kinto.attachment.aws.port = 6000
kinto.attachment.aws.is_secure = false
kinto.attachment.aws.use_path_style = true
kinto.attachment.aws.access_key = aws
Expand Down
2 changes: 1 addition & 1 deletion kinto_attachment/tests/test_views_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def test_file_get_zipped_in_fennec_bucket(self):
self.assertEqual(r.json['filename'], 'image.jpg.gz')

relative_url = r.json['location'].replace(self.base_url, '')
resp = requests.get("http://localhost:5000/myfiles/{}".format(relative_url))
resp = requests.get("http://localhost:6000/myfiles/{}".format(relative_url))
self.assertEqual(resp.headers['Content-Type'], 'application/x-gzip')
self.assertNotIn('Content-Encoding', resp.headers)

Expand Down

0 comments on commit 9609ec3

Please sign in to comment.