Skip to content

Commit

Permalink
Fix cypress env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Jun 29, 2023
1 parent fa0b0de commit c3a98e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Cypress.Commands.add('mirrorRepo', (remoteRepo, repoName, user) => {
const endpoint = 'http://gitea.kitspace.test:3000/api/v1/repos/migrate'
const headers = {
'Content-Type': 'application/json',
Authorization: `token ${Cypress.env('CYPRESS_GITEA_ADMIN_TOKEN')}`,
Authorization: `token ${Cypress.env('GITEA_ADMIN_TOKEN')}`,
}

const giteaOptions = {
Expand Down Expand Up @@ -107,7 +107,7 @@ Cypress.Commands.add('mirrorRepo', (remoteRepo, repoName, user) => {
Cypress.Commands.add('createGiteaUser', user => {
const headers = {
'Content-Type': 'application/json',
Authorization: `token ${Cypress.env('CYPRESS_GITEA_ADMIN_TOKEN')}`,
Authorization: `token ${Cypress.env('GITEA_ADMIN_TOKEN')}`,
}

const url = 'http://gitea.kitspace.test:3000/api/v1/admin/users'
Expand Down

0 comments on commit c3a98e6

Please sign in to comment.