@@ -543,47 +543,66 @@ Prerequisites:
543543
544544###### Test Suite 1 - Custom Resource Management
545545
546- Test case 1: Create ` DifferentialSnapshot ` custom resource referencing the two
546+ Test case 1:
547+ Create ` DifferentialSnapshot ` custom resource referencing the two
547548base and target ` VolumeSnapshot ` s in the fixture.
549+
548550Expected result: Custom resource created successfully with its ` status `
549551subresource updated to include callback URL and ` url-ready ` state.
550552
551- Test case 2: Create ` DifferentialSnapshot ` custom resource referencing the
553+ Test case 2:
554+ Create ` DifferentialSnapshot ` custom resource referencing the
552555target ` VolumeSnapshot ` , with the base ` VolumeSnapshot ` left empty.
556+
553557Expected result: Custom resource created successfully with its ` status `
554558subresource updated to include callback URL and ` url-ready ` state.
559+
555560Requirement: The base ` VolumeSnapshot ` is an optional field.
556561
557- Test case 3: Create ` DifferentialSnapshot ` custom resource referencing the
562+ Test case 3:
563+ Create ` DifferentialSnapshot ` custom resource referencing the
558564base ` VolumeSnapshot ` , with the target ` VolumeSnapshot ` left empty.
565+
559566Expected result: Custom resource failed to be created. Its ` status ` subresource
560567should not have the callback URL. Its state should be set to ` failed ` with a
561568` NotFound ` error message in the ` error ` field.
569+
562570Requirement: The target ` VolumeSnapshot ` is a required field.
563571
564- Test case 4: Create ` DifferentialSnapshot ` custom resource referencing
572+ Test case 4:
573+ Create ` DifferentialSnapshot ` custom resource referencing
565574non-existing base and target ` VolumeSnapshot ` s.
575+
566576Expected result: Custom resource failed to be created. Its ` status ` subresource
567577should not have the callback URL. Its state should be set to ` failed ` with a
568578` NotFound ` error message in the ` error ` field.
579+
569580Requirement: The target ` VolumeSnapshot ` is a required field.
570581
571- Test case 5: Update an existing ` DifferentialSnapshot ` custom resource to
582+ Test case 5:
583+ Update an existing ` DifferentialSnapshot ` custom resource to
572584reference a different target ` VolumeSnapshot ` .
585+
573586Expected result: Custom resource is updated successfully. Its ` status `
574587subresource is updated to include callback URL and ` url-ready ` state.
575588
576- Test case 6: Delete an existing ` DifferentialSnapshot ` custom resource.
589+ Test case 6:
590+ Delete an existing ` DifferentialSnapshot ` custom resource.
591+
577592Expected result: Custom resource is deleted successfully.
578593
579594###### Test Suite 2 - HTTP Listener
580595
581- Test case 1: Send a HTTP request with a fake ` Authorisation ` bearer token to the
596+ Test case 1:
597+ Send a HTTP request with a fake ` Authorisation ` bearer token to the
582598` DifferentialSnapshot ` listener's fake handler.
599+
583600Expected result: The listener should return a HTTP 200 ` OK ` status code.
584601
585- Test case 2: Send a HTTP request without an ` Authorisation ` bearer token to the
602+ Test case 2:
603+ Send a HTTP request without an ` Authorisation ` bearer token to the
586604` DifferentialSnapshot ` listener's fake handler.
605+
587606Expected result: The listener should return a HTTP 403 ` Forbidden ` status code.
588607
589608##### e2e tests
0 commit comments