github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/scripts/ci/s3-deployer/main_test.go (about) 1 package main 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func init() { 11 sourcePath = "build/update" 12 awsRegionName = "us-east-1" 13 awsBucketName = "state-tool" 14 awsBucketPrefix = "update/state" 15 } 16 17 func TestCreateSession(t *testing.T) { 18 createSession() 19 // succeeds if no panic/exit 20 } 21 22 func TestGetFileList(t *testing.T) { 23 getFileList() 24 // succeeds if no panic/exit 25 } 26 27 func TestPrepareFile(t *testing.T) { 28 params := prepareFile(os.Args[0]) 29 assert.NotNil(t, params, "Sets params") 30 }