Skip to content

test: auth, cert, domain, integration#2

Merged
krakenhavoc merged 1 commit intomainfrom
tests/tests
Mar 20, 2026
Merged

test: auth, cert, domain, integration#2
krakenhavoc merged 1 commit intomainfrom
tests/tests

Conversation

@krakenhavoc
Copy link
Contributor

This pull request adds comprehensive unit tests for the auth, account, and cert packages, significantly improving test coverage for authentication, account management, and certificate issuance/submission flows. The new tests cover successful cases, error handling, and edge conditions, ensuring robustness for key CLI features.

Authentication and Account Management Tests:

  • Added tests for login, logout, and status flows in auth, including verification of config file updates and error handling for authentication failures.
  • Added tests for account profile display and subscription plan logic, covering scenarios like pro/free plans, period end, and cancellation status.

Certificate Issuance and Submission Tests:

  • Added tests for certificate issuance (RunIssue) with and without waiting for issuance, including file output checks, permission validation, auto-renewal, default filename logic, and invalid key type handling.
  • Added tests for certificate submission (RunSubmit) covering CSR reading, wait mode, file-not-found errors, auto-renewal, and issuance failure handling.

@krakenhavoc krakenhavoc merged commit ac62425 into main Mar 20, 2026
1 check passed
@krakenhavoc krakenhavoc deleted the tests/tests branch March 20, 2026 18:41
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.

1 participant