Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit ed06f83

Browse files
committed
Hardcode s3 bucket
1 parent 27c5134 commit ed06f83

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

fiaas_ais/ais.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import json
33
import boto3
44
from datetime import datetime
5-
import os
65

76
app = Flask(__name__)
87

@@ -19,7 +18,7 @@ def tag(channel, tag):
1918

2019
def _write_to_s3(channel, tag, data):
2120
s3 = boto3.resource('s3')
22-
s3object = s3.Object(os.environ['S3BUCKET'], '%s/%s.json' % (channel, tag))
21+
s3object = s3.Object('fiaas-release.delivery-pro.schibsted.io', '%s/%s.json' % (channel, tag))
2322
s3object.put(Body=json.dumps(data, indent=4))
2423
s3object.Acl().put(ACL='public-read')
2524

tests/fiaas_ais/test_s3.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
from datetime import datetime
88
import json
99
import boto3
10-
import os
1110

1211

1312
@mock_s3
1413
class S3TestCase(TestCase):
1514
def setUp(self):
16-
self.mybucket = 'mybucket'
17-
os.environ['S3BUCKET'] = self.mybucket
15+
self.mybucket = 'fiaas-release.delivery-pro.schibsted.io'
1816
self.conn = boto3.resource('s3')
1917
self.conn.create_bucket(Bucket=self.mybucket)
2018

0 commit comments

Comments
 (0)