Skip to content

Insufficient integration tests #219

Closed

Description

@jankapunkt

Specify your setup

  • version of @node-oauth/oauth2-server: 5.0.0-rc.1

Describe the bug

The integration tests do not properly cover the regressions, introduced by the switch to native async/await. This is due to the original integration tests do not really test, whether the correct values are passed to the model as most model functions are not covering parameters or return nearly nothing.

This already resulted in:

Proposal:

All integration tests should also cover proper model testing.

We should target this for 5.0.0, because there may be more parts affected as may have been revealed yet.

Activity

  1. added this to the v5 milestone on Aug 15, 2023
  2. self-assigned this
    on Aug 15, 2023
  3. linked a pull request that will close this issuetests: add deep integration tests #224on Aug 17, 2023
  4. jankapunkt commented on Aug 26, 2023

    @jankapunkt
    MemberAuthor

    This is partially implemented via #224 but we will add another PR with the rest

  5. removed this from the v5 milestone on Oct 1, 2023
  6. jankapunkt commented on Oct 1, 2023

    @jankapunkt
    MemberAuthor

    Whoever wants to go to implement this, we basically need in the folder /test/compliance another test implementation for authorization_code_grant_type (acgt) workflow.

    Fortunately we got the other types already covered so you can take a look at the implementations in these folders and use the techniques you find in there.

    Beware, that the acgt is the most complex type of all workflows and requires very thorough implementation for different scenarios (early rejections, full success, refresh etc.).

    We will carefully review this one and may even add a commit here and there to support this.

  7. jankapunkt commented on Nov 7, 2023

    @jankapunkt
    MemberAuthor

    Another compliance test would be, on top of authorization_code_grant_type, to have a fully compliant pkce test setup.

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

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't workingin progress 👨‍💻Currently in progress and is being worked on.security ❗Address a security issuetests 🧪Relates to tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions