Add inspection v2 (always encrypted) option. (#2386)

Depends on: https://github.com/minio/minio/pull/15474 for functionality
(which depends on this)

Blocks:  https://github.com/minio/minio/pull/15474

Keep v1 if non-encrypted and decrypt it.

Otherwise if encrypted, use a fixed public key.
This commit is contained in:
Klaus Post
2022-11-02 18:35:45 +01:00
committed by GitHub
parent 83a612981e
commit 2ff44df636
5 changed files with 55 additions and 45 deletions

View File

@@ -70,7 +70,8 @@ func TestInspect(t *testing.T) {
file: "test.txt",
encrypt: true,
},
expStatusCode: 200,
// TODO: Change back to 200 when https://github.com/minio/minio/pull/15474 is merged.
expStatusCode: 500,
expectedError: false,
},
{