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

CSS-4868 add basic unit tests #11

Merged
merged 2 commits into from
Jul 25, 2023
Merged

CSS-4868 add basic unit tests #11

merged 2 commits into from
Jul 25, 2023

Conversation

AmberCharitos
Copy link
Collaborator

This PR adds the following unittests:

  • test_initial_plan
  • test_waiting_on_peer_relation_not_ready
  • test_blocked_by_tls
  • test_ready
  • test_ingress
  • test_invalid_config_values
  • test_config_changed

Note that the _validate_config_params method is patched in 2 of these unittests due to this method checking for the existence of a keystore.p12 file that is created on relation with the tls-certificates-operator. In these simulations there is no such file.

@AmberCharitos AmberCharitos changed the title add basic unit tests CSS-4868 add basic unit tests Jul 24, 2023
Copy link

@kelkawi-a kelkawi-a left a comment

Choose a reason for hiding this comment

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

LGTM

@AmberCharitos AmberCharitos merged commit 0d9fea9 into main Jul 25, 2023
1 check passed
@AmberCharitos AmberCharitos deleted the unitesting branch July 26, 2023 12:51
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