Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Add a manual integration test for OstreeRepoFinderMount #1203

Closed

Conversation

pwithnall
Copy link
Member

Test an end-to-end flow of pulling refs from an online
repository → local OS repository → create a USB stick of
them → pull to a local OS repository on another machine.

This is a manual test, as it requires a throwaway USB stick which the
test can format as ext4 or vfat to test the flow works with both file
systems.

Run it as:

MOUNT_INTEGRATION_DEV=/dev/sdb1 make check
TESTS=tests/test-repo-finder-mount-integration.sh

Signed-off-by: Philip Withnall [email protected]


This PR depends on fixes from #1202. It exercises some of the functionality introduced in #1182, so it also depends (transitively) on that.

@pwithnall pwithnall self-assigned this Sep 21, 2017
@pwithnall pwithnall requested a review from cgwalters September 21, 2017 15:25
@pwithnall pwithnall force-pushed the repo-finder-mount-integration branch 3 times, most recently from 3d2f961 to c522681 Compare September 22, 2017 11:52
@pwithnall
Copy link
Member Author

Summary of what @cgwalters and I discussed today:

  • This is hacky and needs to be used manually but it’s better to document the sequence of test steps than for them to disappear into the mists of time
  • Eventually it could be made an installed test and executed on a VM with a virtual USB stick added by the test harness outside the VM; that would mean the test no longer needs to be manual
  • I don’t have time to do that work at the moment

@pwithnall pwithnall force-pushed the repo-finder-mount-integration branch 2 times, most recently from 4553587 to af7c1f7 Compare September 26, 2017 15:15
@rh-atomic-bot
Copy link

☔ The latest upstream changes (presumably 2f9f722) made this pull request unmergeable. Please resolve the merge conflicts.

@pwithnall pwithnall force-pushed the repo-finder-mount-integration branch from af7c1f7 to fe6bb0a Compare September 27, 2017 15:21
@pwithnall
Copy link
Member Author

Rebased on #1202 now that #1182 has been merged; ready for review after #1202.

Test an end-to-end flow of pulling refs from an online
repository → local OS repository → create a USB stick of
them → pull to a local OS repository on another machine.

This is a manual test, as it requires a throwaway USB stick which the
test can format as ext4 or vfat to test the flow works with both file
systems.

Run it as:

MOUNT_INTEGRATION_DEV=/dev/sdb1 make check \
  TESTS=tests/test-repo-finder-mount-integration.sh

Signed-off-by: Philip Withnall <[email protected]>
The latter is deprecated now.

Signed-off-by: Philip Withnall <[email protected]>
As per commit 6e4146a.

Signed-off-by: Philip Withnall <[email protected]>
@pwithnall pwithnall force-pushed the repo-finder-mount-integration branch from fe6bb0a to a3b1813 Compare September 28, 2017 13:44
@pwithnall
Copy link
Member Author

Rebased on master now that #1202 has been merged. Ready for review and merging.

@cgwalters
Copy link
Member

Nice work! At a quick glance at the test I think I know how to get this wired up, though the udisks bit may be tricky. Anyways can do later.

@rh-atomic-bot r+ a3b1813

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

rh-atomic-bot pushed a commit that referenced this pull request Sep 28, 2017
The latter is deprecated now.

Signed-off-by: Philip Withnall <[email protected]>

Closes: #1203
Approved by: cgwalters
rh-atomic-bot pushed a commit that referenced this pull request Sep 28, 2017
As per commit 6e4146a.

Signed-off-by: Philip Withnall <[email protected]>

Closes: #1203
Approved by: cgwalters
@cgwalters
Copy link
Member

⚡️ !

@pwithnall pwithnall deleted the repo-finder-mount-integration branch September 28, 2017 14:18
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.

3 participants