mxsdev / LocalSandbox

Local Azure Cloud emulator. Currently supporting Azure Service Bus.
Apache License 2.0
49 stars 0 forks source link

Ensure queue defaults are properly populated #38

Closed mxsdev closed 2 months ago

mxsdev commented 2 months ago
{
  id: '/subscriptions/3bcbba3b-6ac7-4bee-8398-d653b19a66c6/resourceGroups/localsandbox-uswest2-dev/providers/Microsoft.ServiceBus/namespaces/localsandbox-uswest2-dev/queues/e599c44f-2bea-4b08-8d16-b82919fc50d4',
  name: 'e599c44f-2bea-4b08-8d16-b82919fc50d4',
  type: 'Microsoft.ServiceBus/namespaces/queues',
  location: 'westus2',
  countDetails: {
    activeMessageCount: 0,
    deadLetterMessageCount: 0,
    scheduledMessageCount: 0,
    transferMessageCount: 0,
    transferDeadLetterMessageCount: 0
  },
  createdAt: 2024-09-02T18:21:22.050Z,
  updatedAt: 2024-09-02T18:21:22.360Z,
  accessedAt: 0001-01-01T07:52:58.000Z,
  sizeInBytes: 0,
  messageCount: 0,
  lockDuration: 'PT1M',
  maxSizeInMegabytes: 1024,
  maxMessageSizeInKilobytes: 256,
  requiresDuplicateDetection: false,
  requiresSession: false,
  defaultMessageTimeToLive: 'P10675199DT2H48M5.4775807S',
  deadLetteringOnMessageExpiration: false,
  duplicateDetectionHistoryTimeWindow: 'PT10M',
  maxDeliveryCount: 10,
  status: 'Active',
  enableBatchedOperations: true,
  autoDeleteOnIdle: 'PT5M',
  enablePartitioning: false,
  enableExpress: false
}
{
  id: '/subscriptions/3bcbba3b-6ac7-4bee-8398-d653b19a66c6/resourceGroups/localsandbox-uswest2-dev/providers/Microsoft.ServiceBus/namespaces/localsandbox-uswest2-dev/topics/212c1465-b17a-43a8-b117-00a2f3105b21',
  name: '212c1465-b17a-43a8-b117-00a2f3105b21',
  type: 'Microsoft.ServiceBus/namespaces/topics',
  location: 'westus2',
  sizeInBytes: 0,
  createdAt: 2024-09-10T02:34:56.693Z,
  updatedAt: 2024-09-10T02:34:56.727Z,
  accessedAt: 0001-01-01T00:00:00.000Z,
  subscriptionCount: 0,
  countDetails: {
    activeMessageCount: 0,
    deadLetterMessageCount: 0,
    scheduledMessageCount: 0,
    transferMessageCount: 0,
    transferDeadLetterMessageCount: 0
  },
  defaultMessageTimeToLive: 'P10675199DT2H48M5.4775807S',
  maxSizeInMegabytes: 1024,
  maxMessageSizeInKilobytes: 256,
  requiresDuplicateDetection: false,
  duplicateDetectionHistoryTimeWindow: 'PT10M',
  enableBatchedOperations: true,
  status: 'Active',
  supportOrdering: true,
  autoDeleteOnIdle: 'PT5M',
  enablePartitioning: false,
  enableExpress: false
}
{
  id: '/subscriptions/3bcbba3b-6ac7-4bee-8398-d653b19a66c6/resourceGroups/localsandbox-uswest2-dev/providers/Microsoft.ServiceBus/namespaces/localsandbox-uswest2-dev/topics/a254e867-ec93-4fce-b7f1-49feb7106bf8/subscriptions/56bc3d0a-9dbe-48e5-87c7-8c46d21ee6fc',
  name: '56bc3d0a-9dbe-48e5-87c7-8c46d21ee6fc',
  type: 'Microsoft.ServiceBus/namespaces/topics/subscriptions',
  location: 'westus2',
  messageCount: 0,
  createdAt: 2024-09-10T02:42:08.175Z,
  accessedAt: 2024-09-10T02:42:08.177Z,
  updatedAt: 2024-09-10T02:42:08.175Z,
  countDetails: {
    activeMessageCount: 0,
    deadLetterMessageCount: 0,
    scheduledMessageCount: 0,
    transferMessageCount: 0,
    transferDeadLetterMessageCount: 0
  },
  lockDuration: 'PT1M',
  requiresSession: false,
  defaultMessageTimeToLive: 'P10675199DT2H48M5.4775807S',
  deadLetteringOnFilterEvaluationExceptions: true,
  deadLetteringOnMessageExpiration: false,
  maxDeliveryCount: 10,
  status: 'Active',
  enableBatchedOperations: true,
  autoDeleteOnIdle: 'PT5M',
  isClientAffine: false
}
linear[bot] commented 2 months ago
LOC-206 Ensure queue defaults are properly populated

``` { id: '/subscriptions/3bcbba3b-6ac7-4bee-8398-d653b19a66c6/resourceGroups/localsandbox-uswest2-dev/providers/Microsoft.ServiceBus/namespaces/localsandbox-uswest2-dev/queues/e599c44f-2bea-4b08-8d16-b82919fc50d4', name: 'e599c44f-2bea-4b08-8d16-b82919fc50d4', type: 'Microsoft.ServiceBus/namespaces/queues', location: 'westus2', countDetails: { activeMessageCount: 0, deadLetterMessageCount: 0, scheduledMessageCount: 0, transferMessageCount: 0, transferDeadLetterMessageCount: 0 }, createdAt: 2024-09-02T18:21:22.050Z, updatedAt: 2024-09-02T18:21:22.360Z, accessedAt: 0001-01-01T07:52:58.000Z, sizeInBytes: 0, messageCount: 0, lockDuration: 'PT1M', maxSizeInMegabytes: 1024, maxMessageSizeInKilobytes: 256, requiresDuplicateDetection: false, requiresSession: false, defaultMessageTimeToLive: 'P10675199DT2H48M5.4775807S', deadLetteringOnMessageExpiration: false, duplicateDetectionHistoryTimeWindow: 'PT10M', maxDeliveryCount: 10, status: 'Active', enableBatchedOperations: true, autoDeleteOnIdle: 'PT5M', enablePartitioning: false, enableExpress: false } ```