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:
Costa Alexoglou
2025-09-25 15:10:13 +00:00
committed by GitHub
co-authored by Clarity-89
parent 054e12b1ac
commit 31ae013e8d
8 changed files with 185 additions and 118 deletions
+3 -1
View File
@@ -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) {