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

[fix][test] Replace test call to Auth0 with call to WireMock #20465

Merged

Conversation

michaeljmarshall
Copy link
Member

Fixes #19330

Motivation

Replace calls to Auth0 with calls to a local WireMock server. The server behaves in essentially the same way as Auth0.

Modifications

Update TokenOauth2AuthenticatedProducerConsumerTest.

Verifying this change

The modified test passes and still covers the same code.

Documentation

  • doc-not-needed

@codecov-commenter
Copy link

Codecov Report

Merging #20465 (bcbb200) into master (9f93af3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #20465      +/-   ##
============================================
+ Coverage     72.91%   72.93%   +0.02%     
+ Complexity    31913     3696   -28217     
============================================
  Files          1867     1867              
  Lines        138534   138484      -50     
  Branches      15200    15202       +2     
============================================
- Hits         101009   101007       -2     
+ Misses        29517    29454      -63     
- Partials       8008     8023      +15     
Flag Coverage Δ
inttests 24.13% <86.36%> (-0.07%) ⬇️
systests 25.13% <86.36%> (+0.18%) ⬆️
unittests 72.20% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...che/bookkeeper/mledger/impl/ManagedCursorImpl.java 78.66% <ø> (-0.13%) ⬇️
...ava/org/apache/pulsar/broker/service/Consumer.java 86.77% <100.00%> (-0.05%) ⬇️
...ava/org/apache/pulsar/broker/service/Producer.java 81.81% <100.00%> (-0.10%) ⬇️
...va/org/apache/pulsar/broker/service/ServerCnx.java 71.56% <100.00%> (+0.08%) ⬆️
.../common/policies/data/stats/ConsumerStatsImpl.java 97.61% <100.00%> (-0.96%) ⬇️
...common/policies/data/stats/PublisherStatsImpl.java 90.00% <100.00%> (-5.53%) ⬇️

... and 72 files with indirect coverage changes

@tisonkun
Copy link
Member

tisonkun commented Jun 2, 2023

Merging...

Thank you!

@tisonkun tisonkun merged commit 174c486 into apache:master Jun 2, 2023
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

Good work @michaeljmarshall!

@lhotari
Copy link
Member

lhotari commented Jun 2, 2023

I noticed 2 more locations where Auth0 is used in tests. There's a follow up task, #20473.

nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants