diff --git a/models/backbeatRoutes/putMetadata.smithy b/models/backbeatRoutes/putMetadata.smithy index 2aa181d9..3d022b6d 100644 --- a/models/backbeatRoutes/putMetadata.smithy +++ b/models/backbeatRoutes/putMetadata.smithy @@ -33,12 +33,18 @@ structure PutMetadataInput { @httpHeader("X-Scal-Request-Uids") RequestUids: String, - + + @httpHeader("x-scal-micro-version-id") + MicroVersionId: String, + @httpPayload Body: Blob } structure PutMetadataOutput { /// Version ID of the stored metadata - versionId: String + versionId: String, + + @httpHeader("x-scal-cascade-loop-detected") + CascadeLoopDetected: Boolean } \ No newline at end of file diff --git a/models/backbeatRoutes/putdata.smithy b/models/backbeatRoutes/putdata.smithy index 45e45780..a16b45df 100644 --- a/models/backbeatRoutes/putdata.smithy +++ b/models/backbeatRoutes/putdata.smithy @@ -31,6 +31,9 @@ structure PutDataInput { @httpHeader("X-Scal-Request-Uids") RequestUids: String, + @httpHeader("x-scal-micro-version-id") + MicroVersionId: String, + @httpPayload @default("") Body: StreamingBlob @@ -45,7 +48,10 @@ structure PutDataOutput { @httpHeader("x-amz-server-side-encryption-customer-algorithm") SSECustomerAlgorithm: String, - + @httpHeader("x-amz-server-side-encryption-aws-kms-key-id") - SSEKMSKeyId: String + SSEKMSKeyId: String, + + @httpHeader("x-scal-cascade-loop-detected") + CascadeLoopDetected: Boolean } \ No newline at end of file diff --git a/package.json b/package.json index ec5a8a19..15670614 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scality/cloudserverclient", - "version": "1.0.8", + "version": "1.0.9", "engines": { "node": ">=20" }, diff --git a/tests/testApis.test.ts b/tests/testApis.test.ts index 947729f3..f777414b 100644 --- a/tests/testApis.test.ts +++ b/tests/testApis.test.ts @@ -16,7 +16,7 @@ import { createTestClient, testConfig } from './testSetup'; import { describeForMetadataBackend } from './testHelpers'; import assert from 'assert'; -describeForMetadataBackend('CloudServer Backbeat Routes API Tests', () => { +describe('CloudServer Backbeat Routes API Tests', () => { let backbeatRoutesClient: BackbeatRoutesClient; let s3client: S3Client; @@ -37,7 +37,8 @@ describeForMetadataBackend('CloudServer Backbeat Routes API Tests', () => { CanonicalID: testConfig.canonicalID, ContentMD5: etag, Body: getData.Body, - VersioningRequired: true + VersioningRequired: true, + // MicroVersionId: '12345', }; const command2 = new PutDataCommand(putInput);