π§ Google Storage Bucket with Log Sink does not have Versioning - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/google/storage/bucket-versioning/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-10-25T12:02:55.468317869Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | 002 | βοΈ 199 | βοΈ CA10G1__Google_Logging_Log_Sinks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | 003 | βοΈ 299 | βοΈ extract('CA10__retentionPolicyLock__c') == 'Locked' | βοΈ null |
| π’ | 004 | βοΈ 399 | βοΈ extract('CA10__versioningEnabled__c') == true | βοΈ null |
| π’ | 005 | βοΈ 400 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/storage/bucket-versioning/policy.yaml | 397748D145CC7E5363D8B89345BDA8C5 |
| Open | /ce/ca/google/storage/bucket-versioning/prod.logic.yaml | 35536A3D71A63F8C145742E1A9CD69D1 |
| Open | /ce/ca/google/storage/bucket-versioning/test-data.json | EEA534C06A95C9B41650DD759619CB3C |
| Open | /types/CA10__CaGoogleStorageBucket__c/object.extracts.yaml | F35F8474989DF19B98A57A3AFBD1F626 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/google/storage/bucket-versioning/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/storage/bucket-versioning/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/storage/bucket-versioning/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/storage/bucket-versioning/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/storage/bucket-versioning/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleStorageBucket__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleStorageBucket__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The bucket is a log sink destination."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10G1__Google_Logging_Log_Sinks__r"
- status: "INAPPLICABLE"
currentStateMessage: "The storage bucket has a locked retention policy."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__retentionPolicyLock__c"
right:
TEXT: "Locked"
- status: "COMPLIANT"
currentStateMessage: "Versioning is enabled on this storage bucket."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__versioningEnabled__c"
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Versioning is not enabled on this storage bucket."
remediationMessage: "Enable Versioning on this bucket."
relatedLists:
- relationshipName: "CA10G1__Google_Logging_Log_Sinks__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a Log Sink with a storage bucket destination."