Merged in feature/s3integration (pull request #47)
Set Up S3 integration * cfginterfaceandfirsts3funcs * addlocalstack * generallypassesfullsuite * addedmultipleattemptedpings * cleanup * stabiliseplusskip
This commit is contained in:
@@ -49,3 +49,23 @@ func TestPingQueueByURL(t *testing.T) {
|
||||
err := c.PingQueueByURL(ctx, url)
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
func TestGetSQSEndpoint(t *testing.T) {
|
||||
cfg := queue.QueueConfig{}
|
||||
|
||||
name := cfg.GetSQSEndpoint()
|
||||
assert.Equal(t, "", name)
|
||||
|
||||
cfg.AWSEndpointUrlSQS = "name"
|
||||
name = cfg.GetSQSEndpoint()
|
||||
assert.Equal(t, "name", name)
|
||||
assert.Equal(t, cfg.AWSEndpointUrlSQS, name)
|
||||
}
|
||||
|
||||
func TestSetSQSEndpoint(t *testing.T) {
|
||||
cfg := queue.QueueConfig{}
|
||||
|
||||
assert.Equal(t, "", cfg.AWSEndpointUrlSQS)
|
||||
url := "/i/am/here"
|
||||
cfg.SetSQSEndpoint(url)
|
||||
assert.Equal(t, url, cfg.AWSEndpointUrlSQS)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user