@@ -14,7 +14,7 @@ SECRET_NAME="git-creds"
1414SSH_SECRET_NAME=" git-creds-ssh"
1515SSH_KEY_PATH=" /tmp/e2e-ssh-key"
1616SSH_PUB_KEY_PATH=" /tmp/e2e-ssh-key.pub"
17- API_URL=" http://localhost:3000 /api/v1"
17+ API_URL=" http://localhost:13000 /api/v1"
1818
1919if [ -z " $REPO_NAME " ]; then
2020 echo " ❌ Error: Repository name must be provided as first argument"
@@ -281,12 +281,12 @@ checkout_repository() {
281281 # Create parent directory
282282 mkdir -p " $( dirname " $CHECKOUT_DIR " ) "
283283
284- # Configure git for localhost:3000 authentication using credentials
284+ # Configure git for localhost:13000 authentication using credentials
285285 # This creates a global git config that maps the localhost URL to use our credentials
286- REPO_URL_WITH_AUTH=" http://$ADMIN_USER :$TOKEN @localhost:3000 /$ORG_NAME /$REPO_NAME .git"
287- REPO_URL_LOCALHOST=" http://localhost:3000 /$ORG_NAME /$REPO_NAME .git"
286+ REPO_URL_WITH_AUTH=" http://$ADMIN_USER :$TOKEN @localhost:13000 /$ORG_NAME /$REPO_NAME .git"
287+ REPO_URL_LOCALHOST=" http://localhost:13000 /$ORG_NAME /$REPO_NAME .git"
288288
289- echo " 🔐 Configuring git authentication for localhost:3000 ..."
289+ echo " 🔐 Configuring git authentication for localhost:13000 ..."
290290 # Set up URL rewriting so git will use our credentials automatically
291291 git config --global " url.$REPO_URL_WITH_AUTH .insteadOf" " $REPO_URL_LOCALHOST "
292292
@@ -299,7 +299,7 @@ checkout_repository() {
299299 git config user.name " E2E Test"
300300 git config user.email " e2e-test@gitops-reverser.local"
301301
302- # Set up the remote URL to use localhost:3000 (authentication is handled by global config)
302+ # Set up the remote URL to use localhost:13000 (authentication is handled by global config)
303303 git remote set-url origin " $REPO_URL_LOCALHOST "
304304
305305 echo " 🔧 Git configuration completed in checkout directory"
@@ -327,7 +327,7 @@ setup_credentials
327327checkout_repository
328328
329329# Repository information
330- REPO_URL=" http://gitea-http.$GITEA_NAMESPACE .svc.cluster.local:3000 /$ORG_NAME /$REPO_NAME .git"
330+ REPO_URL=" http://gitea-http.$GITEA_NAMESPACE .svc.cluster.local:13000 /$ORG_NAME /$REPO_NAME .git"
331331
332332echo "
333333🎉 Gitea setup completed successfully!
@@ -346,13 +346,13 @@ echo "
346346 • Access Token: ${TOKEN: 0: 8} ...
347347
348348🌐 Access Gitea:
349- • Visit http://localhost:3000 in your browser
349+ • Visit http://localhost:13000 in your browser
350350 • Login: $ADMIN_USER / $ADMIN_PASS
351- • Stop port-forward: pkill -f 'kubectl.*port-forward.*3000 '
351+ • Stop port-forward: pkill -f 'kubectl.*port-forward.*13000 '
352352
353353📂 Git Repository:
354354 • Local checkout: $CHECKOUT_DIR
355- • Git operations configured for localhost:3000
355+ • Git operations configured for localhost:13000
356356 • Ready for git pull/fetch operations during tests
357357
358358✨ Ready for e2e testing! Port-forward will stay active.
0 commit comments