Skip to main content

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

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

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-05-10T12:06:32.587012025Z Open

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

Generation​

FileMD5
Open/ce/unit-test/is-within-next-days/policy.yaml51AA3018D0CD9A93845CB8687AA018A5
Open/ce/unit-test/is-within-next-days/unit-test.logic.yamlBBAADE3DE9580D5D2EDE087F9015AFB1
Open/ce/unit-test/is-within-next-days/test-data.json2DB6F2F67597C0B6E08CD6FCA918B9A5

Generate FULL script​

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

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/unit-test/is-within-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-within-next-days/unit-test.logic.yaml

Generate TESTS script​

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

Execute tests​

java -jar repo-manager.jar policies test /ce/unit-test/is-within-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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
IS_WITHIN_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:
NOT:
arg:
IS_WITHIN_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:
NOT:
arg:
IS_WITHIN_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:
NOT:
arg:
IS_WITHIN_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:
NOT:
arg:
IS_WITHIN_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_WITHIN_NEXT_DAYS:
arg:
UNIT_TEST_NULL:
returnType: DATE_TIME
offsetDays: 3
otherwise:
status: INCOMPLIANT
currentStateMessage: Test Failed
remediationMessage: Developer Fix Required