
module JamRuby
end

require "./lambda_function"

# mock event from Lambda / AWS
event = {}
event["invocationId"] = "123"
event["invocationSchemaVersion"] = "1.0"
event["tasks"] = [{ "taskId" => "123", "s3Key" => "manifests/ace-of-base_the-sign_10111/manifest", "s3BucketArn" => "arn:aws:s3:::test-bucket" }]

importer = JamRuby::JamTrackLambdaImporter.new

ENV["TENCY_ZIPS_BUCKET"] = "jamkazam-tency-uploads-test"

s3_manager = JamRuby::S3Manager.new(ENV["TENCY_ZIPS_BUCKET"] , "a", "b", "http://localhost:19090")
manifest = "/Users/seth/workspace/tency/scripts/manifests/ace-of-base_the-sign_10111/manifest.txt"
tmp =  "/Users/seth/workspace/jam-cloud/lambda/jamtrack-importer/tmp"
puts importer.tency_unzipper(s3_manager, manifest,tmp)

