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

DEV-78 - Allow specifying certificate file names #25

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

w1am
Copy link
Contributor

@w1am w1am commented Dec 7, 2023

Fixes: #15
Added: Allow specifying certificate file names in create-ca, create-user, create-node and create-certs
Added: Tests for the create_certs command, which previously did not exist. It was included in the same PR in order to test the -name flag.

Notable Changes

  1. Allow specifying certificate file names in create-ca, create-user , create-node and create-certs using the -name flag and name key in create_certs.

  2. Improved test coverage
    Rewrote the tests to make them more readable. Now, instead of testing the tool by calling the method directly, we can run the test using Run() and manually pass the arguments. Added test for intermediate certificate, certificates default validity period, name flag, test with different output directory and create certs command with different configs; invalid paths, name key and force flag.

Copy link

linear bot commented Dec 7, 2023

@w1am w1am force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch from e6fec73 to b5955ee Compare December 7, 2023 13:05
@w1am w1am marked this pull request as draft December 7, 2023 13:11
@w1am w1am force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch 5 times, most recently from d44d42e to 45debe6 Compare December 13, 2023 07:47
@w1am w1am marked this pull request as ready for review December 13, 2023 08:39
@w1am w1am requested a review from cdevarenne December 13, 2023 08:39
@w1am w1am self-assigned this Dec 13, 2023
@w1am w1am added the enhancement New feature or request label Dec 13, 2023
@w1am w1am requested a review from pvanbuijtene December 13, 2023 14:01
- Add tests for `create-certs` command
- Improve test coverage
- Some refactoring
- Fix linting issues
@josephcummings josephcummings force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch from 45debe6 to fde644b Compare March 19, 2024 11:41
@josephcummings josephcummings force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch from fde644b to 1e621e4 Compare March 19, 2024 11:43
@josephcummings josephcummings changed the title Allow specifying certificate file names DEV-78 - Allow specifying certificate file names Mar 19, 2024
* Add more create node test
* Fix typo
* Make sure tests runs on Windows
@w1am w1am force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch from f61774f to c048064 Compare March 22, 2024 06:57
@w1am w1am force-pushed the w1am/dev-78-allow-specifying-certificate-file-names branch from c048064 to 0415a77 Compare March 22, 2024 07:07
@w1am w1am merged commit 55f5c12 into master Mar 22, 2024
2 checks passed
@josephcummings josephcummings deleted the w1am/dev-78-allow-specifying-certificate-file-names branch March 22, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specifying certificate file names
3 participants