Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Sep 14, 2021
1 parent e4c7b20 commit ed3932a
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../src"))
from aws.s3_bucket import S3Bucket


class TestPublisher:
def __init__(self, s3_bucket, bundle_manifest, test_recorder):
self.s3_bucket = s3_bucket
class TestResults:
def __init__(self, bundle_manifest, test_recorder):
self.bundle_manifest = bundle_manifest
self.test_recorder = test_recorder

def publish_test_results_to_s3(self):
def to_s3(self, bucket):
"""
Publishes tests results to S3 pulling information from {self.test_recorder}
And cleans up all local storage after publishing ({self.test_recorder}.clean_up())
"""
s3_bucket = S3Bucket(self.s3_bucket, '<role-arn>', 'test-publisher-session')
s3_bucket = S3Bucket(bucket, '<role-arn>', 'test-publisher-session')
base_path = self._get_base_path()

for subdir, dirs, files in os.walk(self.test_recorder.location):
Expand Down

0 comments on commit ed3932a

Please sign in to comment.