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

chore(http_mock): improvements & tapping #11182

Merged
merged 4 commits into from
Jul 11, 2023
Merged

Conversation

StarlightIbuki
Copy link
Contributor

@StarlightIbuki StarlightIbuki commented Jul 6, 2023

Summary

Introduce tapping for testing, especially OIDC's behavior when sending requests to IDP.

bugfix: assert truthy
alias for not_all
more checks
better comment&document

Checklist

  • Cherry-pick to EE master

Issue reference

N/A

Copy link
Contributor

@ADD-SP ADD-SP left a comment

Choose a reason for hiding this comment

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

LGTM

spec/02-integration/01-helpers/03-http_mock_spec.lua Outdated Show resolved Hide resolved
spec/02-integration/01-helpers/03-http_mock_spec.lua Outdated Show resolved Hide resolved
spec/helpers/http_mock.lua Outdated Show resolved Hide resolved
@Tieske
Copy link
Member

Tieske commented Jul 6, 2023

please ensure that the documentation properly renders;

here's how to check:

cd kong/spec
ldoc .
open docs/index.html

It requires to have ldoc installed; luarocks install ldoc

@StarlightIbuki StarlightIbuki force-pushed the test/http_mock_imporve branch 3 times, most recently from cf3c815 to f011815 Compare July 6, 2023 08:15
@StarlightIbuki StarlightIbuki requested a review from Tieske July 6, 2023 08:15
@Tieske
Copy link
Member

Tieske commented Jul 6, 2023

I pushed a commit with some docs fixes, please verify, and if possible extend to the other modules that are currently undocumented. These new get rendered properly.

@Tieske
Copy link
Member

Tieske commented Jul 6, 2023

fyi; the reason I'm pushing on this is because we have been neglecting the documentation in the helpers. Mostly because not everyone realizes this is actually user-facing stuff. We should pay more attention to this.

Plugin developers will use pongo docs to render and show the documentation when developing their plugins.

@StarlightIbuki StarlightIbuki requested a review from Tieske July 7, 2023 05:10
@StarlightIbuki StarlightIbuki force-pushed the test/http_mock_imporve branch from 0fbb5a3 to 0791108 Compare July 7, 2023 05:10
StarlightIbuki and others added 2 commits July 7, 2023 13:47
bug fix: assert turthy
alias for not_all
more checks
better comment&document
some fixes wrt docs rendering

Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
@StarlightIbuki StarlightIbuki force-pushed the test/http_mock_imporve branch from 0791108 to d5432de Compare July 7, 2023 05:48
@Tieske
Copy link
Member

Tieske commented Jul 10, 2023

Added some more fixes, but ldoc simply sucks at multi-file modules/classes 😞

anyway, since I now committed to this PR, I can no longer approve it. Feel free to merge. @oowl @ADD-SP

@Tieske
Copy link
Member

Tieske commented Jul 10, 2023

still could approve 🤷 , so just did

@fffonion fffonion merged commit 070e90f into master Jul 11, 2023
@fffonion fffonion deleted the test/http_mock_imporve branch July 11, 2023 07:16
chobits added a commit that referenced this pull request Nov 29, 2023
This commit backports HTTP mocking to release/3.2.x, including the
following PRs from master branch: #10885, #11009, #11182 and #11331.
windmgc pushed a commit that referenced this pull request Nov 29, 2023
This commit backports HTTP mocking to release/3.2.x, including the
following PRs from master branch: #10885, #11009, #11182 and #11331.
chobits added a commit that referenced this pull request Nov 30, 2023
This commit backports HTTP mocking to release/3.2.x, including the
following PRs from master branch: #10885, #11009, #11182 and #11331.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants