Skip to content

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.

2 participants