Skip to content

Commit

Permalink
Add comments to TestJuiceFSEngine_DeleteVolume() in pkg/ddc/juicefs/d…
Browse files Browse the repository at this point in the history
…elete_volume_test.go. (#4554)

Signed-off-by: Cookiecoolkid <[email protected]>
  • Loading branch information
Cookiecoolkid authored Mar 11, 2025
1 parent 6a7a98f commit ab37bc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/ddc/juicefs/delete_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ func doTestCases(testCases []TestCase, t *testing.T) {
}
}

// TestJuiceFSEngine_DeleteVolume tests the DeleteVolume functionality of the JuiceFS engine.
// It mainly tests the behavior of deleting a JuiceFS volume under different scenarios (normal, erroneous, and no runtime).
// Parameters:
// - t: The test suite for executing tests and reporting results.
// Test cases include:
// - Successfully deleting a JuiceFS volume with no errors.
// - Failing to delete a JuiceFS volume with an error annotation.
// - Failing to delete a JuiceFS volume with no runtime.
func TestJuiceFSEngine_DeleteVolume(t *testing.T) {
testPVInputs := []*v1.PersistentVolume{
{
Expand Down

0 comments on commit ab37bc4

Please sign in to comment.