Skip to content

Commit

Permalink
Avoid modifying server url on all git submission tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muradium committed Dec 15, 2024
1 parent ec012fa commit 02f6798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker/playwright-E2E-tests-mysql-localci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
condition: service_healthy
environment:
PLAYWRIGHT_DB_TYPE: 'MySQL'
network_mode: service:artemis-app
networks: !reset []

networks:
artemis:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ async function makeGitExerciseSubmission(
await programmingExerciseOverview.openCloneMenu(cloneMethod);
}
let repoUrl = await programmingExerciseOverview.copyCloneUrl();
if (process.env.CI === 'true' && (cloneMethod == GitCloneMethod.https || cloneMethod == GitCloneMethod.ssh)) {
repoUrl = repoUrl.replace(/(?<=@).+(?=:)/, 'artemis-app');
}
if (cloneMethod == GitCloneMethod.https) {
repoUrl = repoUrl.replace(student.username!, `${student.username!}:${student.password!}`);
}
Expand Down

0 comments on commit 02f6798

Please sign in to comment.