Skip to content

Feat/fix bugs - #9

Merged
patramsey merged 11 commits into
mainfrom
feat/fix-bugs
Jul 5, 2026
Merged

Feat/fix bugs#9
patramsey merged 11 commits into
mainfrom
feat/fix-bugs

Conversation

@patramsey

Copy link
Copy Markdown
Owner

No description provided.

patramsey added 11 commits July 4, 2026 15:03
- Add a new `contentTypeServer` function in `manage_test.go` to validate the Content-Type header for JSON responses.
- Introduce `cmdForToggle` to facilitate testing of toggle commands with a persistent `--yes` flag.
- Create `TestContentTypeHeader_AllToggleCommands` to ensure all toggle commands correctly assert the Content-Type header.
- Update `runLock`, `runAutorenew`, and `runPrivacy` functions in `manage.go` to include Content-Type parameters for API requests, ensuring consistent handling of JSON content type.
- Implement sequential pagination handling in `runList` to retrieve all domains when the last page is unknown.
- Update hint message in `runRegister` to correct the command syntax for enabling auto-renewal, improving user guidance.
- Add logic to handle unsupported domains in `runCheck`, ensuring accurate reporting of domain availability and enhancing user experience.
- Enhance DNS validation tests by adding cases for overly long labels and total character limits.
- Introduce a new test for sequential pagination handling when the last page is omitted, ensuring all domains are retrieved correctly.
- Implement tests for rendering search results in various formats, including handling empty results and quiet mode output, improving overall test coverage and reliability.
- Introduce tests for DNS listing to verify behavior when more records are available, ensuring the "More records" hint is displayed correctly.
- Implement tests for handling empty records and type filtering in DNS listings, enhancing overall test coverage.
- Refactor the `fetchAllRecords` function to improve pagination handling and ensure accurate retrieval of all records across multiple pages.
- Introduce tests for DNS update functionality to ensure type changes are validated against existing answers, preventing invalid updates.
- Implement domain update tests to verify normalization of domain names during updates, ensuring consistent API interactions.
- Enhance the `runUpdate` function to include validation for existing answers when the record type is changed, improving error handling and user feedback.
- Introduce tests for DNS delete functionality to ensure proper error handling for invalid record IDs and domains without dots.
- Implement a test for domain normalization during DNS updates, verifying that domain names are correctly formatted in API requests.
- Enhance the `runDelete` and `runUpdate` functions to include validation for input parameters, improving error handling and user feedback.
- Refactor toggle command functions to validate input values and domain formats, ensuring consistent behavior across commands.
- Introduce tests for the renewal command to validate domain formats and years input, ensuring proper error handling for invalid cases.
- Implement tests for the contacts set command to verify domain normalization and file handling, enhancing robustness against bad input.
- Refactor command functions to utilize a consistent method for domain argument parsing, improving code clarity and reducing redundancy.
- Enhance error messages for better user feedback during command execution, ensuring a smoother user experience.
- Introduce tests for DNSSEC retrieval to validate error handling for domains without dots and ensure correct key retrieval for valid domains.
- Implement tests for domain retrieval, including checks for bad domain formats and successful responses, enhancing robustness against invalid input.
- Refactor command functions to improve consistency in domain argument parsing and error messaging, ensuring a smoother user experience.
- Introduce tests for contacts retrieval to validate error handling for domains without dots and ensure successful responses for valid domains.
- Implement tests for transfer listing and retrieval, including checks for empty responses and successful data retrieval for valid domains.
- Add tests for URL listing, retrieval, and updates, ensuring proper error handling for bad domain formats and successful updates.
- Enhance vanity command tests to validate error handling for invalid domains and ensure correct entry retrieval, improving overall test coverage and robustness.
- Introduce tests for setting name servers, validating successful requests and error handling for bad domain arguments.
- Implement tests for pricing retrieval, ensuring correct handling of valid and invalid domain formats, and verifying output for purchase prices.
- Add search functionality tests to check for available domains and handle empty search results, enhancing overall test coverage and robustness.
- Update test server handler functions in `order_test.go`, `url_test.go`, and `validate_test.go` to use underscore for unused request parameters, enhancing code clarity and consistency across test files.
@patramsey
patramsey merged commit 2aad0fe into main Jul 5, 2026
2 checks passed
@patramsey
patramsey deleted the feat/fix-bugs branch August 2, 2026 23:27
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