Commit Graph

102 Commits

Author SHA1 Message Date
ProtoTess b7292bb6cd Merge pull request #41 from 0x524a/13-feature-improve-test-coverage-server
Add unit tests for SOAP handler and server types
2025-11-30 21:48:11 -05:00
ProtoTess 37065e3057 Add unit tests for SOAP handler and server types
- Implement comprehensive tests for the SOAP handler, covering scenarios such as handler registration, valid and invalid SOAP requests, action extraction, and authentication.
- Introduce tests for server configuration types, ensuring default values, resolution validation, range checks, and profile configurations are correctly validated.
- Validate service endpoint generation based on configuration settings, including host and port variations.
2025-12-01 02:46:54 +00:00
ProtoTess 7909c2ee09 Merge pull request #40 from 0x524a/36-feature-add-more-devicemgmt-operations
docs: enhance README with comprehensive API coverage summary and deta…
2025-11-30 21:16:01 -05:00
ProtoTess 6bb4edbf14 docs: enhance README with comprehensive API coverage summary and detailed Device Management features 2025-12-01 02:14:48 +00:00
ProtoTess 47547fd35c Merge pull request #39 from 0x524a/36-feature-add-more-devicemgmt-operations
refactor: rename project from go-onvif to onvif-go
2025-11-30 21:06:27 -05:00
ProtoTess d8c2f291dc refactor: rename project from go-onvif to onvif-go
- Updated project name in documentation and metadata to reflect new branding.
- Removed outdated documentation files related to CLI and network interface summary.
- Consolidated implementation summaries for network interface discovery and ONVIF server.
- Updated sonar project properties to align with new project name.
- Ensured backward compatibility and comprehensive testing across all changes.
2025-12-01 02:06:04 +00:00
ProtoTess c22d796aa8 Merge pull request #38 from 0x524a/36-feature-add-more-devicemgmt-operations
test: enhance loopback interface detection in network tests
2025-11-30 20:27:22 -05:00
ProtoTess 84a5f7255d test: enhance loopback interface detection in network tests 2025-12-01 01:26:21 +00:00
ProtoTess bc37b57c83 Merge pull request #37 from 0x524a/36-feature-add-more-devicemgmt-operations
Add device security tests and enhance device capabilities
2025-11-30 20:19:52 -05:00
ProtoTess c085aaa545 chore: update output format in golangci-lint config and improve response handling in tests 2025-12-01 01:16:01 +00:00
ProtoTess 24b3b1d1c9 chore: update output format in golangci-lint config and improve response writing in tests 2025-12-01 01:14:00 +00:00
ProtoTess 518924772a chore: specify golangci-lint version and remove version declaration from config 2025-12-01 01:11:32 +00:00
ProtoTess b8e437c28b chore: update golangci-lint action to use the latest version 2025-12-01 01:10:06 +00:00
ProtoTess ceb86c279f chore: update GitHub Actions to use specific versions for checkout, cache, and other actions 2025-12-01 01:08:27 +00:00
ProtoTess fc4749720b chore: update setup-go action to use v5 in CI workflow 2025-12-01 01:06:42 +00:00
ProtoTess 32a308d21a chore: update setup-go action to v5.0.1 in CI workflow 2025-12-01 01:05:36 +00:00
ProtoTess 28c3ecaca0 chore: update SonarCloud action to specific version and refine CI workflow steps 2025-12-01 01:05:13 +00:00
ProtoTess 6436e8b40b chore: update GitHub Actions to use specific versions for checkout, setup-go, cache, and download actions 2025-12-01 01:03:13 +00:00
ProtoTess a700ddcba6 chore: update golangci-lint action to skip cache 2025-12-01 01:00:41 +00:00
ProtoTess 21965a893f chore: update golangci-lint version to v2.0.0 in CI workflow 2025-12-01 00:58:43 +00:00
ProtoTess a4d20addfc chore: pin golangci-lint version to v1.64.8 in CI workflow 2025-12-01 00:57:06 +00:00
ProtoTess fbb18785da chore: update GitHub Actions to use latest versions of checkout, setup-go, cache, and download actions 2025-12-01 00:55:21 +00:00
ProtoTess 753ab5a6ae chore: downgrade actions/checkout to v4.1.7 in CI workflows 2025-12-01 00:52:46 +00:00
ProtoTess ec451017b5 chore: Update actions/cache to version 4.2.0 in CI workflows 2025-12-01 00:51:09 +00:00
ProtoTess b4e4982876 Refactor XML response handling in device extended and security tests
- Adjusted formatting in XML response strings for consistency in device_extended_test.go and device_security_test.go.
- Improved readability by aligning XML declaration and body content.
- Updated mock server responses to ensure proper handling of various ONVIF operations.

Enhance device security and storage handling

- Refactored struct field declarations in device_security.go and device_storage_test.go for improved clarity.
- Ensured consistent formatting across struct definitions and XML tags.

Standardize whitespace and formatting across multiple files

- Removed unnecessary blank lines and adjusted indentation in discovery, imaging, media, and PTZ server files.
- Improved overall code readability and maintainability by ensuring consistent formatting.

Update example applications for better readability

- Cleaned up whitespace in example applications to enhance code clarity.
- Ensured consistent formatting in main.go files across various examples.

Refactor server and SOAP handler code for consistency

- Standardized struct field declarations and XML tag formatting in server and SOAP handler files.
- Improved readability by aligning struct fields and ensuring consistent use of whitespace.

General code cleanup and formatting adjustments

- Applied consistent formatting across various files, including types.go and test files.
- Enhanced readability by aligning struct fields and removing unnecessary blank lines.
2025-12-01 00:49:36 +00:00
ProtoTess 856f49c82d feat: Add coverage reporting and analysis workflows, enhance CI with additional tests for older Go versions 2025-12-01 00:44:34 +00:00
ProtoTess 4f3e2a6df0 feat: Add device storage and WiFi management functionalities
- Implemented storage configuration management in device_storage.go:
  - GetStorageConfigurations
  - GetStorageConfiguration
  - CreateStorageConfiguration
  - SetStorageConfiguration
  - DeleteStorageConfiguration
  - SetHashingAlgorithm

- Added unit tests for storage configuration operations in device_storage_test.go.

- Implemented WiFi management functionalities in device_wifi.go:
  - GetDot11Capabilities
  - GetDot11Status
  - GetDot1XConfiguration
  - GetDot1XConfigurations
  - SetDot1XConfiguration
  - CreateDot1XConfiguration
  - DeleteDot1XConfiguration
  - ScanAvailableDot11Networks

- Added unit tests for WiFi management operations in device_wifi_test.go.

- Updated types.go to include new structures for geo location and access policy.
2025-12-01 00:05:35 +00:00
ProtoTess 3f343370ce Add device security tests and enhance device capabilities
- Introduced comprehensive tests for device security features including GetRemoteUser, SetRemoteUser, GetIPAddressFilter, SetIPAddressFilter, and more.
- Implemented mock server responses for various ONVIF device security SOAP actions.
- Added new types and constants for device services, capabilities, and network protocols in types.go.
- Enhanced existing tests for device services, discovery modes, and network configurations.
- Ensured proper handling of service capabilities and network protocols in the client.
2025-11-30 23:11:51 +00:00
ProtoTess 9d83a7c2da Merge pull request #35 from 0x524a/tls-verification
Tls verification
2025-11-18 14:27:37 -05:00
ProtoTess 50a545697a refactor: remove framerate estimation from RTSP stream inspection 2025-11-18 19:18:33 +00:00
ProtoTess ec63ece472 feat: add TLS verification option for HTTPS connections and improve user prompts 2025-11-18 19:09:36 +00:00
ProtoTess d990aee323 chore: prepare v1.1.3 release
- Draft release workflow fix
- RTSPeek library integration
- golangci-lint v2 migration
- All code quality improvements
v1.1.3
2025-11-18 18:43:00 +00:00
ProtoTess 74a3cb262f Merge pull request #34 from 0x524a/fix-draft-release
Fix draft release
2025-11-18 13:41:58 -05:00
ProtoTess 349fd20bc6 fix: create releases as draft to allow asset uploads
The release must be created as draft initially, otherwise it's
published immediately and becomes immutable before assets upload.

Users can manually publish after assets are uploaded, or we can
add a workflow_dispatch to publish programmatically.
2025-11-18 18:37:54 +00:00
ProtoTess 34eb35a3fd chore: prepare v1.1.2 release
- Release workflow fixes with action-gh-release@v2
- RTSPeek library integration
- golangci-lint v2 migration
- All linting errors fixed
v1.1.2
2025-11-18 18:34:36 +00:00
ProtoTess 572135d37c Merge pull request #32 from 0x524a/fix-release-workflow
Fix release workflow asset upload race condition
2025-11-18 13:28:15 -05:00
ProtoTess 0cb6fb8dd8 fix: upgrade to softprops/action-gh-release@v2
- Fixes asset upload race condition
- v2 handles concurrent uploads better
- Added fail_on_unmatched_files and make_latest flags
2025-11-18 18:25:19 +00:00
ProtoTess 6a61ec26cf Merge pull request #31 from 0x524a/release-v1.1.1
Release v1.1.1
2025-11-18 13:20:27 -05:00
ProtoTess 1feec67174 chore: prepare v1.1.1 release
- RTSPeek library integration for stream inspection
- golangci-lint v2 migration
- Fixed all linting errors (SA1006, errcheck, unused code)
- Enhanced CI/CD with proper directory exclusions
2025-11-18 18:17:53 +00:00
ProtoTess b9877ec175 Merge pull request #30 from 0x524a/fix-go-onvif-references
Fix go onvif references
v1.1.0
2025-11-18 13:12:43 -05:00
ProtoTess c54e0fa787 fix: Update golangci-lint args to include all relevant directories for linting 2025-11-18 18:07:07 +00:00
ProtoTess b5df457145 fix: Update golangci-lint configuration by removing deprecated issue rules 2025-11-18 18:02:18 +00:00
ProtoTess 021a926746 fix: Update golangci-lint action to version 2.2 for improved linting 2025-11-18 17:59:29 +00:00
ProtoTess 1cb86c4ab7 feat: Add linter configuration and improve error handling in download functions 2025-11-18 17:55:43 +00:00
ProtoTess b0dc7f6f60 fix: Improve error message formatting in download functions 2025-11-18 17:49:13 +00:00
ProtoTess e0b484436d refactor: Remove unused ASCII art generation function for snapshots 2025-11-18 17:45:46 +00:00
ProtoTess 8953ef6842 feat: Add RTSP stream inspection and connectivity check functionality 2025-11-18 04:59:52 +00:00
ProtoTess f0fe64a1a3 feat: Implement enhanced file download with Basic and Digest authentication support 2025-11-18 04:36:20 +00:00
ProtoTess 817f394c10 feat: Enhance DownloadFile error handling with detailed messages and hints 2025-11-18 04:26:04 +00:00
ProtoTess 3082840445 feat: Add file download functionality and ASCII art preview for camera snapshots
- Implemented DownloadFile method in client.go to download files with authentication.
- Added ascii.go for converting images to ASCII art with configurable parameters.
- Enhanced main.go to include a new option for capturing and displaying snapshots as ASCII art.
- Introduced non-interactive mode for onvif-cli, allowing command execution via command-line arguments.
- Updated documentation to include usage examples for non-interactive mode and scripting.
- Added error handling and improved user prompts for better user experience.
2025-11-18 04:13:44 +00:00