diff --git a/cypress/constants/constants.ts b/cypress/constants/constants.ts index 30baaf4b3..4fdd4f120 100644 --- a/cypress/constants/constants.ts +++ b/cypress/constants/constants.ts @@ -48,20 +48,20 @@ export const MenuNav = { namespace: ['Namespaces', 'harvester/c/local/namespace', 'Namespaces'], clusterNetwork: ['Cluster Network Configuration', 'harvester/c/local/network.harvesterhci.io.clusternetwork', 'Cluster Network Configuration', ['Networks']], vmNetwork: ['Virtual Machine Networks', 'harvester/c/local/harvesterhci.io.networkattachmentdefinition', 'Virtual Machine Networks', ['Networks']], - vmBackup: ['VM Backups', 'harvester/c/local/harvesterhci.io.virtualmachinebackup', 'VM Backups', ['Backup & Snapshot']], - vmSnapshot: ['VM Snapshots', 'harvester/c/local/harvesterhci.io.vmsnapshot', 'VM Snapshots', ['Backup & Snapshot']], - volumeSnapshot: ['Volume Snapshots', 'harvester/c/local/harvesterhci.io.volumesnapshot', 'Volume Snapshots', ['Backup & Snapshot']], - alertmanagerConfig: ['Alertmanager Configs', 'harvester/c/local/harvesterhci.io.monitoring.alertmanagerconfig', 'Alertmanager Configs', ['Monitoring & Logging', 'Monitoring']], - clusterFlow: ['Cluster Flow', 'harvester/c/local/harvesterhci.io.logging.clusterflow', 'Cluster Flows', ['Monitoring & Logging', 'Logging']], - clusterOutput: ['Cluster Output', 'harvester/c/local/harvesterhci.io.logging.clusteroutput', 'Cluster Outputs', ['Monitoring & Logging', 'Logging']], - flow: ['Flow', 'harvester/c/local/harvesterhci.io.logging.flow', 'Flows', ['Monitoring & Logging', 'Logging']], - Output: ['Output', 'harvester/c/local/harvesterhci.io.logging.output', 'Outputs', ['Monitoring & Logging', 'Logging']], + vmBackup: ['Virtual Machine Backups', 'harvester/c/local/harvesterhci.io.virtualmachinebackup', 'Virtual Machine Backups', ['Backup and Snapshots']], + vmSnapshot: ['Virtual Machine Snapshots', 'harvester/c/local/harvesterhci.io.vmsnapshot', 'Virtual Machine Snapshots', ['Backup and Snapshots']], + volumeSnapshot: ['Volume Snapshots', 'harvester/c/local/harvesterhci.io.volumesnapshot', 'Volume Snapshots', ['Backup and Snapshots']], + alertmanagerConfig: ['Alertmanager Configurations', 'harvester/c/local/harvesterhci.io.monitoring.alertmanagerconfig', 'Alertmanager Configurations', ['Monitoring and Logging', 'Monitoring']], + clusterFlow: ['Cluster Flows', 'harvester/c/local/harvesterhci.io.logging.clusterflow', 'Cluster Flows', ['Monitoring and Logging', 'Logging']], + clusterOutput: ['Cluster Outputs', 'harvester/c/local/harvesterhci.io.logging.clusteroutput', 'Cluster Outputs', ['Monitoring and Logging', 'Logging']], + flow: ['Flows', 'harvester/c/local/harvesterhci.io.logging.flow', 'Flows', ['Monitoring & Logging', 'Logging']], + Output: ['Outputs', 'harvester/c/local/harvesterhci.io.logging.output', 'Outputs', ['Monitoring & Logging', 'Logging']], Template: ['Templates', 'harvester/c/local/harvesterhci.io.virtualmachinetemplateversion', 'Templates', ['Advanced']], sshKey: ['SSH Keys', 'harvester/c/local/harvesterhci.io.keypair', 'SSH Keys', ['Advanced']], - cloudConfigTemplate: ['Cloud Config Templates', 'harvester/c/local/harvesterhci.io.cloudtemplate', 'Cloud Config Templates', ['Advanced']], + cloudConfigTemplate: ['Cloud Configuration Templates', 'harvester/c/local/harvesterhci.io.cloudtemplate', 'Cloud Configuration Templates', ['Advanced']], storageClass: ['Storage Classes', 'harvester/c/local/harvesterhci.io.storage', 'Storage Classes', ['Advanced']], pciDevice: ['PCI Devices', 'harvester/c/local/devices.harvesterhci.io.pcidevice', 'PCI Devices', ['Advanced']], - addon: ['Addons', 'harvester/c/local/harvesterhci.io.addon', 'Addons', ['Advanced']], + addon: ['Add-ons', 'harvester/c/local/harvesterhci.io.addon', 'Add-ons', ['Advanced']], secrets: ['Secrets', 'harvester/c/local/harvesterhci.io.secret', 'Secrets', ['Advanced']], setting: ['Settings', 'harvester/c/local/harvesterhci.io.setting', 'Settings', ['Advanced']] } \ No newline at end of file diff --git a/cypress/testcases/settings/settings.spec.ts b/cypress/testcases/settings/settings.spec.ts index bd0e17b23..57990bd8d 100644 --- a/cypress/testcases/settings/settings.spec.ts +++ b/cypress/testcases/settings/settings.spec.ts @@ -65,14 +65,14 @@ describe('Set backup target S3', () => { it.only('Set backup target S3', () => { settings.clickMenu('backup-target', 'Edit Setting', 'backup-target'); - const backupTarget = Cypress.env('backupTarget'); + const backupTarget = Cypress.env('S3backupTarget'); settings.setS3BackupTarget({ type: 'S3', - endpoint: "http://172.19.99.205:9000", - bucketName: "cypress", - bucketRegion: "ecmlab", - accessKeyId: "minioadmin", - secretAccessKey: "minioadmin", + endpoint: backupTarget.S3endpoint, + bucketName: backupTarget.S3bucketName, + bucketRegion: backupTarget.S3bucketRegion, + accessKeyId: backupTarget.S3accessKey, + secretAccessKey: backupTarget.S3secretKey, }) settings.update('backup-target');