harvester / tests

Harvester test cases
Apache License 2.0
11 stars 31 forks source link

[TEST] Backupstore related test cases failed on Cypress #1198

Open khushboo-rancher opened 7 months ago

khushboo-rancher commented 7 months ago

What's the test to develop? Please describe

Below test case failed on cypress test

khushboo-rancher commented 7 months ago

@TachunLin Please add log for the failed test cases if you have them

TachunLin commented 6 months ago

For test plan Set backup target S3, according to the test result

settings.clickMenu('backup-target', 'Edit Setting', 'backup-target');
const backupTarget = Cypress.env('backupTarget');
settings.setS3BackupTarget({
    type: 'S3',
    endpoint: backupTarget.endpoint,
    bucketName: backupTarget.bucketName,
    bucketRegion: backupTarget.bucketRegion,
    accessKeyId: backupTarget.accessKey,
    secretAccessKey: backupTarget.secretKey,
});
settings.update('backup-target');
TachunLin commented 4 months ago

Attach the test report for v1.3.1-rc1 for reference: https://minio.provo.rancherlabs.com:31524/cypress-test-report/cypress/results/20240531-040540-68123a0/index.html

torchiaf commented 4 months ago

@TachunLin something in S3 setup has changed recently? Do you have a S3 env that I could use to replicate it locally ?

TachunLin commented 4 months ago

Just checked the S3 setup on the cypress.env.json. Which point to our internal minio endpoint.

I manually set this connection and it not works.

image

image

I check the minio enpoint, the cypress-backup-test target exists. This may need to further investigation for the functionality.

And currently I don't have a working S3 environment available can test the S3 backup target. Let me consider how to find some for it.

torchiaf commented 4 months ago

There is certificate error:

: AWS Error: RequestError send request failed Get "https://minio.provo.rancherlabs.com:31524/cypress-backup-test?delimiter=%!F(MISSING)&prefix=%!F(MISSING)": tls: failed to verify certificate: x509: certificate is valid for minio-pool-0-{0...1}.minio-hl.minio.svc.cluster.local, minio.minio.svc.cluster.local, minio.minio, minio.minio.svc, *.minio-hl.minio.svc.cluster.local, *.minio.svc.cluster.local, not minio.provo.rancherlabs.com

I would say this a configuration error.