Skip to content

[TEST] TestBackupRestore::test_connection[S3] test fails making consecutive tests fail for backup & restore #1568

@khushboo-rancher

Description

@khushboo-rancher

What's the test to develop? Please describe

 @pytest.mark.dependency()
    def test_connection(self, api_client, backup_config, config_backup_target):
        code, data = api_client.settings.backup_target_test_connection()
>       assert 200 == code, f'Failed to test backup target connection: {data}'
E       AssertionError: Failed to test backup target connection: {"errors":["can't connect to backup target \u0026{Type:s3 Endpoint:http://172.19.99.205:9000 AccessKeyID:minioadmin SecretAccessKey:minioadmin BucketName:giants BucketRegion:ecmlab Cert: VirtualHostedStyle:false}, error: secrets \"harvester-backup-target-secret\" not found"]}
E       assert 200 == 503

api_client = HarvesterAPI('https://172.19.xyz.x ...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions