Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance RA SS and MW test coverage #516

Open
phavekes opened this issue Dec 1, 2024 · 3 comments
Open

Enhance RA SS and MW test coverage #516

phavekes opened this issue Dec 1, 2024 · 3 comments
Labels

Comments

@phavekes
Copy link
Member

phavekes commented Dec 1, 2024

This issue is imported from pivotal - Originaly created at Mar 4, 2020 by bstrooband

This was raised during review of a RA bugfix where the behaviour of the token export button was not tested in RA, but in the behat tests in deploy. The lack of unit and integration tests in the applications is somewhat concerning and should be addressed.

And again during fixing a second bug in RA

What types of tests should be considered?

  • Repository tests in Middleware (projectors)
  • Decoupled acceptance tests of RA and SS?
  • Unit tests for RA, SS, GW covering any important business logic
  • Validate and optimize the FGA use cases from the RFC
@phavekes phavekes self-assigned this Dec 1, 2024
@phavekes phavekes added this to Stepup Dec 1, 2024
@github-project-automation github-project-automation bot moved this to New in Stepup Dec 1, 2024
@phavekes
Copy link
Member Author

phavekes commented Dec 1, 2024

Only a few unit tests are added to RA and SA so this should be optimized as this would prevent regressions when adding new functionality.

Also MW repository tests should be added to see if the projections are as expected. (bstrooband - Mar 4, 2020)

@phavekes
Copy link
Member Author

phavekes commented Dec 1, 2024

See also the discussion on: OpenConext/Stepup-Middleware#298 (bstrooband - Mar 9, 2020)

@phavekes
Copy link
Member Author

phavekes commented Dec 1, 2024

I think, reorganizing the projects into layers would do some good for tests. We are forced to organize existing code into a more structured system. Some refactoring might result from this, making the code more robust, maintainable and most importantly, testable.

If that is impossible, I feel strongly we should cover all services with unit tests. Efforts to decrease coupling seems a good idea at that point.

Needless to say, other important domain and application logic should be reviewed for ample test coverage. Adding involved functional (web/Panther/behat) tests for the individual applications would be a nice bonus.

But opposed to you, I think we should use the deploy behat test suite for that. As you can verify behavior in that environment for all applications. (Michiel Kodde - Mar 10, 2020)

@phavekes phavekes removed their assignment Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant