Conversation
257b834 to
b0a7d06
Compare
|
We could add a unit test, to mock an HTTP service and inspect the request generated. |
|
Also, the "config".global is pretty slow in my environment, maybe we should address it. |
It turns out to be that the lua-resty-aws/src/resty/aws/utils.lua Line 77 in b0a7d06 and the request failed in my env. So it's better to set |
Are you testing this on your localhost without any related config set(like environment var 'AWS_REGION' or profile config)?
I think the |
|
Failed test on AWS environment due to deprecation of putting bucket name in request URI: Maybe we should do a similar thing https://github.com/aws/aws-sdk-go/blob/aeeca02c4a3603ec615fa9a011e2e05c9d40e1f8/service/s3/host_style_bucket.go#L132-L136 |
b0a7d06 to
8ffdb73
Compare
I strongly doubt if |
3cdd9cf to
3d7b036
Compare
|
Should we really calculate the host in |
|
Tested with @StarlightIbuki that the old request URI format also works well, so it is our decision whether to "put bucket into host instead of path". Already tested this PR with SecretsManager: |
89df1f8 to
0dc65b3
Compare
I made it an option and default to "in host". |
72ad12f to
9a8a33e
Compare
mess s: query Co-authored-by: Mayo <i@shoujo.io>
Co-authored-by: Qirui(Keery) Nie <windmgc@gmail.com> s: cred test
Put bucket into host instead of path. Add option "s3_bucket_in_path" to use deprecated APIs. I wonder why the offical SDK do not update API definitions. They instead do it with patch code?!
4419ac9 to
70e23fa
Compare
70e23fa to
9861a71
Compare
|
We don't have automatic CI and I assume the test suites have been ran locally. Since this |
fix: template incorrect handling of query string
fix: blob param should be raw body
feat: add support for credential from file
fix: escaping for param in uri
fix: handling raw body conflict with body param
fix: crash when no type check designated
fix: missing support for "headers" location
fix: compatibility for S3