Skip to content

Add ignore-fork tests to integration test script#209

Open
rdowavic wants to merge 2 commits intoamitsaha:masterfrom
rdowavic:feat/integration-test-improvements
Open

Add ignore-fork tests to integration test script#209
rdowavic wants to merge 2 commits intoamitsaha:masterfrom
rdowavic:feat/integration-test-improvements

Conversation

@rdowavic
Copy link

@rdowavic rdowavic commented Feb 26, 2026

Summary

I've added tests for -ignore-fork to the integration test script. Right now I'm having some issues with it but it might be to do with how I've configured my test accounts. I'll investigate this and get back with something.

  • Adds Test 5 & 6 to run_service_tests() to verify -ignore-fork behavior
    • Test 5: without the flag, forked hello-world repo is present in backup
    • Test 6: with -ignore-fork, gitbackup-test-ignore-fork is skipped while gitbackup-test-public and gitbackup-test-private

Notes

This is the result from test/integration-test.sh run:

Building gitbackup...

=== github (SSH) ===
  Running clone without -ignore-fork (fork should be present)...
    Missing gitbackup-test-ignore-fork (forked repo)
  FAIL: github (SSH): fork present without -ignore-fork — gitbackup-test-ignore-fork not found
  Running clone with -ignore-fork...
    Correctly skipped gitbackup-test-ignore-fork
    Found gitbackup-test-public
    Found gitbackup-test-private
  PASS: github (SSH): ignore-fork

=== github (HTTPS) ===
  Running clone without -ignore-fork (fork should be present)...
    Missing gitbackup-test-ignore-fork (forked repo)
  FAIL: github (HTTPS): fork present without -ignore-fork — gitbackup-test-ignore-fork not found
  Running clone with -ignore-fork...
    Correctly skipped gitbackup-test-ignore-fork
    Found gitbackup-test-public
    Found gitbackup-test-private
  PASS: github (HTTPS): ignore-fork

=== gitlab (SSH) ===
  Running clone without -ignore-fork (fork should be present)...
    Missing gitbackup-test-ignore-fork (forked repo)
  FAIL: gitlab (SSH): fork present without -ignore-fork — gitbackup-test-ignore-fork not found
  Running clone with -ignore-fork...
    Correctly skipped gitbackup-test-ignore-fork
    Found gitbackup-test-public
    Found gitbackup-test-private
  PASS: gitlab (SSH): ignore-fork

=== gitlab (HTTPS) ===
  Running clone without -ignore-fork (fork should be present)...
    Missing gitbackup-test-ignore-fork (forked repo)
  FAIL: gitlab (HTTPS): fork present without -ignore-fork — gitbackup-test-ignore-fork not found
  Running clone with -ignore-fork...
    Correctly skipped gitbackup-test-ignore-fork
    Found gitbackup-test-public
    Found gitbackup-test-private
  PASS: gitlab (HTTPS): ignore-fork

=== bitbucket (SSH) ===
  Running clone without -ignore-fork (fork should be present)...
    Found gitbackup-test-ignore-fork (forked repo)
  PASS: bitbucket (SSH): fork present without -ignore-fork
  Running clone with -ignore-fork...
    Found gitbackup-test-ignore-fork (unexpected — should be skipped)
  FAIL: bitbucket (SSH): ignore-fork — forked repo should have been skipped

=== bitbucket (HTTPS) ===
  Running clone without -ignore-fork (fork should be present)...
    Found gitbackup-test-ignore-fork (forked repo)
  PASS: bitbucket (HTTPS): fork present without -ignore-fork
  Running clone with -ignore-fork...
    Found gitbackup-test-ignore-fork (unexpected — should be skipped)
  FAIL: bitbucket (HTTPS): ignore-fork — forked repo should have been skipped

=== forgejo (SSH) ===
  Running clone without -ignore-fork (fork should be present)...
    Found gitbackup-test-ignore-fork (forked repo)
  PASS: forgejo (SSH): fork present without -ignore-fork
  Running clone with -ignore-fork...
    Found gitbackup-test-ignore-fork(unexpected — should be skipped)
  FAIL: forgejo (SSH): ignore-fork — forked repo should have been skipped

=== forgejo (HTTPS) ===
  Running clone without -ignore-fork (fork should be present)...
    Found gitbackup-test-ignore-fork (forked repo)
  PASS: forgejo (HTTPS): fork present without -ignore-fork
  Running clone with -ignore-fork...
    Found gitbackup-test-ignore-fork (unexpected — should be skipped)
  FAIL: forgejo (HTTPS): ignore-fork — forked repo should have been skipped

Rachel Dowavic added 2 commits February 26, 2026 15:43
Test 5 verifies forked hello-world repo is present without the flag.
Test 6 verifies -ignore-fork skips the fork while keeping non-fork repos.
Also updates setup docs to mention forking a hello-world repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant