Skip to content

test: reject empty challenge ids during formatting#38

Open
EfeDurmaz16 wants to merge 1 commit into
tempoxyz:mainfrom
EfeDurmaz16:add-empty-id-format-vector
Open

test: reject empty challenge ids during formatting#38
EfeDurmaz16 wants to merge 1 commit into
tempoxyz:mainfrom
EfeDurmaz16:add-empty-id-format-vector

Conversation

@EfeDurmaz16

Copy link
Copy Markdown
Contributor

Summary

  • Adds a www-authenticate conformance vector for rejecting a challenge object with id: "" during formatting/construction.
  • Complements the existing parse vector error_empty_id, so parse and format expectations now agree.

This follows #19 (comment).

Verification

  • python3 -m json.tool conformance/vectors/www-authenticate.json
  • git diff --check
  • python3 scripts/vector_runner.py --adapter typescript --vector www-authenticate --verbose currently reports 37 passed, 1 failed: the new error_empty_id_format case fails against pinned mppx@0.7.0, as expected until the mppx fix is released/consumed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e9893411ea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +193 to +197
"tests": {
"format": {
"success": false,
"error_type": "format_error"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the new vector out of required CI until adapters pass

When this vector file changes, select_ci_adapters.py treats conformance/vectors/** as shared and runs all adapters, and .github/workflows/conformance.yml:126-134 invokes vector_runner.py --adapter "$ADAPTER" as a required step. The current diff does not update the pinned TypeScript SDK (conformance/package.json:19-20, mppx 0.7.0), and this new expectation is known to fail against that pin, so merging it will make conformance CI fail on every PR/push until the adapter/dependency is updated or the case is temporarily gated.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant