Skip to content

Commit bc71641

Browse files
Rachel Dowavicamitsaha
authored andcommitted
Rename fork test repo from hello-world to gitbackup-test-ignore-fork
1 parent 006a676 commit bc71641

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

test/INTEGRATION_TESTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ Each contributor creates their own test accounts. The script expects a standard
1818
2. Create two repositories:
1919
- `gitbackup-test-public` (public)
2020
- `gitbackup-test-private` (private)
21-
3. Fork any public `hello-world` repo (for testing `-ignore-fork`)
21+
3. Fork any public repo and rename it to `gitbackup-test-ignore-fork` (for testing `-ignore-fork`)
2222

2323
### GitLab
2424

2525
1. Create a [personal access token](https://gitlab.com/-/user_settings/personal_access_tokens) with `read_api` scope
2626
2. Create two projects:
2727
- `gitbackup-test-public` (public)
2828
- `gitbackup-test-private` (private)
29-
3. Fork any public `hello-world` project (for testing `-ignore-fork`)
29+
3. Fork any public project and rename it to `gitbackup-test-ignore-fork` (for testing `-ignore-fork`)
3030

3131
### Bitbucket
3232

3333
1. Create an [API token](https://bitbucket.org/account/settings/app-passwords/) with `read:user:bitbucket`, `read:workspace:bitbucket`, and `read:repository:bitbucket` scopes
3434
2. Create a workspace and two repositories:
3535
- `gitbackup-test-public` (public)
3636
- `gitbackup-test-private` (private)
37-
3. Fork any public `hello-world` repo into your workspace (for testing `-ignore-fork`)
37+
3. Fork any public repo into your workspace and rename it to `gitbackup-test-ignore-fork` (for testing `-ignore-fork`)
3838

3939
### Forgejo (Codeberg)
4040

4141
1. Create an [access token](https://codeberg.org/user/settings/applications) with `read:repository` permission
4242
2. Create two repositories:
4343
- `gitbackup-test-public` (public)
4444
- `gitbackup-test-private` (private)
45-
3. Fork any public `hello-world` repo (for testing `-ignore-fork`)
45+
3. Fork any public repo and rename it to `gitbackup-test-ignore-fork` (for testing `-ignore-fork`)
4646

4747
## Environment Setup
4848

test/integration-test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ run_service_tests() {
199199

200200
echo " Running clone without -ignore-fork (fork should be present)..."
201201
if run_gitbackup -service "$service" -backupdir "$tmpdir" $extra_flags; then
202-
if check_repo_exists "$tmpdir" "hello-world"; then
203-
echo " Found hello-world (forked repo)"
202+
if check_repo_exists "$tmpdir" "gitbackup-test-ignore-fork"; then
203+
echo " Found gitbackup-test-ignore-fork (forked repo)"
204204
pass "$service ($label): fork present without -ignore-fork"
205205
else
206-
echo " Missing hello-world (forked repo)"
207-
fail "$service ($label): fork present without -ignore-fork — hello-world not found"
206+
echo " Missing gitbackup-test-ignore-fork (forked repo)"
207+
fail "$service ($label): fork present without -ignore-fork — gitbackup-test-ignore-fork not found"
208208
fi
209209
else
210210
fail "$service ($label): fork present without -ignore-fork — gitbackup exited with error"
@@ -217,11 +217,11 @@ run_service_tests() {
217217

218218
echo " Running clone with -ignore-fork..."
219219
if run_gitbackup -service "$service" -backupdir "$tmpdir" -ignore-fork $extra_flags; then
220-
if check_repo_exists "$tmpdir" "hello-world"; then
221-
echo " Found hello-world (unexpected — should be skipped)"
220+
if check_repo_exists "$tmpdir" "gitbackup-test-ignore-fork"; then
221+
echo " Found gitbackup-test-ignore-fork (unexpected — should be skipped)"
222222
fail "$service ($label): ignore-fork — forked repo should have been skipped"
223223
else
224-
echo " Correctly skipped hello-world"
224+
echo " Correctly skipped gitbackup-test-ignore-fork"
225225
# Verify non-fork repos are still present
226226
all_found=true
227227
for repo_name in $EXPECTED_REPOS; do

0 commit comments

Comments
 (0)