Skip to content

Commit

Permalink
add test: snapshot empty mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Jan 11, 2025
1 parent aa0830f commit 8546cf3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/t05_snapshot/CreateSnapshot10Test_gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

Snapshot oh-snap successfully created.
You can run 'aptly publish snapshot oh-snap' to publish snapshot as Debian repository.
11 changes: 11 additions & 0 deletions system/t05_snapshot/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,14 @@ class CreateSnapshot9Test(BaseTest):
"aptly repo create local-repo",
]
runCmd = "aptly snapshot create snap9 from repo local-repo"


class CreateSnapshot10Test(BaseTest):
"""
create snapshot: from empty mirror
"""
fixtureCmds = [
"aptly mirror create -ignore-signatures non-free http://repo.aptly.info/system-tests/security.debian.org/debian-security bookworm-security updates/non-free",
"aptly mirror update -ignore-signatures non-free"
]
runCmd = "aptly snapshot create oh-snap from mirror non-free"

0 comments on commit 8546cf3

Please sign in to comment.