diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:23:40 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:23:40 +0200 |
| commit | 044e297413066262c54beb33e98d0e498178897b (patch) | |
| tree | 8fa631ebe958f0a480bbe9445ac83c13b36f1d97 /object_test.go | |
| parent | dc7bd11d855f0b3266612a18606801f4e09ecc09 (diff) | |
| download | go-schwift-044e297413066262c54beb33e98d0e498178897b.tar.gz | |
use http.MethodFoo constants where possible
Diffstat (limited to 'object_test.go')
| -rw-r--r-- | object_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/object_test.go b/object_test.go index e614174..c0bb168 100644 --- a/object_test.go +++ b/object_test.go @@ -67,7 +67,7 @@ func TestObjectTempURLSha1Only(t *testing.T) { }) must(t, err) - actualURL, err := account.Container("foo").Object("bar").TempURL(context.TODO(), "supersecretkey", "GET", time.Unix(1e9, 0)) + actualURL, err := account.Container("foo").Object("bar").TempURL(context.TODO(), "supersecretkey", http.MethodGet, time.Unix(1e9, 0)) must(t, err) expectedURL := "https://example.com/v1/AUTH_example/foo/bar?temp_url_sig=ed44d92005345aee463c884d76d4850ef6d2778d&temp_url_expires=1000000000" @@ -82,7 +82,7 @@ func TestObjectTempURL(t *testing.T) { }) must(t, err) - actualURL, err := account.Container("foo").Object("bar").TempURL(context.TODO(), "supersecretkey", "GET", time.Unix(1e9, 0)) + actualURL, err := account.Container("foo").Object("bar").TempURL(context.TODO(), "supersecretkey", http.MethodGet, time.Unix(1e9, 0)) must(t, err) expectedURL := "https://example.com/v1/AUTH_example/foo/bar?temp_url_sig=5fc94a988b502d83e88863774812636ef0133b8aae04b20366fd906bff41189f&temp_url_expires=1000000000" |
