Skip to content

Commit

Permalink
Change the qesap SAS token lifetime
Browse files Browse the repository at this point in the history
Change the token lifetime accomodating it with the test duration.
  • Loading branch information
mpagot committed Nov 21, 2023
1 parent fd4d33e commit 7363643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/sles4sap/publiccloud/qesap_terraform.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ sub run {
my $escaped_token = qesap_az_create_sas_token(storage => get_required_var('HANA_ACCOUNT'),
container => (split("/", get_required_var('HANA_CONTAINER')))[0],
keyname => get_required_var('HANA_KEYNAME'),
lifetime => 30);
# lifetime has to be enough to reach the point of the test that
# executes qe-sap-deployment Ansible playbook 'sap-hana-download-media.yaml'
lifetime => 90);
# escape needed by 'sed'
# but not implemented in file_content_replace() yet poo#120690
$escaped_token =~ s/\&/\\\&/g;
Expand Down
5 changes: 4 additions & 1 deletion tests/sles4sap/qesapdeployment/configure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ sub run {
$variables{HANA_TOKEN} = qesap_az_create_sas_token(storage => get_required_var('QESAPDEPLOY_HANA_ACCOUNT'),
container => (split("/", get_required_var('QESAPDEPLOY_HANA_CONTAINER')))[0],
keyname => get_required_var('QESAPDEPLOY_HANA_KEYNAME'),
lifetime => 30);
# lifetime has to be enough to reach the point of the test that
# executes qe-sap-deployment Ansible playbook 'sap-hana-download-media.yaml'
# and eventually any Ansible retry.
lifetime => 120);
record_info('TOKEN', $variables{HANA_TOKEN});
# escape needed by 'sed'
# but not implemented in file_content_replace() yet poo#120690
Expand Down

0 comments on commit 7363643

Please sign in to comment.