Fix failed tests test_attrs() and test_mkdir_with_path() - #479
Conversation
…test_mkdir_with_path`
|
Another test failure for |
test_attrs() by replacing a PATCH request method with PUT|
Would you mind testing PUT versus PATCH on real google? |
|
I created a new bucket named To summarize, the original It looks like this is only an issue in testing so I think I should revert my change that replaces PATCH with PUT. original
|
…bject metadata" This reverts commit 7a7a7d3.
|
It makes sense to me that PUT should replace, and PATCH amend the attrs. In our usage, we are after amending. |
|
So should we set xfail on these until the GCS emulator agrees, or add a |
|
Thank you for tidying up my incomplete PR. |




Hello, this PR is a trial to fix
test_attrs(), one of the current pytest failures.I noticed this PATCH call didn't actually update the
metadatafield but PUT did:gcsfs/gcsfs/core.py
Lines 837 to 845 in c2d2d89
I'm not sure this is the best way to fix it since the official documentation recommends us to use a PATCH request for the update of user-defined metadata: Objects: update | Cloud Storage | Google Cloud. Maybe this is an issue of fsouza/fake-gcs-server.
I also delete the following line as the assigned values seem not used anywhere:
gcsfs/gcsfs/core.py
Line 846 in c2d2d89
Here is a test GitHub Actions run on my fork branch: shuuji3/pull/1