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

test: Add testing tool for VolumeGroup #678

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

ShravaniVangur
Copy link
Contributor

@ShravaniVangur ShravaniVangur commented Sep 19, 2024

This commit adds testing tool for VolumeGroup operations such as-

  • CreateVolumeGroup
  • ModifyVolumeGroup Membership
  • DeleteVolumeGroup
  • ControllerGetVolumeGroup

Resolves #653

Sample outputs for the cli commands of the form:
kubectl exec -c csi-addons <csi-addons-nodeplugin> -n rook-ceph -- csi-addons -operation <operationName> -secret <namespace/name> -parameters <key1=value1,...>

  • CreateVolumeGroup:
    Volume Group created: volume_group:{volume_group_id:"0001-0009-rook-ceph-0000000000000002-21fb957f-7987-44f8-972c-36c6e57896b0"}

  • ModifyVolumeGroupMembership:
    Volume Group Membership modified for- volume_group:{volume_group_id:"0001-0009-rook-ceph-0000000000000002-21fb957f-7987-44f8-972c-36c6e57896b0"}

  • DeleteVolumeGroup:
    Volume Group Deleted.

  • ControllerGetVolumeGroup:
    Controller Volume Group Info: volume_group:{volume_group_id:"0001-0009-rook-ceph-0000000000000002-21fb957f-7987-44f8-972c-36c6e578"}

@Nikhil-Ladha
Copy link
Contributor

@ShravaniVangur can you please also paste the successful output for the above CLI commands?

cmd/csi-addons/README.md Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
cmd/csi-addons/volumegroup.go Outdated Show resolved Hide resolved
Copy link
Member

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

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

small Nit, LGTM

cmd/csi-addons/volumegroup.go Show resolved Hide resolved
nixpanic
nixpanic previously approved these changes Oct 15, 2024
Copy link
Collaborator

@nixpanic nixpanic left a comment

Choose a reason for hiding this comment

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

Looks good to me, but it you want to cleanup the formatting/emptylines that would be appreciated.

var _ = registerOperation("CreateVolumeGroup", &CreateVolumeGroup{})

func (cvg *CreateVolumeGroup) Init(c *command) error {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting choice of empty lines. The functions above don't have any, and here you start to add more.

Can you make that a little more equal throughout the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

@nixpanic nixpanic requested a review from Madhu-1 October 15, 2024 12:06
@mergify mergify bot dismissed nixpanic’s stale review October 16, 2024 05:00

Pull request has been modified.

Copy link
Collaborator

@nixpanic nixpanic left a comment

Choose a reason for hiding this comment

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

Thanks!

@nixpanic
Copy link
Collaborator

@Mergifyio rebase

This adds testing tool for VolumeGroup operations.

Signed-off-by: ShravaniVangur <[email protected]>
Copy link

mergify bot commented Oct 17, 2024

rebase

✅ Branch has been successfully rebased

@nixpanic
Copy link
Collaborator

@Mergifyio queue

Copy link

mergify bot commented Oct 17, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 9c3beb8

@mergify mergify bot merged commit 9c3beb8 into csi-addons:main Oct 17, 2024
13 of 14 checks passed
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.

Add VolumeGroup RPC calls to csi-addons admin/test tool
6 participants