@@ -77,6 +77,7 @@ func TestURIs(t *testing.T) {
77
77
{"No bucket" , "s3://s3.region.amazonaws.com/key" , "" , "" , "" , false },
78
78
{"No region" , "s3://some-bucket.s3..amazonaws.com/key" , "" , "" , "" , false },
79
79
{"Test malformed uri" , "s3://some-bucket.s3.us-west-2.amazonaws.com/key%" , "" , "" , "" , false },
80
+ {"Unsupported scheme" , "https://google.com" , "" , "" , "" , false },
80
81
{"Valid bucket" , "s3://bucket.name-here.s3.us-west-2.amazonaws.com/key" , "bucket.name-here" , "us-west-2" , "key" , true },
81
82
}
82
83
@@ -94,13 +95,6 @@ func TestURIs(t *testing.T) {
94
95
}
95
96
}
96
97
97
- func TestUnsupportedScheme (t * testing.T ) {
98
- fp := newTestProvider ("./testdata/otel-config.yaml" )
99
- _ , err := fp .Retrieve (context .Background (), "https://google.com" , nil )
100
- assert .Error (t , err )
101
- assert .NoError (t , fp .Shutdown (context .Background ()))
102
- }
103
-
104
98
func TestNonExistent (t * testing.T ) {
105
99
fp := newTestProvider ("./testdata/non-existent.yaml" )
106
100
_ , err := fp .Retrieve (context .Background (), "s3://non-exist-bucket.s3.region.amazonaws.com/key" , nil )
0 commit comments