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

Automated tests #214

Merged
merged 7 commits into from
Sep 13, 2024
Merged

Automated tests #214

merged 7 commits into from
Sep 13, 2024

Conversation

sosthene-nitrokey
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey commented Aug 29, 2024

  • Basic test for signature against a demo instance of the nethsm
  • Test with a firewall killing a connection (timeout respected)
  • Test with a firewall and another instance avaliable (requests function)
  • Tests with another instance (round-robin is used)
    • Test that all instances are used at least once
    • Test that instances are used with the right rate (this is harder since we need to somehow keep track of connections to the proxies).

Not sure how this will all be made to fit with the CI, especially the firewall test since that will require iptables access.

To make testing easier, this PR also makes the C_Initialize re-initialize the config, allowing to dynamically configure the module.

  • Make C_Finalize also discard the previous config

@sosthene-nitrokey sosthene-nitrokey force-pushed the automated-tests branch 3 times, most recently from 35e665c to c913e8b Compare September 2, 2024 15:44
@sosthene-nitrokey sosthene-nitrokey marked this pull request as ready for review September 3, 2024 08:46
@sosthene-nitrokey sosthene-nitrokey force-pushed the automated-tests branch 6 times, most recently from 56a7c77 to 1b059c0 Compare September 3, 2024 13:18
@sosthene-nitrokey sosthene-nitrokey force-pushed the automated-tests branch 15 times, most recently from 11d7f23 to 9f51c41 Compare September 4, 2024 14:50
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