Skip to content

Commit c596b42

Browse files
committed
Update test s3 bucket name
1 parent 61e02f1 commit c596b42

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

get_s3_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestS3Getter(t *testing.T) {
3131

3232
// With a dir that doesn't exist
3333
err := g.Get(
34-
dst, testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder"))
34+
dst, testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder"))
3535
if err != nil {
3636
t.Fatalf("err: %s", err)
3737
}
@@ -49,7 +49,7 @@ func TestS3Getter_subdir(t *testing.T) {
4949

5050
// With a dir that doesn't exist
5151
err := g.Get(
52-
dst, testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder/subfolder"))
52+
dst, testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder/subfolder"))
5353
if err != nil {
5454
t.Fatalf("err: %s", err)
5555
}
@@ -68,7 +68,7 @@ func TestS3Getter_GetFile(t *testing.T) {
6868

6969
// Download
7070
err := g.GetFile(
71-
dst, testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder/main.tf"))
71+
dst, testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder/main.tf"))
7272
if err != nil {
7373
t.Fatalf("err: %s", err)
7474
}
@@ -88,7 +88,7 @@ func TestS3Getter_GetFile_badParams(t *testing.T) {
8888
// Download
8989
err := g.GetFile(
9090
dst,
91-
testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder/main.tf?aws_access_key_id=foo&aws_access_key_secret=bar&aws_access_token=baz"))
91+
testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder/main.tf?aws_access_key_id=foo&aws_access_key_secret=bar&aws_access_token=baz"))
9292
if err == nil {
9393
t.Fatalf("expected error, got none")
9494
}
@@ -105,7 +105,7 @@ func TestS3Getter_GetFile_notfound(t *testing.T) {
105105

106106
// Download
107107
err := g.GetFile(
108-
dst, testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder/404.tf"))
108+
dst, testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder/404.tf"))
109109
if err == nil {
110110
t.Fatalf("expected error, got none")
111111
}
@@ -116,7 +116,7 @@ func TestS3Getter_ClientMode_dir(t *testing.T) {
116116

117117
// Check client mode on a key prefix with only a single key.
118118
mode, err := g.ClientMode(
119-
testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder"))
119+
testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder"))
120120
if err != nil {
121121
t.Fatalf("err: %s", err)
122122
}
@@ -130,7 +130,7 @@ func TestS3Getter_ClientMode_file(t *testing.T) {
130130

131131
// Check client mode on a key prefix which contains sub-keys.
132132
mode, err := g.ClientMode(
133-
testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/folder/main.tf"))
133+
testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/folder/main.tf"))
134134
if err != nil {
135135
t.Fatalf("err: %s", err)
136136
}
@@ -148,7 +148,7 @@ func TestS3Getter_ClientMode_notfound(t *testing.T) {
148148
// prefix is handled properly (e.g., "/fold" and "/folder" don't put the
149149
// client mode into "dir".
150150
mode, err := g.ClientMode(
151-
testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/fold"))
151+
testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/fold"))
152152
if err != nil {
153153
t.Fatalf("err: %s", err)
154154
}
@@ -163,7 +163,7 @@ func TestS3Getter_ClientMode_collision(t *testing.T) {
163163
// Check that the client mode is "file" if there is both an object and a
164164
// folder with a common prefix (i.e., a "collision" in the namespace).
165165
mode, err := g.ClientMode(
166-
testURL("https://s3.amazonaws.com/hc-oss-test/go-getter/collision/foo"))
166+
testURL("https://s3.amazonaws.com/hc-go-getter-test/go-getter/collision/foo"))
167167
if err != nil {
168168
t.Fatalf("err: %s", err)
169169
}

0 commit comments

Comments
 (0)