π§ Premium Azure Service Bus namespace has no queues or topics - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π Azure Service Bus Namespace
- π Azure Service Bus Namespace - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-09-22T15:06:46.640102591Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | gone | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | missing-provisioning-state | βοΈ 199 | βοΈ extract('CA10__provisioningState__c').isEmpty() | βοΈ null |
| π’ | failed-provisioning | βοΈ 299 | βοΈ extract('CA10__provisioningState__c') != 'Succeeded' | βοΈ null |
| π’ | missing-tier | βοΈ 399 | βοΈ extract('CA10__skuTier__c').isEmpty() | βοΈ null |
| π’ | standard-empty | βοΈ 499 | βοΈ extract('CA10__skuTier__c') != 'Premium' | βοΈ null |
| π’ | missing-created-at | βοΈ 599 | βοΈ extract('CA10__createdAt__c').isEmpty() | βοΈ null |
| π’ | age-boundary | βοΈ 699 | βοΈ extract('CA10__createdAt__c').withinLastDays(30) | βοΈ null |
| π’ | queue-without-id | βοΈ 799 | βοΈ CA10__Azure_Service_Bus_Queues__r.has(UNDETERMINED) || CA10__Azure_Service_Bus_Topics__r.has(UNDETERMINED) | βοΈ null |
| π’ | empty | βοΈ 899 | βοΈ CA10__Azure_Service_Bus_Queues__r.hasNo(COMPLIANT) && CA10__Azure_Service_Bus_Topics__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | only-disappeared-entities | βοΈ 899 | βοΈ CA10__Azure_Service_Bus_Queues__r.hasNo(COMPLIANT) && CA10__Azure_Service_Bus_Topics__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | active-queue | βοΈ 900 | βοΈ otherwise | βοΈ null |
| π’ | active-topic | βοΈ 900 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/service-bus/premium-namespace-without-entities/policy.yaml | 0892E2C65B35F2CFFA8B61450D1271F1 |
| Open | /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml | 271B8D4745DF9FEFB4C50A595C521D8F |
| Open | /ce/ca/azure/service-bus/premium-namespace-without-entities/test-data.json | 730E9B32C258E41458463A7FE2765575 |
| Open | /types/CA10__CaAzureServiceBusNamespace__c/object.extracts.yaml | D288C34F0B6140DB0C4BF2C0CE1727AC |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/service-bus/premium-namespace-without-entities/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureServiceBusNamespace__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureServiceBusNamespace__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Provisioning state is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__provisioningState__c"
- status: "INAPPLICABLE"
currentStateMessage: "The namespace is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "UNDETERMINED"
currentStateMessage: "SKU tier is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__skuTier__c"
- status: "INAPPLICABLE"
currentStateMessage: "The namespace does not use the Premium tier."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__skuTier__c"
right:
TEXT: "Premium"
- status: "UNDETERMINED"
currentStateMessage: "Creation time is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__createdAt__c"
- status: "INAPPLICABLE"
currentStateMessage: "The namespace is within its first 30 days."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10__createdAt__c"
- status: "UNDETERMINED"
currentStateMessage: "A related queue or topic could not be evaluated."
check:
OR:
args:
- RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10__Azure_Service_Bus_Queues__r"
- RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10__Azure_Service_Bus_Topics__r"
- status: "INCOMPLIANT"
currentStateMessage: "The Premium Service Bus namespace has no current queues or topics."
remediationMessage: "Confirm the namespace is unused, then remove it or move required entities to an appropriate namespace."
check:
AND:
args:
- RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10__Azure_Service_Bus_Queues__r"
- RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10__Azure_Service_Bus_Topics__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Premium Service Bus namespace has a current queue or topic."
relatedLists:
- relationshipName: "CA10__Azure_Service_Bus_Queues__r"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This queue currently exists in CMDB."
check:
NOT_EMPTY:
arg:
FIELD:
path: "Id"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The queue record has no identifier."
- relationshipName: "CA10__Azure_Service_Bus_Topics__r"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This topic currently exists in CMDB."
check:
NOT_EMPTY:
arg:
FIELD:
path: "Id"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The topic record has no identifier."