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

UTs for newly introduced confman package #104

Merged
merged 4 commits into from
Jul 10, 2019
Merged

UTs for newly introduced confman package #104

merged 4 commits into from
Jul 10, 2019

Conversation

Levovar
Copy link
Collaborator

@Levovar Levovar commented Jul 8, 2019

Started adding UTs for new 4.0 confman package.
Refactoring is -again- needed to be able to test the new changes:

  • for easy future extension stub instantiation now takes one struct called TestArtifacts
  • webhook function are refactored to use a pre-created DANM client as a member of a struct, rather than everyone using their own
    The original approach was unstubbable, the new -hopefully- won't run into race conditions

@Levovar Levovar force-pushed the netdel_ut branch 2 times, most recently from cc59502 to a127709 Compare July 8, 2019 15:32
Refactoring is -again- needed to be able to test the new changes:
- for easy future extension stub instantiation now takes one struct called TestArtifacts
- webhook function are refactored to use a pre-created DANM client as a member of a struct, rather than everyone using their own
The original approach was impossible to stub, the new -hopefully- won't run into race conditions
Levovar added 2 commits July 10, 2019 13:37
- there was a missing return in Webhook main loop when K8s client could not be created
- updated TenantNetwork schema descriptor to explicitly mention interface name
@Levovar Levovar merged commit 776ac25 into master Jul 10, 2019
@Levovar Levovar deleted the netdel_ut branch July 22, 2019 21:23
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.

1 participant