Skip to content

Conversation

@jingyi-gao-ttd
Copy link
Contributor

Changes:

  • Add optout role check to replicate endpoint
  • Fix the TestUtil to use operator key rather than client key

@jingyi-gao-ttd jingyi-gao-ttd requested review from a user and sunnywu January 9, 2023 05:46
@jingyi-gao-ttd jingyi-gao-ttd changed the title Draft: Add auth check and fix the OptOutServiceVerticle tests Add auth check and fix the OptOutServiceVerticle tests Jan 10, 2023
@Test
public void replicate_expect200(TestContext context) {
verifyStatus(context, replicateQuery(234), 200);
verifyStatus(context, replicateQuery(234), 200, "Bearer test-optout-operator-key");
Copy link
Contributor

Choose a reason for hiding this comment

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

very nitpick: can just make com.uid2.optout.vertx.TestOperatorKeyProvider#TEST_OPTOUT_KEY public can get the name directly instead of hardcoding it again to be inconsistent. Can probably say the same about com.uid2.optout.vertx.OptOutServiceVerticleTest#internalTestKey definition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I think this make sense, I've upated the tests

@jingyi-gao-ttd jingyi-gao-ttd merged commit 3dec284 into master Jan 12, 2023
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.

3 participants