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

Add unit test #21

Merged
merged 9 commits into from
May 23, 2023
Merged

Add unit test #21

merged 9 commits into from
May 23, 2023

Commits on May 17, 2023

  1. Minor refactor of cmdutils

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 17, 2023
    Configuration menu
    Copy the full SHA
    a3ebad9 View commit details
    Browse the repository at this point in the history
  2. Add k8sclient tests

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 17, 2023
    Configuration menu
    Copy the full SHA
    5b74696 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. add pool tests

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 18, 2023
    Configuration menu
    Copy the full SHA
    83038ea View commit details
    Browse the repository at this point in the history
  2. k8sclient tests to use testdata from file

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 18, 2023
    Configuration menu
    Copy the full SHA
    cde8501 View commit details
    Browse the repository at this point in the history
  3. Add types tests

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 18, 2023
    Configuration menu
    Copy the full SHA
    c4330e3 View commit details
    Browse the repository at this point in the history
  4. Add support for generating Mocks

    - use mockery to generate mocks: add makefile targets
    - refactor types and plugin, use interfaces for
      parsing config file and executing IPAM plugin as
      prep work for unit tests
    - generate mocks
    
    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 18, 2023
    Configuration menu
    Copy the full SHA
    a6855ae View commit details
    Browse the repository at this point in the history
  5. Add tests for plugin package

    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 18, 2023
    Configuration menu
    Copy the full SHA
    3ff5af7 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2023

  1. Skip Mock packages while running tests

    - generate list of packages to test
    - run test only on those packages
    - remove -coverpkg flag
    
    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 21, 2023
    Configuration menu
    Copy the full SHA
    8f6cbf4 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Address review comments

    - newline in .mockery.yaml file
    - fix typo in Makefile
    - update test description pool test
    - use Ginkgo TempDir() in cmdtutils test
    - bump testify version to v1.8.3
    
    Signed-off-by: adrianc <adrianc@nvidia.com>
    adrianchiris committed May 22, 2023
    Configuration menu
    Copy the full SHA
    33218b1 View commit details
    Browse the repository at this point in the history