Skip to main content

🧠 vCenter Virtual Machine Should Have Breeze Agent Installed - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• vCenter Virtual MachineCA10V__CaVCenterVirtualMachine__c111

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:46:43.090447461Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10V__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('breezeLastUpdate').isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('breezeLastUpdate').beyondLastDays(1)βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/breeze/coverage/vcenter-virtual-machine/policy.yamlAFF9AADA0CA5D4A040CDFAA4471F3068
Open/ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml723778BDF7166255E9AE52FBDB7F1B60
Open/ce/ca/breeze/coverage/test-data-ca10v.jsonCA696E13D585B17EC51473B3CB6F57C4
Open/types/CA10V__CaVCenterVirtualMachine__c/breeze.extracts.yaml138F0158B399E858B7857882E002AF0F

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/breeze/coverage/vcenter-virtual-machine/prod.logic.yaml

Content​

Open File

---
inputType: CA10V__CaVCenterVirtualMachine__c
importExtracts:
- file: /types/CA10V__CaVCenterVirtualMachine__c/breeze.extracts.yaml
testData:
- file: ../test-data-ca10v.json
conditions:
- status: INCOMPLIANT
currentStateMessage: Virtual machine never had breeze agent installed
remediationMessage: Install breeze agent on the virtual machine
check:
IS_EMPTY:
arg:
EXTRACT: breezeLastUpdate
- status: INCOMPLIANT
currentStateMessage: Virtual machine latest breeze report was more than a day ago
remediationMessage: Re-install breeze agent on the virtual machine and make sure it is reporting
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 1
arg:
EXTRACT: breezeLastUpdate
otherwise:
status: COMPLIANT
currentStateMessage: Virtual machine has breeze agent installed and has a recent report