π§ 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β
- π’ Logic test success
- π’ Logic with test data
- π’ Unit-test logic
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS EC2 Instance | CA10__CaAwsInstance__c | 12 | 2 | 44 |
Usesβ
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-04-24T23:47:52.843497483Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/unit-test/is-beyond-next-days/policy.yaml | 7214B1E007CEF14B94E4815D585FDD2E |
Open | /ce/unit-test/is-beyond-next-days/unit-test.logic.yaml | E2705D488B7AF7B3A89618A471268BA0 |
Open | /ce/unit-test/is-beyond-next-days/test-data.json | 5F88C3E81B44ACB238CD2C8D07B3DE38 |
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β
---
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