Skip to content

test: Add testing tool for VolumeGroup#678

Merged
mergify[bot] merged 1 commit into
csi-addons:mainfrom
ShravaniVangur:volgrp-testcmd
Oct 17, 2024
Merged

test: Add testing tool for VolumeGroup#678
mergify[bot] merged 1 commit into
csi-addons:mainfrom
ShravaniVangur:volgrp-testcmd

Conversation

@ShravaniVangur

@ShravaniVangur ShravaniVangur commented Sep 19, 2024

Copy link
Copy Markdown
Contributor

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"}

Comment thread cmd/csi-addons/volumegroup.go Outdated
@Nikhil-Ladha

Copy link
Copy Markdown
Contributor

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

Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/README.md Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated
Comment thread cmd/csi-addons/volumegroup.go Outdated

@Madhu-1 Madhu-1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

small Nit, LGTM

Comment thread cmd/csi-addons/volumegroup.go
nixpanic
nixpanic previously approved these changes Oct 15, 2024

@nixpanic nixpanic left a comment

Copy link
Copy Markdown
Member

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.

Comment thread cmd/csi-addons/volumegroup.go Outdated
var _ = registerOperation("CreateVolumeGroup", &CreateVolumeGroup{})

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

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

@nixpanic nixpanic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@nixpanic

Copy link
Copy Markdown
Member

@Mergifyio rebase

This adds testing tool for VolumeGroup operations.

Signed-off-by: ShravaniVangur <shravanivangur@gmail.com>
@mergify

mergify Bot commented Oct 17, 2024

Copy link
Copy Markdown

rebase

✅ Branch has been successfully rebased

@nixpanic

Copy link
Copy Markdown
Member

@Mergifyio queue

@mergify

mergify Bot commented Oct 17, 2024

Copy link
Copy Markdown

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at 9c3beb8

@mergify mergify Bot merged commit 9c3beb8 into csi-addons:main Oct 17, 2024
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