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

Backfill unit tests for peering dialler #1265

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Conversation

thisisnotashwin
Copy link
Contributor

Changes proposed in this PR:

  • Clean up some of the logic in peering dialler and acceptor
  • Rename handler -> connectWebhook

How I've tested this PR:

  • Unit tests
    How I expect reviewers to test this PR:
  • 👀

Checklist:

  • Tests added

@thisisnotashwin thisisnotashwin requested review from ndhanushkodi, a team and kschoche and removed request for a team June 8, 2022 19:13
Copy link
Contributor

@ndhanushkodi ndhanushkodi left a comment

Choose a reason for hiding this comment

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

This looks amazing and the unit tests are so easy to compare to the code cases and it's so thorough! I love how you've reduced the verbosity also!! Just a few small nits!

- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
return []runtime.Object{dialer}
},
expErr: "PeeringDialer spec.peer.secret was not set",
peeringSecret: func(_ string) *corev1.Secret { return nil },
Copy link
Contributor

Choose a reason for hiding this comment

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

these are so cool :)

Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for taking the time to chat about it with me!

@thisisnotashwin thisisnotashwin merged commit 2cf5566 into peering Jun 10, 2022
@thisisnotashwin thisisnotashwin deleted the backfill-unit-tests branch June 10, 2022 16:44
ndhanushkodi pushed a commit that referenced this pull request Jun 13, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
ndhanushkodi pushed a commit that referenced this pull request Jun 13, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
ndhanushkodi pushed a commit that referenced this pull request Jun 13, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
ndhanushkodi pushed a commit that referenced this pull request Jun 15, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
thisisnotashwin pushed a commit that referenced this pull request Jun 16, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
thisisnotashwin pushed a commit that referenced this pull request Jun 16, 2022
- Clean up some of the logic in peering dialler and acceptor
- Rename handler -> connectWebhook
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