chore: add validations to test endpoint (#111622)
* chore: add validations to test endpoint * Validate path --------- Co-authored-by: Clarity-89 <homes89@ukr.net>
This commit is contained in:
co-authored by
Clarity-89
parent
054e12b1ac
commit
31ae013e8d
@@ -22,7 +22,9 @@ func TestIntegrationHealth(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
repo := "test-repo-health"
|
||||
helper.CreateRepo(t, TestRepo{
|
||||
Name: repo,
|
||||
Name: repo,
|
||||
Target: "folder",
|
||||
ExpectedFolders: 1,
|
||||
})
|
||||
|
||||
// Verify the health status before calling the endpoint
|
||||
|
||||
@@ -267,7 +267,6 @@ func TestIntegrationProvisioning_RepositoryValidation(t *testing.T) {
|
||||
|
||||
if test.expectError != nil {
|
||||
require.Error(t, err, "Expected error for repository with path: %s", test.path)
|
||||
|
||||
require.ErrorContains(t, err, test.expectError.Error(), "Error should contain expected message for path: %s", test.path)
|
||||
var statusError *apierrors.StatusError
|
||||
if errors.As(err, &statusError) {
|
||||
|
||||
Reference in New Issue
Block a user