Skip to main content

🧠 IS_BEYOND_NEXT_DAYS Unit Tests - unit-test.logic.yaml 🟒

  • Contextual name: 🧠 unit-test.logic.yaml 🟒
  • ID: /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml
  • Located in: πŸ“ IS_BEYOND_NEXT_DAYS Unit Tests 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS EC2 InstanceCA10__CaAwsInstance__c12244

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:47:52.843497483Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒2024-01-05T00:00:00Zβœ”οΈ 199βœ”οΈ unitTest(2024-01-05T00:00:00Z): not('2024-01-05T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-05T23:59:59Zβœ”οΈ 299βœ”οΈ unitTest(2024-01-05T23:59:59Z): not('2024-01-05T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-06T00:00:00Zβœ”οΈ 399βœ”οΈ unitTest(2024-01-06T00:00:00Z): not('2024-01-06T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-06T23:59:59Zβœ”οΈ 499βœ”οΈ unitTest(2024-01-06T23:59:59Z): not('2024-01-06T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-07T00:00:00Zβœ”οΈ 599βœ”οΈ unitTest(2024-01-07T00:00:00Z): not('2024-01-07T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-07T23:59:59Zβœ”οΈ 699βœ”οΈ unitTest(2024-01-07T23:59:59Z): not('2024-01-07T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-08T00:00:00Zβœ”οΈ 799βœ”οΈ unitTest(2024-01-08T00:00:00Z): not('2024-01-08T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-08T23:59:59Zβœ”οΈ 899βœ”οΈ unitTest(2024-01-08T23:59:59Z): not('2024-01-08T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-09T00:00:00Zβœ”οΈ 999βœ”οΈ unitTest(2024-01-09T00:00:00Z): not('2024-01-09T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-09T23:59:59Zβœ”οΈ 1099βœ”οΈ unitTest(2024-01-09T23:59:59Z): not('2024-01-09T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-10T00:00:00Zβœ”οΈ 1199βœ”οΈ unitTest(2024-01-10T00:00:00Z): not('2024-01-10T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒nowβœ”οΈ 1299βœ”οΈ unitTest(now): '2024-01-10T18:00:00Z' == '2024-01-10T18:00:00Z'βœ”οΈ null
🟒2024-01-10T23:59:59Zβœ”οΈ 1399βœ”οΈ unitTest(2024-01-10T23:59:59Z): not('2024-01-10T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-11T00:00:00Zβœ”οΈ 1499βœ”οΈ unitTest(2024-01-11T00:00:00Z): not('2024-01-11T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-11T23:59:59Zβœ”οΈ 1599βœ”οΈ unitTest(2024-01-11T23:59:59Z): not('2024-01-11T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-12T00:00:00Zβœ”οΈ 1699βœ”οΈ unitTest(2024-01-12T00:00:00Z): not('2024-01-12T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-12T23:59:59Zβœ”οΈ 1799βœ”οΈ unitTest(2024-01-12T23:59:59Z): not('2024-01-12T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-13T00:00:00Zβœ”οΈ 1899βœ”οΈ unitTest(2024-01-13T00:00:00Z): not('2024-01-13T00:00:00Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-13T23:59:59Zβœ”οΈ 1999βœ”οΈ unitTest(2024-01-13T23:59:59Z): not('2024-01-13T23:59:59Z'.beyondNextDays(3))βœ”οΈ null
🟒2024-01-14T00:00:00Zβœ”οΈ 2099βœ”οΈ unitTest(2024-01-14T00:00:00Z): '2024-01-14T00:00:00Z'.beyondNextDays(3)βœ”οΈ null
🟒2024-01-14T23:59:59Zβœ”οΈ 2199βœ”οΈ unitTest(2024-01-14T23:59:59Z): '2024-01-14T23:59:59Z'.beyondNextDays(3)βœ”οΈ null
🟒2024-01-15T00:00:00Zβœ”οΈ 2299βœ”οΈ unitTest(2024-01-15T00:00:00Z): '2024-01-15T00:00:00Z'.beyondNextDays(3)βœ”οΈ null
🟒2024-01-15T23:59:59Zβœ”οΈ 2399βœ”οΈ unitTest(2024-01-15T23:59:59Z): '2024-01-15T23:59:59Z'.beyondNextDays(3)βœ”οΈ null
🟒Null-1βœ”οΈ 2499βœ”οΈ unitTest(Null-1): not(null.beyondNextDays(3))βœ”οΈ null

Generation​

FileMD5
Open/ce/unit-test/is-beyond-next-days/policy.yaml7214B1E007CEF14B94E4815D585FDD2E
Open/ce/unit-test/is-beyond-next-days/unit-test.logic.yamlE2705D488B7AF7B3A89618A471268BA0
Open/ce/unit-test/is-beyond-next-days/test-data.json5F88C3E81B44ACB238CD2C8D07B3DE38

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml

Content​

Open File

---
inputType: CA10__CaAwsInstance__c
testData:
- file: test-data.json
conditions:
- status: COMPLIANT
currentStateMessage: "2024-01-05T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-05T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-05T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-05T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-05T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-05T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-06T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-06T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-06T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-06T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-06T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-06T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-07T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-07T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-07T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-07T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-07T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-07T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-08T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-08T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-08T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-08T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-08T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-08T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-09T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-09T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-09T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-09T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-09T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-09T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-10T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-10T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-10T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "now"
check:
UNIT_TEST:
id: "now"
arg:
IS_EQUAL:
left:
DATE_TIME: "2024-01-10T18:00:00Z"
right:
DATE_TIME: "2024-01-10T18:00:00Z"
- status: COMPLIANT
currentStateMessage: "2024-01-10T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-10T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-10T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-11T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-11T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-11T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-11T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-11T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-11T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-12T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-12T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-12T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-12T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-12T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-12T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-13T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-13T00:00:00Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-13T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-13T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-13T23:59:59Z"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-13T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-14T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-14T00:00:00Z"
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-14T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-14T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-14T23:59:59Z"
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-14T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-15T00:00:00Z"
check:
UNIT_TEST:
id: "2024-01-15T00:00:00Z"
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-15T00:00:00Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "2024-01-15T23:59:59Z"
check:
UNIT_TEST:
id: "2024-01-15T23:59:59Z"
arg:
IS_BEYOND_NEXT_DAYS:
arg:
DATE_TIME: "2024-01-15T23:59:59Z"
offsetDays: 3
- status: COMPLIANT
currentStateMessage: "Null-1"
check:
UNIT_TEST:
id: "Null-1"
arg:
NOT:
arg:
IS_BEYOND_NEXT_DAYS:
arg:
UNIT_TEST_NULL:
returnType: DATE_TIME
offsetDays: 3
otherwise:
status: INCOMPLIANT
currentStateMessage: Test Failed
remediationMessage: Developer Fix Required