--- policy: /ce/ca/aws/ec2/instance-os-support logic: /ce/ca/aws/ec2/instance-os-support/prod.logic.yaml executionTime: 2026-10-30T18:09:22.725959621Z generationMs: 93 executionMs: 1083 rows: - id: supported-after-eoas match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: extended-eligible-not-entitled match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() runtimeError: {} - id: not-maintained match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__osInfoMaintained__c') == 'No' actual: extract('CA10__osInfoMaintained__c') == 'No' runtimeError: {} - id: ordinary-eol-without-extension match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: final-support-ended match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 699 actual: 699 conditionText: expected: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() actual: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() runtimeError: {} - id: eol-exact-boundary match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 1100 actual: 1100 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: eol-day-before match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: eoes-exact-boundary match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: missing-lincoln-enrichment match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: missing-source-with-dates match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: alternate-source-with-valid-lifecycle match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: missing-maintained match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10__osInfoMaintained__c.isEmpty() actual: CA10__osInfoMaintained__c.isEmpty() runtimeError: {} - id: malformed-maintained match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 499 actual: 499 conditionText: expected: extract('CA10__osInfoMaintained__c') != 'Yes' actual: extract('CA10__osInfoMaintained__c') != 'Yes' runtimeError: {} - id: unknown-eol-extended-future match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 799 actual: 799 conditionText: expected: extract('CA10__osInfoEolFrom__c').isEmpty() actual: extract('CA10__osInfoEolFrom__c').isEmpty() runtimeError: {} - id: missing-state match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 101 actual: 101 conditionText: expected: CA10__stateName__c.isEmpty() actual: CA10__stateName__c.isEmpty() runtimeError: {} - id: unknown-state match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: stopped-supported match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: stopped-eol match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__osInfoMaintained__c') == 'No' actual: extract('CA10__osInfoMaintained__c') == 'No' runtimeError: {} - id: terminated match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))" actual: "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))" runtimeError: {} - id: shutting-down match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 199 actual: 199 conditionText: expected: "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))" actual: "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))" runtimeError: {} - id: disappeared match: true status: expected: DISAPPEARED actual: DISAPPEARED conditionIndex: expected: 99 actual: 99 conditionText: expected: isDisappeared(CA10__disappearanceTime__c) actual: isDisappeared(CA10__disappearanceTime__c) runtimeError: {} - id: inconsistent-eoes-before-eol match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 599 actual: 599 conditionText: expected: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').afterToday() && not(extract('CA10__osInfoEoesFrom__c').afterToday()) actual: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').afterToday() && not(extract('CA10__osInfoEoesFrom__c').afterToday()) runtimeError: {} - id: alternate-source-past-eol match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: alternate-source-not-maintained match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__osInfoMaintained__c') == 'No' actual: extract('CA10__osInfoMaintained__c') == 'No' runtimeError: {} - id: missing-source-with-expired-lifecycle match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: alternate-source-missing-eol match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 799 actual: 799 conditionText: expected: extract('CA10__osInfoEolFrom__c').isEmpty() actual: extract('CA10__osInfoEolFrom__c').isEmpty() runtimeError: {} - id: whitespace-source-with-valid-lifecycle match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: final-support-ended-without-ordinary-eol match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 699 actual: 699 conditionText: expected: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() actual: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() runtimeError: {} - id: al2023-maintenance-phase-supported match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: windows2016-after-mainstream-support match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: rhel79-els-available-entitlement-unknown match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() runtimeError: {} - id: eol-day-after match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: eol-transition-with-extended-window match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 1100 actual: 1100 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: eol-transition-explicitly-unmaintained match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10__osInfoMaintained__c') == 'No' actual: extract('CA10__osInfoMaintained__c') == 'No' runtimeError: {} - id: eoes-day-before match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday() runtimeError: {} - id: eoes-day-after match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 699 actual: 699 conditionText: expected: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() actual: extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday() runtimeError: {} - id: eoes-transition-missing-ordinary-eol match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 799 actual: 799 conditionText: expected: extract('CA10__osInfoEolFrom__c').isEmpty() actual: extract('CA10__osInfoEolFrom__c').isEmpty() runtimeError: {} - id: private-old-image-current-guest-supported match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: missing-image-supported-guest match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: deleted-image-unsupported-guest match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: marketplace-without-enrichment match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: byol-without-enrichment match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10__osInfoSource__c').isEmpty() actual: extract('CA10__osInfoSource__c').isEmpty() runtimeError: {} - id: custom-unknown-release-no-eol match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 799 actual: 799 conditionText: expected: extract('CA10__osInfoEolFrom__c').isEmpty() actual: extract('CA10__osInfoEolFrom__c').isEmpty() runtimeError: {} - id: fresh-image-expired-guest match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10__osInfoEolFrom__c').beforeToday() actual: extract('CA10__osInfoEolFrom__c').beforeToday() runtimeError: {} - id: pending-supported match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: stopping-supported match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} - id: normalized-maintained-value match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 899 actual: 899 conditionText: expected: extract('CA10__osInfoEolFrom__c').afterToday() actual: extract('CA10__osInfoEolFrom__c').afterToday() runtimeError: {} usedFiles: - path: /ce/ca/aws/ec2/instance-os-support/policy.yaml md5Hash: 17646CF9EED6D7EF663DA17170AD03A1 content: | --- names: full: AWS EC2 Instance OS is no longer maintained or is past ordinary EOL contextual: Instance OS is no longer maintained or is past ordinary EOL description: > Ensure that the installed operating system release remains before its ordinary end of life and is maintained. Catalog extended support availability does not establish that an instance has the required support entitlement. type: COMPLIANCE_POLICY categories: - RELIABILITY frameworkMappings: - /frameworks/cloudaware/resource-reliability/infrastructure-modernization - path: /ce/ca/aws/ec2/instance-os-support/prod.logic.yaml md5Hash: 5A0448A2B2A492450C1FB2C7531F9404 content: |+ --- inputType: CA10__CaAwsInstance__c testData: - file: test-data.json importExtracts: - file: /types/CA10__CaAwsInstance__c/object.extracts.yaml conditions: - status: INAPPLICABLE currentStateMessage: The EC2 instance is terminated or shutting down. check: CONTAINS: arg: SET: itemType: TEXT items: - terminated - shutting-down search: EXTRACT: CA10__stateName__c - status: INAPPLICABLE currentStateMessage: No OS lifecycle enrichment source is available for this instance. check: IS_EMPTY: arg: EXTRACT: CA10__osInfoSource__c - status: INCOMPLIANT currentStateMessage: The installed OS release is explicitly marked as no longer maintained. remediationMessage: Upgrade or rebuild on a supported OS release after compatibility testing. check: IS_EQUAL: left: EXTRACT: CA10__osInfoMaintained__c right: TEXT: 'No' - status: UNDETERMINED currentStateMessage: The OS lifecycle maintained indicator is unrecognized. check: NOT_EQUAL: left: EXTRACT: CA10__osInfoMaintained__c right: TEXT: 'Yes' - status: UNDETERMINED currentStateMessage: The OS extended-support date precedes ordinary EOL; lifecycle enrichment is inconsistent. check: AND: args: - NOT_EMPTY: arg: EXTRACT: CA10__osInfoEoesFrom__c - NOT_EMPTY: arg: EXTRACT: CA10__osInfoEolFrom__c - IS_AFTER_TODAY: arg: EXTRACT: CA10__osInfoEolFrom__c - NOT: arg: IS_AFTER_TODAY: arg: EXTRACT: CA10__osInfoEoesFrom__c # shortcut: lifecycle dates omit vendor cutoff timezones; use exact vendor instants when available. - status: INCOMPLIANT currentStateMessage: The installed OS release has reached the end of its known extended-support window. remediationMessage: Upgrade or rebuild on a supported OS release after compatibility testing. check: AND: args: - NOT_EMPTY: arg: EXTRACT: CA10__osInfoEoesFrom__c - IS_BEFORE_TODAY: arg: EXTRACT: CA10__osInfoEoesFrom__c - status: INAPPLICABLE currentStateMessage: No ordinary OS EOL date is available to assess standard-support expiry. check: IS_EMPTY: arg: EXTRACT: CA10__osInfoEolFrom__c # EOAS is not used: ending active support alone does not end security support. - status: COMPLIANT currentStateMessage: The installed OS release is maintained and its ordinary end-of-life date is in the future. check: IS_AFTER_TODAY: arg: EXTRACT: CA10__osInfoEolFrom__c - status: INCOMPLIANT currentStateMessage: The installed OS release is past ordinary EOL; a catalog extended-support window remains but entitlement is unverified. remediationMessage: Upgrade the OS or verify and document a time-limited extended-support exception and entitlement. check: AND: args: - IS_BEFORE_TODAY: arg: EXTRACT: CA10__osInfoEolFrom__c - NOT_EMPTY: arg: EXTRACT: CA10__osInfoEoesFrom__c - IS_AFTER_TODAY: arg: EXTRACT: CA10__osInfoEoesFrom__c - status: INCOMPLIANT currentStateMessage: The installed OS release is past ordinary EOL without a known future extended-support date. remediationMessage: Upgrade or rebuild on a supported OS release, verifying any alternative support arrangement separately. check: IS_BEFORE_TODAY: arg: EXTRACT: CA10__osInfoEolFrom__c otherwise: status: INAPPLICABLE currentStateMessage: The ordinary OS EOL date falls on the current UTC day; verify the vendor cutoff and refresh lifecycle enrichment. - path: /ce/ca/aws/ec2/instance-os-support/test-data.json md5Hash: 7174F448BA10388C9D62DA764AE979E5 content: | [ { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "supported-after-eoas", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2024-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2029-05-31T00:00:00Z", "Id": "extended-eligible-not-entitled", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "999", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "No", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "not-maintained", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "399", "conditionText": "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2026-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "ordinary-eol-without-extension", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2020-11-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2024-06-30T00:00:00Z", "Id": "final-support-ended", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "699", "conditionText": "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2029-06-30T00:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "eol-exact-boundary", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "1100", "conditionText": "otherwise", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2029-06-29T23:59:59Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "eol-day-before", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2024-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2026-10-23T00:00:00Z", "Id": "eoes-exact-boundary", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-lincoln-enrichment", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": null, "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-source-with-dates", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "ami", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "alternate-source-with-valid-lifecycle", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-maintained", "expectedResult": { "status": "UNDETERMINED", "conditionIndex": "301", "conditionText": "CA10__osInfoMaintained__c.isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "unknown", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "malformed-maintained", "expectedResult": { "status": "UNDETERMINED", "conditionIndex": "499", "conditionText": "extract('CA10__osInfoMaintained__c') != 'Yes'", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2030-01-01T00:00:00Z", "Id": "unknown-eol-extended-future", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "799", "conditionText": "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": null, "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-state", "expectedResult": { "status": "UNDETERMINED", "conditionIndex": "101", "conditionText": "CA10__stateName__c.isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "unknown", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "unknown-state", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "stopped", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "stopped-supported", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "No", "CA10__stateName__c": "stopped", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "stopped-eol", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "399", "conditionText": "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "terminated", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "terminated", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "199", "conditionText": "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "shutting-down", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "shutting-down", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "199", "conditionText": "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))", "runtimeError": null } }, { "CA10__disappearanceTime__c": "2026-10-22T00:00:00Z", "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "disappeared", "expectedResult": { "status": "DISAPPEARED", "conditionIndex": "99", "conditionText": "isDisappeared(CA10__disappearanceTime__c)", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2024-06-30T00:00:00Z", "Id": "inconsistent-eoes-before-eol", "expectedResult": { "status": "UNDETERMINED", "conditionIndex": "599", "conditionText": "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').afterToday() && not(extract('CA10__osInfoEoesFrom__c').afterToday())", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "inventory-provider", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2026-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "alternate-source-past-eol", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "inventory-provider", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "No", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "alternate-source-not-maintained", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "399", "conditionText": "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2020-01-01T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-source-with-expired-lifecycle", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null }, "CA10__osInfoSource__c": null }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "inventory-provider", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "alternate-source-missing-eol", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "799", "conditionText": "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": " ", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "whitespace-source-with-valid-lifecycle", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2024-01-09T00:00:00Z", "CA10__osInfoEoesFrom__c": "2024-06-30T00:00:00Z", "Id": "final-support-ended-without-ordinary-eol", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "699", "conditionText": "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2028-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "al2023-maintenance-phase-supported", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2027-01-12T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2022-01-11T00:00:00Z", "CA10__osInfoEoesFrom__c": "2030-01-12T00:00:00Z", "Id": "windows2016-after-mainstream-support", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null }, "CA10__platformDetails__c": "Windows BYOL" }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2024-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": "2029-05-31T00:00:00Z", "Id": "rhel79-els-available-entitlement-unknown", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "999", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2029-07-01T00:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "eol-day-after", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2029-06-30T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": "2033-05-31T00:00:00Z", "Id": "eol-transition-with-extended-window", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "1100", "conditionText": "otherwise", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2029-06-30T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "No", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "eol-transition-explicitly-unmaintained", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "399", "conditionText": "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2024-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": "2026-10-27T00:00:00Z", "Id": "eoes-day-before", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "999", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2024-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": "2026-10-25T00:00:00Z", "Id": "eoes-day-after", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "699", "conditionText": "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": "2026-10-26T00:00:00Z", "Id": "eoes-transition-missing-ordinary-eol", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "799", "conditionText": "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "private-old-image-current-guest-supported", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null }, "CA10__platformDetails__c": "Linux/UNIX", "CA10__image__c": "synthetic-private-image", "CA10__image__r": { "Id": "synthetic-private-image", "CA10__creationDate__c": "2018-01-01T00:00:00Z", "CA10__platformDetails__c": "Linux/UNIX", "CA10__disappearanceTime__c": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "missing-image-supported-guest", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null }, "CA10__image__c": null }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2026-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "deleted-image-unsupported-guest", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null }, "CA10__image__c": "synthetic-deleted-image", "CA10__image__r": { "Id": "synthetic-deleted-image", "CA10__disappearanceTime__c": "2026-10-01T00:00:00Z" } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": null, "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": null, "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "marketplace-without-enrichment", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null }, "CA10__platformDetails__c": "Red Hat Enterprise Linux", "CA10__image__c": "synthetic-marketplace-image" }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "byol-without-enrichment", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "299", "conditionText": "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError": null }, "CA10__platformDetails__c": "Windows BYOL" }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": null, "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "custom-unknown-release-no-eol", "expectedResult": { "status": "INAPPLICABLE", "conditionIndex": "799", "conditionText": "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError": null }, "CA10__platformDetails__c": "Linux/UNIX" }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2026-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "fresh-image-expired-guest", "expectedResult": { "status": "INCOMPLIANT", "conditionIndex": "1099", "conditionText": "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError": null }, "CA10__image__c": "synthetic-fresh-image", "CA10__image__r": { "Id": "synthetic-fresh-image", "CA10__creationDate__c": "2026-10-25T00:00:00Z", "CA10__disappearanceTime__c": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "pending", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "pending-supported", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": "Yes", "CA10__stateName__c": "stopping", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "stopping-supported", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } }, { "CA10__disappearanceTime__c": null, "CA10__osInfoSource__c": "breeze", "context": { "snapshotTime": "2026-10-26T12:00:00Z" }, "CA10__osInfoEolFrom__c": "2029-06-30T00:00:00Z", "CA10__osInfoMaintained__c": " YES ", "CA10__stateName__c": "running", "CA10__osInfoEoasFrom__c": "2027-06-30T00:00:00Z", "CA10__osInfoEoesFrom__c": null, "Id": "normalized-maintained-value", "expectedResult": { "status": "COMPLIANT", "conditionIndex": "899", "conditionText": "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError": null } } ] - path: /types/CA10__CaAwsInstance__c/object.extracts.yaml md5Hash: 6BDBD161D9C7C5EF90632F9B9E0AB177 content: "---\nextracts:\n# Values pending, applied. Not nullable. Can't have\ \ no access, retrieved via ec2:DescribeInstances\n - name: \"CA10__metadataState__c\"\ \n value: \n FIELD:\n path: \"CA10__metadataState__c\"\n \ \ undeterminedIf:\n isEmpty: \"Corrupted data. EC2 Instances Metadata\ \ State cannot be empty.\"\n# Values: optional, required. Not nullable. Can't\ \ have no access, retrieved via ec2:DescribeInstances\n - name: \"CA10__metadataHttpTokens__c\"\ \n value: \n FIELD:\n path: \"CA10__metadataHttpTokens__c\"\n\ \ undeterminedIf:\n isEmpty: \"Corrupted data. EC2 Instances\ \ Metadata Http Token cannot be empty.\"\n - name: CA10__iamInstanceProfileArn__c\n\ \ value:\n FIELD: \n path: CA10__iamInstanceProfileArn__c\n#\ \ Nullable. Can't have no access, retrieved via ec2:DescribeInstances\n - name:\ \ \"CA10__publicIpAddress__c\"\n value: \n FIELD:\n path: \"\ CA10__publicIpAddress__c\"\n# Values: enabled, disabled. Not nullable. Can't\ \ have no access, retrieved via ec2:DescribeInstances\n - name: \"CA10__monitoringState__c\"\ \n value: \n FIELD:\n path: \"CA10__monitoringState__c\"\n \ \ undeterminedIf:\n isEmpty: \"Corrupted data. EC2 Instances Detailed\ \ Monitoring State cannot be empty.\"\n# Values: pending | running | shutting-down\ \ | terminated | stopping | stopped. Not nullable.\n - name: \"CA10__stateName__c\"\ \n value: \n FIELD:\n path: \"CA10__stateName__c\"\n undeterminedIf:\n\ \ isEmpty: \"Corrupted data. EC2 Instance State Name cannot be empty.\"\ \n# Number of Days. Nullable. Can't have no access, retrieved via ec2:DescribeInstances\n\ \ - name: \"CA10__currentRunningTime__c\"\n value: \n FIELD:\n \ \ path: \"CA10__currentRunningTime__c\" \n# Nullable.\n - name: \"\ CA10__averageCpuTwoWeeks__c\"\n value: \n FIELD:\n path: \"CA10__averageCpuTwoWeeks__c\"\ \ \n# Nullable.\n - name: \"CA10__maxCpuTwoWeeks__c\"\n value: \n \ \ FIELD:\n path: \"CA10__maxCpuTwoWeeks__c\" \n# Nullable.\n\ \ - name: \"CA10__sumTwoWeekNetworkOutMb__c\"\n value: \n FIELD:\n\ \ path: \"CA10__sumTwoWeekNetworkOutMb__c\" \n# Nullable.\n - name:\ \ \"CA10__sumTwoWeekNetworkInMb__c\"\n value: \n FIELD:\n path:\ \ \"CA10__sumTwoWeekNetworkInMb__c\" \n # Nullable.\n - name: \"CA10N__newRelicHost__c\"\ \n value:\n FIELD:\n path: \"CA10N__newRelicHost__c\"\n # Nullable.\ \ \n - name: \"CA10N__newRelicHostCpuUsed__c\"\n value:\n FIELD:\n\ \ path: \"CA10N__newRelicHostCpuUsed__c\"\n # Nullable.\n - name: \"\ CA10N__newRelicHostMemoryUsed14Day__c\"\n value:\n FIELD:\n path:\ \ \"CA10N__newRelicHostMemoryUsed14Day__c\"\n # Nullable.\n - name: \"CA10__averageMemoryUsedTwoWeeks__c\"\ \n value:\n FIELD:\n path: \"CA10__averageMemoryUsedTwoWeeks__c\"\ \n # Nullable.\n - name: \"CA10__nagiosMemoryUtilization__c\"\n value:\n\ \ FIELD:\n path: \"CA10__nagiosMemoryUtilization__c\"\n # Nullable.\n\ \ - name: \"CA10N__newRelicHostDiskUtilization__c\"\n value:\n FIELD:\n\ \ path: \"CA10N__newRelicHostDiskUtilization__c\"\n # Nullable.\n -\ \ name: \"CA10N__newRelicHostDiskReadUtilization__c\"\n value:\n FIELD:\n\ \ path: \"CA10N__newRelicHostDiskReadUtilization__c\"\n # Nullable.\n\ \ - name: \"CA10N__newRelicHostDiskWriteUtilization__c\"\n value:\n \ \ FIELD:\n path: \"CA10N__newRelicHostDiskWriteUtilization__c\"\n #\ \ Nullable.\n - name: \"CA10__regionName__c\"\n value:\n FIELD:\n \ \ path: \"CA10__regionName__c\"\n# Values: paravirtual | hvm. Not nullable.\ \ Can't have no access, retrieved via ec2:DescribeInstances\n - name: \"CA10__virtualizationType__c\"\ \n value: \n FIELD:\n path: \"CA10__virtualizationType__c\"\n\ \ undeterminedIf:\n isEmpty: \"Corrupted data. EC2 Instances\ \ Virtualization Type cannot be empty.\"\n # Nullable when OS lifecycle enrichment\ \ is unavailable.\n - name: CA10__osInfoSource__c\n value:\n FIELD:\n\ \ path: CA10__osInfoSource__c\n # Nullable\n - name: CA10__osInfoMaintained__c\n\ \ value:\n FIELD:\n path: CA10__osInfoMaintained__c\n \ \ undeterminedIf:\n isEmpty: The OS lifecycle maintained indicator\ \ is missing.\n # Nullable\n - name: CA10__osInfoEolFrom__c\n value:\n\ \ FIELD:\n path: CA10__osInfoEolFrom__c\n # Nullable\n - name:\ \ CA10__osInfoEoesFrom__c\n value:\n FIELD:\n path: CA10__osInfoEoesFrom__c\n" script: |- CREATE TEMP FUNCTION mock_ExpectedResult() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "Id" : "supported-after-eoas", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "extended-eligible-not-entitled", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "999", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "not-maintained", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "399", "conditionText" : "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError" : null } }, { "Id" : "ordinary-eol-without-extension", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "final-support-ended", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "699", "conditionText" : "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "eol-exact-boundary", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "1100", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "eol-day-before", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "eoes-exact-boundary", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "missing-lincoln-enrichment", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "missing-source-with-dates", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "alternate-source-with-valid-lifecycle", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "missing-maintained", "expectedResult" : { "status" : "UNDETERMINED", "conditionIndex" : "301", "conditionText" : "CA10__osInfoMaintained__c.isEmpty()", "runtimeError" : null } }, { "Id" : "malformed-maintained", "expectedResult" : { "status" : "UNDETERMINED", "conditionIndex" : "499", "conditionText" : "extract('CA10__osInfoMaintained__c') != 'Yes'", "runtimeError" : null } }, { "Id" : "unknown-eol-extended-future", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "799", "conditionText" : "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError" : null } }, { "Id" : "missing-state", "expectedResult" : { "status" : "UNDETERMINED", "conditionIndex" : "101", "conditionText" : "CA10__stateName__c.isEmpty()", "runtimeError" : null } }, { "Id" : "unknown-state", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "stopped-supported", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "stopped-eol", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "399", "conditionText" : "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError" : null } }, { "Id" : "terminated", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "199", "conditionText" : "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))", "runtimeError" : null } }, { "Id" : "shutting-down", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "199", "conditionText" : "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))", "runtimeError" : null } }, { "Id" : "disappeared", "expectedResult" : { "status" : "DISAPPEARED", "conditionIndex" : "99", "conditionText" : "isDisappeared(CA10__disappearanceTime__c)", "runtimeError" : null } }, { "Id" : "inconsistent-eoes-before-eol", "expectedResult" : { "status" : "UNDETERMINED", "conditionIndex" : "599", "conditionText" : "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').afterToday() && not(extract('CA10__osInfoEoesFrom__c').afterToday())", "runtimeError" : null } }, { "Id" : "alternate-source-past-eol", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "alternate-source-not-maintained", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "399", "conditionText" : "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError" : null } }, { "Id" : "missing-source-with-expired-lifecycle", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "alternate-source-missing-eol", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "799", "conditionText" : "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError" : null } }, { "Id" : "whitespace-source-with-valid-lifecycle", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "final-support-ended-without-ordinary-eol", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "699", "conditionText" : "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "al2023-maintenance-phase-supported", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "windows2016-after-mainstream-support", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "rhel79-els-available-entitlement-unknown", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "999", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "eol-day-after", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "eol-transition-with-extended-window", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "1100", "conditionText" : "otherwise", "runtimeError" : null } }, { "Id" : "eol-transition-explicitly-unmaintained", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "399", "conditionText" : "extract('CA10__osInfoMaintained__c') == 'No'", "runtimeError" : null } }, { "Id" : "eoes-day-before", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "999", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "eoes-day-after", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "699", "conditionText" : "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "eoes-transition-missing-ordinary-eol", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "799", "conditionText" : "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError" : null } }, { "Id" : "private-old-image-current-guest-supported", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "missing-image-supported-guest", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "deleted-image-unsupported-guest", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "marketplace-without-enrichment", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "byol-without-enrichment", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "299", "conditionText" : "extract('CA10__osInfoSource__c').isEmpty()", "runtimeError" : null } }, { "Id" : "custom-unknown-release-no-eol", "expectedResult" : { "status" : "INAPPLICABLE", "conditionIndex" : "799", "conditionText" : "extract('CA10__osInfoEolFrom__c').isEmpty()", "runtimeError" : null } }, { "Id" : "fresh-image-expired-guest", "expectedResult" : { "status" : "INCOMPLIANT", "conditionIndex" : "1099", "conditionText" : "extract('CA10__osInfoEolFrom__c').beforeToday()", "runtimeError" : null } }, { "Id" : "pending-supported", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "stopping-supported", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } }, { "Id" : "normalized-maintained-value", "expectedResult" : { "status" : "COMPLIANT", "conditionIndex" : "899", "conditionText" : "extract('CA10__osInfoEolFrom__c').afterToday()", "runtimeError" : null } } ]; """; CREATE TEMP FUNCTION mock_CA10__CaAwsInstance__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "supported-after-eoas" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2029-05-31T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "extended-eligible-not-entitled" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "No", "Id" : "not-maintained" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2026-06-30T00:00:00Z"), "Id" : "ordinary-eol-without-extension" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2024-06-30T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2020-11-30T00:00:00Z"), "Id" : "final-support-ended" }, { "context" : { "snapshotTime" : new Date("2029-06-30T00:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "eol-exact-boundary" }, { "context" : { "snapshotTime" : new Date("2029-06-29T23:59:59Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "eol-day-before" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2026-10-23T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "eoes-exact-boundary" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "", "CA10__osInfoMaintained__c" : "", "Id" : "missing-lincoln-enrichment" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : null, "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "missing-source-with-dates" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "ami", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "alternate-source-with-valid-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "missing-maintained" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "unknown", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "malformed-maintained" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2030-01-01T00:00:00Z"), "Id" : "unknown-eol-extended-future" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : null, "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "missing-state" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "unknown", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "unknown-state" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "stopped", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "stopped-supported" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "stopped", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "No", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "stopped-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "terminated", "CA10__osInfoSource__c" : "", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "terminated" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "shutting-down", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "shutting-down" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__disappearanceTime__c" : new Date("2026-10-22T00:00:00Z"), "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "disappeared" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2024-06-30T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "inconsistent-eoes-before-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "inventory-provider", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2026-06-30T00:00:00Z"), "Id" : "alternate-source-past-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "inventory-provider", "CA10__osInfoMaintained__c" : "No", "Id" : "alternate-source-not-maintained" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : null, "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2020-01-01T00:00:00Z"), "Id" : "missing-source-with-expired-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "inventory-provider", "CA10__osInfoMaintained__c" : "Yes", "Id" : "alternate-source-missing-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : " ", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "whitespace-source-with-valid-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "final-support-ended-without-ordinary-eol" }, { "context" : { "snapshotTime" : new Date("2028-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "al2023-maintenance-phase-supported" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2030-01-12T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2027-01-12T00:00:00Z"), "Id" : "windows2016-after-mainstream-support" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2029-05-31T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "rhel79-els-available-entitlement-unknown" }, { "context" : { "snapshotTime" : new Date("2029-07-01T00:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "eol-day-after" }, { "context" : { "snapshotTime" : new Date("2029-06-30T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2033-05-31T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "eol-transition-with-extended-window" }, { "context" : { "snapshotTime" : new Date("2029-06-30T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "No", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "eol-transition-explicitly-unmaintained" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2026-10-27T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "eoes-day-before" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2026-10-25T00:00:00Z"), "CA10__osInfoEolFrom__c" : new Date("2024-06-30T00:00:00Z"), "Id" : "eoes-day-after" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEoesFrom__c" : new Date("2026-10-26T00:00:00Z"), "Id" : "eoes-transition-missing-ordinary-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "private-old-image-current-guest-supported" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "missing-image-supported-guest" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2026-06-30T00:00:00Z"), "Id" : "deleted-image-unsupported-guest" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : null, "CA10__osInfoMaintained__c" : null, "Id" : "marketplace-without-enrichment" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "", "CA10__osInfoMaintained__c" : "", "Id" : "byol-without-enrichment" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "Id" : "custom-unknown-release-no-eol" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2026-06-30T00:00:00Z"), "Id" : "fresh-image-expired-guest" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "pending", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "pending-supported" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "stopping", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : "Yes", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "stopping-supported" }, { "context" : { "snapshotTime" : new Date("2026-10-26T12:00:00Z") }, "CA10__stateName__c" : "running", "CA10__osInfoSource__c" : "breeze", "CA10__osInfoMaintained__c" : " YES ", "CA10__osInfoEolFrom__c" : new Date("2029-06-30T00:00:00Z"), "Id" : "normalized-maintained-value" } ]; """; CREATE TEMP FUNCTION process_CA10__CaAwsInstance__c( obj STRUCT< CA10__disappearanceTime__c TIMESTAMP, CA10__stateName__c STRING, CA10__osInfoSource__c STRING, CA10__osInfoMaintained__c STRING, CA10__osInfoEoesFrom__c TIMESTAMP, CA10__osInfoEolFrom__c TIMESTAMP, Id STRING >, snapshotTime TIMESTAMP ) RETURNS STRUCT DETERMINISTIC LANGUAGE js AS r""" var IsEmptyLib = new function () { this.simpleIsEmpty = function(arg) { return arg == null; }; this.simpleIsNotEmpty = function(arg) { return arg != null; }; }(); var CollectionLib = new function () { this.parse = function(arg, separator, skipEmpty, skipDuplicates, sort, normalize) { if (arg == null) return []; let parts = arg.split(separator); return this.fromArray(parts, skipEmpty, skipDuplicates, sort, normalize); }; this.fromArray = function(arr, skipEmpty, skipDuplicates, sort, normalize) { if (arr == null) return []; let result = []; let seen = new Set(); arr.forEach(el => { let normalized = normalize ? TextLib.normalize(el) : BytesLib.normalize(el); if (!skipEmpty || (normalize ? TextLib.isNotEmpty(el) : BytesLib.isNotEmpty(el))) { if (!skipDuplicates || !seen.has(normalized)) { if (skipDuplicates) seen.add(normalized); result.push(normalized); } } }); if (sort) result.sort(); return result; }; this.equal = function(left, right) { left = left == null ? [] : left; right = right == null ? [] : right; if (left.length !== right.length) return false; for (let i = 0; i < left.length; i++) { if (left[i] !== right[i]) return false; } return true; }; this.notEqual = function(left, right) { return !this.equal(left, right); }; this.size = function(collection) { return collection == null ? 0 : collection.length; }; this.startsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[0] === normalizedSearch; }; this.endsWith = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search); return collection[collection.length - 1] === normalizedSearch; }; this.contains = function(collection, search, normalize) { if (collection == null || collection.length === 0) return false; return collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)); }; this.containsAll = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.every(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; this.containsAny = function(collection, searchArray, normalize) { if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false; return searchArray.some(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search))); }; }(); var BytesLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg; }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var TextLib = new function () { this.normalize = function(arg) { return arg == null ? '' : arg.replace(/\s+/g, ' ').trim().toLowerCase(); }; this.isEmpty = function(arg) { return this.normalize(arg) == ''; }; this.isNotEmpty = function(arg) { return this.normalize(arg) != ''; }; this.equal = function(left, right) { return this.normalize(left) == this.normalize(right); }; this.notEqual = function(left, right) { return this.normalize(left) != this.normalize(right); }; this.startsWith = function(arg, substring) { return this.normalize(arg).startsWith(this.normalize(substring)); }; this.endsWith = function(arg, substring) { return this.normalize(arg).endsWith(this.normalize(substring)); }; this.contains = function(arg, substring) { return this.normalize(arg).includes(this.normalize(substring)); }; this.containsAll = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.every(sub => normalizedArg.includes(this.normalize(sub))); }; this.containsAny = function(arg, substrings) { if (substrings == null || substrings.length === 0) return false; let normalizedArg = this.normalize(arg); return substrings.some(sub => normalizedArg.includes(this.normalize(sub))); }; }(); var todayPlus1Day = new Date(snapshotTime.toISOString().substr(0,10)+'T00:00:00.000Z').getTime() + (1 * 86400000); var today = new Date(snapshotTime.toISOString().substr(0,10)+'T00:00:00.000Z').getTime(); var references1 = []; // condition[0], conditionIndex:[0..99] references1.push('Deleted From AWS [CA10__disappearanceTime__c]: ' + obj.CA10__disappearanceTime__c); if (obj.CA10__disappearanceTime__c != null) { return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[1], conditionIndex:[100..199] function fieldChecked4() { if (TextLib.isEmpty(obj.CA10__stateName__c)) { throw new Error("UNDETERMINED condition:101", {cause: {status: 'UNDETERMINED', conditionIndex: 101, conditionText: "CA10__stateName__c.isEmpty()", currentStateMessage: "Corrupted data. EC2 Instance State Name cannot be empty.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__stateName__c; } function extract3() { if (!this.out) { this.out = fieldChecked4(); } return this.out; }; references1.push('State Name [obj.CA10__stateName__c]: ' + obj.CA10__stateName__c); try { if (CollectionLib.contains(CollectionLib.fromArray(['terminated', 'shutting-down'], true, true, true, true), extract3.call(extract3), true)) { return {status: 'INAPPLICABLE', conditionIndex: 199, conditionText: "setOfText(['terminated', 'shutting-down']).contains(extract('CA10__stateName__c'))", currentStateMessage: "The EC2 instance is terminated or shutting down.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[2], conditionIndex:[200..299] function extract6() { if (!this.out) { this.out = obj.CA10__osInfoSource__c; } return this.out; }; references1.push('OS Info: Source [obj.CA10__osInfoSource__c]: ' + obj.CA10__osInfoSource__c); if (TextLib.isEmpty(extract6.call(extract6))) { return {status: 'INAPPLICABLE', conditionIndex: 299, conditionText: "extract('CA10__osInfoSource__c').isEmpty()", currentStateMessage: "No OS lifecycle enrichment source is available for this instance.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[3], conditionIndex:[300..399] function fieldChecked10() { if (TextLib.isEmpty(obj.CA10__osInfoMaintained__c)) { throw new Error("UNDETERMINED condition:301", {cause: {status: 'UNDETERMINED', conditionIndex: 301, conditionText: "CA10__osInfoMaintained__c.isEmpty()", currentStateMessage: "The OS lifecycle maintained indicator is missing.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__osInfoMaintained__c; } function extract9() { if (!this.out) { this.out = fieldChecked10(); } return this.out; }; references1.push('OS Info: Maintained [obj.CA10__osInfoMaintained__c]: ' + obj.CA10__osInfoMaintained__c); try { if (TextLib.equal(extract9.call(extract9), 'No')) { return {status: 'INCOMPLIANT', conditionIndex: 399, conditionText: "extract('CA10__osInfoMaintained__c') == 'No'", currentStateMessage: "The installed OS release is explicitly marked as no longer maintained.", currentStateReferences: references1.join('\n'), remediation: "Upgrade or rebuild on a supported OS release after compatibility testing.", runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[4], conditionIndex:[400..499] function fieldChecked13() { if (TextLib.isEmpty(obj.CA10__osInfoMaintained__c)) { throw new Error("UNDETERMINED condition:401", {cause: {status: 'UNDETERMINED', conditionIndex: 401, conditionText: "CA10__osInfoMaintained__c.isEmpty()", currentStateMessage: "The OS lifecycle maintained indicator is missing.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10__osInfoMaintained__c; } function extract12() { if (!this.out) { this.out = fieldChecked13(); } return this.out; }; try { if (TextLib.notEqual(extract12.call(extract12), 'Yes')) { return {status: 'UNDETERMINED', conditionIndex: 499, conditionText: "extract('CA10__osInfoMaintained__c') != 'Yes'", currentStateMessage: "The OS lifecycle maintained indicator is unrecognized.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[5], conditionIndex:[500..599] function extract15() { if (!this.out) { this.out = obj.CA10__osInfoEoesFrom__c; } return this.out; }; function extract18() { if (!this.out) { this.out = obj.CA10__osInfoEolFrom__c; } return this.out; }; references1.push('OS Info: EOES From [obj.CA10__osInfoEoesFrom__c]: ' + obj.CA10__osInfoEoesFrom__c); references1.push('OS Info: EOL From [obj.CA10__osInfoEolFrom__c]: ' + obj.CA10__osInfoEolFrom__c); if (IsEmptyLib.simpleIsNotEmpty(extract15.call(extract15)) && IsEmptyLib.simpleIsNotEmpty(extract18.call(extract18)) && (extract18.call(extract18) != null && extract18.call(extract18).getTime() >= todayPlus1Day) && !(extract15.call(extract15) != null && extract15.call(extract15).getTime() >= todayPlus1Day)) { return {status: 'UNDETERMINED', conditionIndex: 599, conditionText: "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').isNotEmpty() && extract('CA10__osInfoEolFrom__c').afterToday() && not(extract('CA10__osInfoEoesFrom__c').afterToday())", currentStateMessage: "The OS extended-support date precedes ordinary EOL; lifecycle enrichment is inconsistent.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[6], conditionIndex:[600..699] function extract25() { if (!this.out) { this.out = obj.CA10__osInfoEoesFrom__c; } return this.out; }; if (IsEmptyLib.simpleIsNotEmpty(extract25.call(extract25)) && (extract25.call(extract25) != null && extract25.call(extract25).getTime() < today)) { return {status: 'INCOMPLIANT', conditionIndex: 699, conditionText: "extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').beforeToday()", currentStateMessage: "The installed OS release has reached the end of its known extended-support window.", currentStateReferences: references1.join('\n'), remediation: "Upgrade or rebuild on a supported OS release after compatibility testing.", runtimeError: null}; } // condition[7], conditionIndex:[700..799] function extract30() { if (!this.out) { this.out = obj.CA10__osInfoEolFrom__c; } return this.out; }; if (IsEmptyLib.simpleIsEmpty(extract30.call(extract30))) { return {status: 'INAPPLICABLE', conditionIndex: 799, conditionText: "extract('CA10__osInfoEolFrom__c').isEmpty()", currentStateMessage: "No ordinary OS EOL date is available to assess standard-support expiry.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[8], conditionIndex:[800..899] function extract33() { if (!this.out) { this.out = obj.CA10__osInfoEolFrom__c; } return this.out; }; if (extract33.call(extract33) != null && extract33.call(extract33).getTime() >= todayPlus1Day) { return {status: 'COMPLIANT', conditionIndex: 899, conditionText: "extract('CA10__osInfoEolFrom__c').afterToday()", currentStateMessage: "The installed OS release is maintained and its ordinary end-of-life date is in the future.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[9], conditionIndex:[900..999] function extract37() { if (!this.out) { this.out = obj.CA10__osInfoEolFrom__c; } return this.out; }; function extract41() { if (!this.out) { this.out = obj.CA10__osInfoEoesFrom__c; } return this.out; }; if ((extract37.call(extract37) != null && extract37.call(extract37).getTime() < today) && IsEmptyLib.simpleIsNotEmpty(extract41.call(extract41)) && (extract41.call(extract41) != null && extract41.call(extract41).getTime() >= todayPlus1Day)) { return {status: 'INCOMPLIANT', conditionIndex: 999, conditionText: "extract('CA10__osInfoEolFrom__c').beforeToday() && extract('CA10__osInfoEoesFrom__c').isNotEmpty() && extract('CA10__osInfoEoesFrom__c').afterToday()", currentStateMessage: "The installed OS release is past ordinary EOL; a catalog extended-support window remains but entitlement is unverified.", currentStateReferences: references1.join('\n'), remediation: "Upgrade the OS or verify and document a time-limited extended-support exception and entitlement.", runtimeError: null}; } // condition[10], conditionIndex:[1000..1099] function extract46() { if (!this.out) { this.out = obj.CA10__osInfoEolFrom__c; } return this.out; }; if (extract46.call(extract46) != null && extract46.call(extract46).getTime() < today) { return {status: 'INCOMPLIANT', conditionIndex: 1099, conditionText: "extract('CA10__osInfoEolFrom__c').beforeToday()", currentStateMessage: "The installed OS release is past ordinary EOL without a known future extended-support date.", currentStateReferences: references1.join('\n'), remediation: "Upgrade or rebuild on a supported OS release, verifying any alternative support arrangement separately.", runtimeError: null}; } return {status: 'INAPPLICABLE', conditionIndex: 1100, conditionText: "otherwise", currentStateMessage: "The ordinary OS EOL date falls on the current UTC day; verify the vendor cutoff and refresh lifecycle enrichment.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; """; SELECT expectedResult.Id as Id, IF ( IFNULL(expectedResult.expectedResult.status, '') = IFNULL(sObject.result.status, '') AND IFNULL(expectedResult.expectedResult.conditionIndex, -1) = IFNULL(sObject.result.conditionIndex, -1) AND IFNULL(expectedResult.expectedResult.conditionText, '') = IFNULL(sObject.result.conditionText, '') AND IFNULL(expectedResult.expectedResult.runtimeError, '') = IFNULL(sObject.result.runtimeError, ''), "MATCH", "FAIL" ) as match, expectedResult.expectedResult.status as expectedStatus, sObject.result.status as actualStatus, expectedResult.expectedResult.conditionIndex as expectedConditionIndex, sObject.result.conditionIndex as actualConditionIndex, expectedResult.expectedResult.conditionText as expectedConditionText, sObject.result.conditionText as actualConditionText, expectedResult.expectedResult.runtimeError as expectedRuntimeError, sObject.result.runtimeError as actualRuntimeError FROM UNNEST(mock_ExpectedResult()) expectedResult LEFT JOIN ( SELECT sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c, sObject.CA10__stateName__c AS CA10__stateName__c, sObject.CA10__osInfoSource__c AS CA10__osInfoSource__c, sObject.CA10__osInfoMaintained__c AS CA10__osInfoMaintained__c, sObject.CA10__osInfoEoesFrom__c AS CA10__osInfoEoesFrom__c, sObject.CA10__osInfoEolFrom__c AS CA10__osInfoEolFrom__c, sObject.Id AS Id, process_CA10__CaAwsInstance__c( STRUCT( sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c, sObject.CA10__stateName__c AS CA10__stateName__c, sObject.CA10__osInfoSource__c AS CA10__osInfoSource__c, sObject.CA10__osInfoMaintained__c AS CA10__osInfoMaintained__c, sObject.CA10__osInfoEoesFrom__c AS CA10__osInfoEoesFrom__c, sObject.CA10__osInfoEolFrom__c AS CA10__osInfoEolFrom__c, sObject.Id AS Id ), sObject.context.snapshotTime ) as result FROM UNNEST(mock_CA10__CaAwsInstance__c()) AS sObject ) sObject ON sObject.Id = expectedResult.Id;