Skip to content

Feature/v2 rest client backup #13

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

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open

Conversation

iButcat
Copy link
Member

@iButcat iButcat commented Apr 10, 2025

No description provided.

iButcat added 2 commits March 15, 2025 15:02
…her branch.. Will remove this commit and add right message for each files then.
@iButcat iButcat requested a review from nathanael-h April 10, 2025 09:59
@iButcat iButcat marked this pull request as draft April 10, 2025 10:01
iButcat added 10 commits April 18, 2025 18:22
- Fix DeleteJob by removing invalid 'type' parameter
- Fix UpdateJob to use 'backupNg.editJob' with correct parameters
- Improve VM selection safety in RunJobForVMs
- Add safety warnings for RunJob to prevent accidental backups

This fixes the issue with Terraform provider reporting errors when deleting
or updating backup jobs.
- Create structured integration test setup with environment controls
- Add tests for VM, backup, snapshot, restore, and other services
- Implement BackupTestGuide to prevent accidental backups during testing
- Add GitHub workflow for running integration tests
- Add integration testing documentation
- Update library interfaces for better testability
- Add mock implementations for testing without real XO instance
- Add JSONRPC interface for more consistent API interactions
- Extract JSON-RPC functionality into dedicated service
- Improve error handling for API calls
- Add better parameter validation
- Improve type definitions for better API interactions
- Update utility functions for parameter handling
- Add tests for core utilities
- Improve VM, snapshot, task, and restore services
- Make storage repository service more robust
- Update tests for services
- Improve README with clearer instructions
- Update examples to demonstrate proper API usage
- Update Makefile for better developer experience
- Update Go module dependencies
- Fix version conflicts
- Improve backup job payload representation
- Update task payload structure for better API compatibility
- Update client initialization and configuration
- Enhance error handling in API calls

If you prefer to run commands manually:

1. Install mockgen:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the install process before the options

@gCyrille gCyrille marked this pull request as ready for review May 23, 2025 14:08
@nathanael-h
Copy link
Member

@iButcat Can you handle the 2 comments about documentation?

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.

3 participants