Connector Key Recovery
This test is about a robustness layer introduced with 2406.1 approval: If during
a running translation workflow you change the connector key (stored as
globalLink.key) to another (but valid connector key), the workflow should
be able to recover from that scenario ones the key is valid again. Also, if the
key is invalid, the workflow should be able to recover from that scenario.
- Connector Type:
default - Key Type:
manual(initially)
Quick Steps
- Log in as Rick C.
- Use
defaulttype, and the "manual" connector key. - Start a translation of an article and wait for the submission ID to be retrieved.
- Change the connector key to "automatic".
- See that error-handling-task is reached with an issue about an unknown submission.
- Change the connector key to an invalid key.
- Trigger retry.
- See that error-handling-task is reached with an issue about an invalid connector key.
- Set the connector key back to "manual".
- Trigger retry.
- The workflow should continue polling the translation state without issues.
Detailed Steps
-
Log in as Rick C.
-
Open the GlobalLink settings
/Settings/Options/Settings/Translation Services/GlobalLinktypeis set todefault- Credentials for gcc are entered (manual workflow key)
-
Start a translation for a given article.
-
To Workflow App: Navigate, for example via the nagbar, to the Workflow App and wait until the workflow is in the "Translate" state (Current task: "Awaiting translation results").
-
Content App: Change the connector key to another valid key (thus, "automatic").
-
Workflow App: Wait until the current task changes to "Download Error".
-
Accept the task.
-
Content App: Change the connector key to an invalid key, for example, prefix it with an additional
0. -
Workflow App: Click "Next Step". Validate an error is shown about an unknown submission, triggered by our previous misconfiguration.
-
Choose "Continue and retry".
-
Wait until the current task changes to "Download Error" again.
-
Accept the task.
-
Content App: Change the connector key back to our initial, valid key (thus, "manual").
-
Workflow App: Click "Next Step". Validate an error is shown about an invalid connector key, triggered by our previous misconfiguration.
-
Choose "Continue and retry".
-
The workflow should continue polling the translation state without issues.