zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

Missing integration scenario JSON in the TIMEZONE aware PR

Open authorjapps opened this issue 4 months ago • 13 comments

Here is this open PR: https://github.com/authorjapps/zerocode/issues/776#issuecomment-4541562362. Only missing is a full integration test scenario using this new feature.

Once added, we'll run the CI, then merge the PR on Green.

authorjapps avatar Jul 15 '26 15:07 authorjapps

Added the missing integration test scenario — see comment on #771: https://github.com/authorjapps/zerocode/pull/771#issuecomment-5054307461

Preview below:

Hi @officialasishkumar @authorjapps — I saw #784 was still open asking for the missing integration test scenario for this timezone-aware datetime fix, so I put one together.

It's on my fork here: Huzi-06/zerocode branch add-timezone-integration-test Commit: https://github.com/Huzi-06/zerocode/commit/6abd761fd2feec7ddb0bedd7166baac638833586

It adds http-testing-examples/src/test/resources/helloworld_date/hello_world_date_timezone_aware_test.json, covering all four supported formats from the acceptance criteria:

  • ISO datetime with offset (+05:30)
  • ISO UTC/Zulu (Z)
  • RFC-1123 HTTP date format
  • Legacy local datetime (no timezone) — for backward compatibility

Ran locally against this branch and both tests pass (HelloWorldDateAfterBeforeTest). Happy to have this cherry-picked into #771 directly, or I can open it as a small follow-up PR, whichever's easier for you.

Scenario:

{
    "scenarioName": "Assert timezone-aware datetime parsing across ISO offset, UTC Zulu, RFC-1123 and legacy local formats",
    "steps": [
        {
            "name": "assert_iso_offset_format",
            "url": "/users/octocat",
            "method": "GET",
            "request": {},
            "assertions": {
                "status": 200,
                "body": {
                    "created_at": "$LOCAL.DATETIME.BEFORE:2019-07-06T22:37:15+05:30"
                }
            }
        },
        {
            "name": "assert_iso_utc_zulu_format",
            "url": "/users/octocat",
            "method": "GET",
            "request": {},
            "assertions": {
                "status": 200,
                "body": {
                    "created_at": "$LOCAL.DATETIME.BEFORE:2019-07-06T17:07:15.000Z"
                }
            }
        },
        {
            "name": "assert_rfc_1123_http_date_format",
            "url": "/users/octocat",
            "method": "GET",
            "request": {},
            "assertions": {
                "status": 200,
                "body": {
                    "created_at": "$LOCAL.DATETIME.BEFORE:Sat, 06 Jul 2019 17:07:15 GMT"
                }
            }
        },
        {
            "name": "assert_legacy_local_format_backward_compatibility",
            "url": "/users/octocat",
            "method": "GET",
            "request": {},
            "assertions": {
                "status": 200,
                "body": {
                    "created_at": "$LOCAL.DATETIME.BEFORE:2019-07-06T17:07:15.000"
                }
            }
        }
    ]
}

Huzi-06 avatar Jul 23 '26 04:07 Huzi-06

Added the missing integration test scenario — see comment on #771: #771 (comment)

Preview below:

Hi @officialasishkumar @authorjapps — I saw #784 was still open asking for the missing integration test scenario for this timezone-aware datetime fix, so I put one together.

It's on my fork here: Huzi-06/zerocode branch add-timezone-integration-test Commit: Huzi-06@6abd761 ...

@Huzi-06, scenario looks good, just we need to run via the CI pipeline. Is it not allowing you to push to the existing PR directly?

If not, I can add you as Collaborator and give it a try... Can you please let me know?

authorjapps avatar Jul 23 '26 10:07 authorjapps

Yep, exactly, I don't have write access to @officialasishkumar's fork, so I can't push to the PR branch directly.

If @officialasishkumar has "Allow edits from maintainers" enabled on #771, that might be the lightest way to let me push without a full collaborator add, worth checking first. But if that's not enabled or doesn't work for some reason, being added as a collaborator works too, happy to give it a try either way!

Huzi-06 avatar Jul 23 '26 22:07 Huzi-06

Yep, exactly, I don't have write access to @officialasishkumar's fork, so I can't push to the PR branch directly.

Added you here, click and join, then give it a try and let us know @Huzi-06 .

authorjapps avatar Jul 24 '26 05:07 authorjapps

@authorjapps , Is the issue still open ?? Would love to fix it.. ? If you could assign it to me.

gitvivek14 avatar Sep 06 '26 20:09 gitvivek14

@authorjapps , Is the issue still open ?? Would love to fix it.. ? If you could assign it to me.

Assigned now.

Thanks for picking it from here @gitvivek14 to resolve this.

nirmalchandra avatar Sep 07 '26 08:09 nirmalchandra

Hi @nirmalchandra , I have submitted the missing timezone-aware integration scenario here:

https://github.com/officialasishkumar/zerocode/pull/1

It is based on the branch used by #771 and covers:

  • ISO datetime with an offset
  • UTC/Zulu datetime
  • RFC-1123 HTTP datetime
  • Legacy local datetime compatibility

Local validation passed:

  • ZeroCodeAssertionsProcessorImplTest: 52 tests, 0 failures
  • HelloWorldDateAfterBeforeTest: 2 tests, 0 failures

gitvivek14 avatar Sep 07 '26 11:09 gitvivek14

Will kick off the CI soon. Thanks for the quick turnaround. Really appreciate it.

authorjapps avatar Sep 07 '26 12:09 authorjapps

Will kick off the CI soon. Thanks for the quick turnaround. Really appreciate it.

Thanks! happy to help, and I’d love to contribute to more issues. Feel free to assign me anything you think would be a good fit!

gitvivek14 avatar Sep 07 '26 12:09 gitvivek14

Will kick off the CI soon. Thanks for the quick turnaround. Really appreciate it.

Thanks! happy to help, and I’d love to contribute to more issues. Feel free to assign me anything you think would be a good fit!

Can you action this please @gitvivek14 ?

nirmalchandra avatar Sep 11 '26 10:09 nirmalchandra

Will kick off the CI soon. Thanks for the quick turnaround. Really appreciate it.

Thanks! happy to help, and I’d love to contribute to more issues. Feel free to assign me anything you think would be a good fit!

Can you action this please @gitvivek14 ?

Hey , I don’t see the merge option on my side. Could you please give me permission to merge the PR?

gitvivek14 avatar Sep 11 '26 18:09 gitvivek14

Will kick off the CI soon. Thanks for the quick turnaround. Really appreciate it.

Thanks! happy to help, and I’d love to contribute to more issues. Feel free to assign me anything you think would be a good fit!

Can you action this please @gitvivek14 ?

Hey , I don’t see the merge option on my side. Could you please give me permission to merge the PR?

Ah, I see. Wierd situation :( Let me sort this way --> raising a new PR which combines both the PRs(incl yours).

New PR raised: https://github.com/authorjapps/zerocode/pull/795 (Let's wait for the CI to go Green 🟢 )

nirmalchandra avatar Sep 12 '26 21:09 nirmalchandra

Fixed via #795 (merged), which combined #771 and the integration test from officialasishkumar/zerocode#1.

nirmalchandra avatar Sep 13 '26 11:09 nirmalchandra