Skip to content

Commit

Permalink
removing hardcode from podman pull
Browse files Browse the repository at this point in the history
  • Loading branch information
acruzgon committed Jan 8, 2025
1 parent 31280c1 commit 2fe2beb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ Cypress.Commands.add(
return Promise.reject(...arr);
};
const server = Cypress.env('containers');
const username = Cypress.env('username');
const password = Cypress.env('password');

return cy
.exec(shell`podman pull ${registry + remoteName}`)
Expand All @@ -256,7 +258,7 @@ Cypress.Commands.add(
.then(log, logFail)
.then(() =>
cy.exec(
shell`podman login ${server} --tls-verify=false --username=admin --password=admin`,
shell`podman login ${server} --tls-verify=false --username=${username} --password=${password}`,
{ failOnNonZeroExit: false },
),
)
Expand Down

0 comments on commit 2fe2beb

Please sign in to comment.