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

Instance Snapshots #240

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Instance Snapshots #240

wants to merge 1 commit into from

Conversation

uzaxirr
Copy link
Member

@uzaxirr uzaxirr commented Apr 2, 2025

No description provided.

@uzaxirr uzaxirr requested a review from Copilot April 2, 2025 10:08
@uzaxirr uzaxirr self-assigned this Apr 2, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces instance snapshot functionality with corresponding tests and fake client implementations for easier automated testing.

  • Adds API methods for creating, retrieving, listing, updating, and deleting instance snapshots
  • Provides comprehensive tests to verify each snapshot operation
  • Implements fake client support to simulate instance snapshot behavior in tests

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
instance_snapshot_test.go Contains tests for snapshot operations (create, get, list, update, delete)
instance_snapshot.go Implements core instance snapshot functions and endpoints
fake_client.go Provides fake client implementations for snapshot operations
Comments suppressed due to low confidence (1)

fake_client.go:2026

  • The 'InstanceSnapshots' type is defined but never used; consider removing it to maintain clarity in the codebase.
// InstanceSnapshots represents a list of instance snapshots in the fake client

@uzaxirr uzaxirr marked this pull request as draft April 2, 2025 10:09
@@ -2022,3 +2022,121 @@ func (c *FakeClient) UnassignIP(id, region string) (*SimpleResponse, error) {
Result: "success",
}, nil
}

// InstanceSnapshots represents a list of instance snapshots in the fake client
type InstanceSnapshots struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this plural?

It doesn't look like a list of instance snapshots.

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.

2 participants