Open khushboo-rancher opened 7 months ago
@TachunLin Please add log for the failed test cases if you have them
For test plan Set backup target S3
, according to the test result
The failure log indicate the return 422
not as expected 200
AssertionError: Check edit backup-target: expected 422 to equal 200
at Context.eval (webpack:///./utils/components/cru-resource.po.ts:181:62)
expected- actual
422
200
The failure screenshot
The failure comes from the following lines of code
../cypress/testcases/settings/settings.spec.ts
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');
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
@TachunLin something in S3 setup has changed recently? Do you have a S3 env that I could use to replicate it locally ?
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.
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.
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.
What's the test to develop? Please describe
Below test case failed on cypress test