Skip to content

Commit

Permalink
NAS-128621 / 24.10 / QA TrueCloud Backup tasks (#10062)
Browse files Browse the repository at this point in the history
* NAS-128621: QA TrueCloud Backup tasks

* NAS-128621:  QA TrueCloud Backup tasks
  • Loading branch information
AlexKarpov98 authored May 15, 2024
1 parent 3033c4e commit c7730c2
Show file tree
Hide file tree
Showing 92 changed files with 96 additions and 96 deletions.
4 changes: 2 additions & 2 deletions src/app/helptext/data-protection/cloud-backup/cloud-backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const helptextCloudBackup = {

folder_placeholder: T('Folder'),

description_placeholder: T('Description'),
description_tooltip: T('Enter a description of the Cloud Backup Task.'),
name_placeholder: T('Name'),
name_tooltip: T('Enter a name of the Cloud Backup Task.'),

keep_last_placeholder: T('Keep Last'),
keep_last_tooltip: T('Enter the number of last kept backups.'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
>
<ix-input
formControlName="description"
[label]="helptext.description_placeholder | translate"
[tooltip]="helptext.description_tooltip | translate"
[label]="helptext.name_placeholder | translate"
[tooltip]="helptext.name_tooltip | translate"
></ix-input>
<ix-input
formControlName="keep_last"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('CloudBackupFormComponent', () => {
const form = await loader.getHarness(IxFormHarness);
await form.fillForm({
'Source Path': '/mnt/my pool 2',
Description: 'New Cloud Backup Task',
Name: 'New Cloud Backup Task',
Password: 'qwerty',
Credentials: 'Storj iX (Storj)',
'Keep Last': 3,
Expand Down Expand Up @@ -173,7 +173,7 @@ describe('CloudBackupFormComponent', () => {
expect(await form.getValues()).toEqual({
Bucket: '',
Credentials: 'Storj iX (Storj)',
Description: 'sdf',
Name: 'sdf',
Folder: '/My Folder',
'Keep Last': '2',
Password: '1234',
Expand Down Expand Up @@ -205,7 +205,7 @@ describe('CloudBackupFormComponent', () => {
it('saves updated cloud backup task when form opened for edit is saved', async () => {
const form = await loader.getHarness(IxFormHarness);
await form.fillForm({
Description: 'Edited description',
Name: 'Edited description',
Password: 'qwerty123',
Bucket: 'bucket1',
'Source Path': ['/mnt/path1', '/mnt/path2'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class CloudBackupFormComponent implements OnInit {
const targetCredentials = _.find(credentialsList, { id: credentialId });
const targetProvider = _.find(providersList, { name: targetCredentials?.provider });

if (credentialId && targetProvider.buckets) {
if (credentialId && targetProvider?.buckets) {
this.form.controls.folder.enable();
this.loadBucketOptions(credentialId);
} else if (credentialId) {
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1327,12 +1327,12 @@
"Enter <strong>{pool}</strong> below to confirm": "",
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a list of allowed hostnames or IP addresses. Separate entries by pressing <code>Enter</code>. A more detailed description with examples can be found <a href=\"{url}\" target=\"_blank\">here</a>. <br><br> If neither *Hosts Allow* or *Hosts Deny* contains an entry, then SMB share access is allowed for any host. <br><br> If there is a *Hosts Allow* list but no *Hosts Deny* list, then only allow hosts on the *Hosts Allow* list. <br><br> If there is a *Hosts Deny* list but no *Hosts Allow* list, then allow all hosts that are not on the *Hosts Deny* list. <br><br> If there is both a *Hosts Allow* and *Hosts Deny* list, then allow all hosts that are on the *Hosts Allow* list. <br><br> If there is a host not on the *Hosts Allow* and not on the *Hosts Deny* list, then allow it.": "",
"Enter a list of chat IDs separated by space, comma or semicolon. To find your chat ID send a message to the bot, group or channel and visit <a href=\"https://api.telegram.org/bot(BOT_TOKEN)/getUpdates\" target=\"_blank\">https://api.telegram.org/bot(BOT_TOKEN)/getUpdates</a>.": "",
"Enter a list of denied hostnames or IP addresses. Separate entries by pressing <code>Enter</code>. If neither *Hosts Allow* or *Hosts Deny* contains an entry, then SMB share access is allowed for any host. <br><br> If there is a *Hosts Allow* list but no *Hosts Deny* list, then only allow hosts on the *Hosts Allow* list. <br><br> If there is a *Hosts Deny* list but no *Hosts Allow* list, then allow all hosts that are not on the *Hosts Deny* list. <br><br> If there is both a *Hosts Allow* and *Hosts Deny* list, then allow all hosts that are on the *Hosts Allow* list. <br><br> If there is a host not on the *Hosts Allow* and not on the *Hosts Deny* list, then allow it.": "",
"Enter a long string of random characters for use as <a href=\"https://searchsecurity.techtarget.com/definition/salt\" target=\"_blank\">salt</a> for the encryption password. <b>Warning:</b> Always securely back up the encryption salt value! Losing the salt value will result in data loss.": "",
"Enter a name for the interface. Use the format <samp>bond<i>X</i></samp>, <samp>vlan<i>X</i></samp>, or <samp>br<i>X</i></samp> where <i>X</i> is a number representing a non-parent interface. Read-only when editing an interface.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@
"Enter <strong>{zvolName}</strong> below to confirm.": "",
"Enter a Name (optional)": "",
"Enter a SPICE password to automatically pass to the SPICE session.": "",
"Enter a description of the Cloud Backup Task.": "",
"Enter a description of the Cloud Sync Task.": "",
"Enter a description of the cron job.": "",
"Enter a description of the interface.": "",
Expand All @@ -1465,6 +1464,7 @@
"Enter a name for the new credential.": "",
"Enter a name for the share.": "",
"Enter a name for this Keytab.": "",
"Enter a name of the Cloud Backup Task.": "",
"Enter a number of degrees in Celsius. S.M.A.R.T. reports if the temperature of a drive has changed by N degrees Celsius since the last report.": "",
"Enter a number of seconds to wait before alerting that the service cannot reach any UPS. Warnings continue until the situation is fixed.": "",
"Enter a one to three paragraph summary of the issue. Describe the problem and provide any steps to replicate the issue.": "",
Expand Down
Loading

0 comments on commit c7730c2

Please sign in to comment.