mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Add Debian 11 keys to test fixture keyring
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
committed by
Lorenzo Bolla
parent
0f1575d5af
commit
d582f9bab2
+41
-39
@@ -218,55 +218,57 @@ class UpdateMirror14Test(BaseTest):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class UpdateMirror15Test(BaseTest):
|
||||
"""
|
||||
update mirrors: update for mirror without MD5 checksums
|
||||
"""
|
||||
longTest = False
|
||||
fixtureCmds = [
|
||||
"aptly mirror create --ignore-signatures bintray https://dl.bintray.com/smira/deb/ ./",
|
||||
]
|
||||
runCmd = "aptly mirror update --ignore-signatures bintray"
|
||||
# # disabled because https://dl.bintray.com/smira/deb/ seems to be missing
|
||||
#
|
||||
# class UpdateMirror15Test(BaseTest):
|
||||
# """
|
||||
# update mirrors: update for mirror without MD5 checksums
|
||||
# """
|
||||
# longTest = False
|
||||
# fixtureCmds = [
|
||||
# "aptly mirror create --ignore-signatures bintray https://dl.bintray.com/smira/deb/ ./",
|
||||
# ]
|
||||
# runCmd = "aptly mirror update --ignore-signatures bintray"
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
# def output_processor(self, output):
|
||||
# return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
def check(self):
|
||||
super(UpdateMirror15Test, self).check()
|
||||
# check pool
|
||||
self.check_exists(
|
||||
'pool/c7/6b/4bd12fd92e4dfe1b55b18a67a669_libboost-program-options-dev_1.49.0.1_i386.deb')
|
||||
# def check(self):
|
||||
# super(UpdateMirror15Test, self).check()
|
||||
# # check pool
|
||||
# self.check_exists(
|
||||
# 'pool/c7/6b/4bd12fd92e4dfe1b55b18a67a669_libboost-program-options-dev_1.49.0.1_i386.deb')
|
||||
|
||||
|
||||
class UpdateMirror16Test(BaseTest):
|
||||
"""
|
||||
update mirrors: update for mirror without MD5 checksums but with file in pool on legacy MD5 location
|
||||
# class UpdateMirror16Test(BaseTest):
|
||||
# """
|
||||
# update mirrors: update for mirror without MD5 checksums but with file in pool on legacy MD5 location
|
||||
|
||||
as mirror lacks MD5 checksum, file would be downloaded but not re-imported
|
||||
"""
|
||||
longTest = False
|
||||
fixtureCmds = [
|
||||
"aptly mirror create --ignore-signatures bintray https://dl.bintray.com/smira/deb/ ./",
|
||||
]
|
||||
runCmd = "aptly mirror update --ignore-signatures bintray"
|
||||
# as mirror lacks MD5 checksum, file would be downloaded but not re-imported
|
||||
# """
|
||||
# longTest = False
|
||||
# fixtureCmds = [
|
||||
# "aptly mirror create --ignore-signatures bintray https://dl.bintray.com/smira/deb/ ./",
|
||||
# ]
|
||||
# runCmd = "aptly mirror update --ignore-signatures bintray"
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
# def output_processor(self, output):
|
||||
# return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
def prepare(self):
|
||||
super(UpdateMirror16Test, self).prepare()
|
||||
# def prepare(self):
|
||||
# super(UpdateMirror16Test, self).prepare()
|
||||
|
||||
os.makedirs(os.path.join(
|
||||
os.environ["HOME"], ".aptly", "pool", "00", "35"))
|
||||
# os.makedirs(os.path.join(
|
||||
# os.environ["HOME"], ".aptly", "pool", "00", "35"))
|
||||
|
||||
shutil.copy(os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "files", "libboost-program-options-dev_1.49.0.1_i386.deb"),
|
||||
os.path.join(os.environ["HOME"], ".aptly", "pool", "00", "35"))
|
||||
# shutil.copy(os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "files", "libboost-program-options-dev_1.49.0.1_i386.deb"),
|
||||
# os.path.join(os.environ["HOME"], ".aptly", "pool", "00", "35"))
|
||||
|
||||
def check(self):
|
||||
super(UpdateMirror16Test, self).check()
|
||||
# check pool
|
||||
self.check_not_exists(
|
||||
'pool/c7/6b/4bd12fd92e4dfe1b55b18a67a669_libboost-program-options-dev_1.49.0.1_i386.deb')
|
||||
# def check(self):
|
||||
# super(UpdateMirror16Test, self).check()
|
||||
# # check pool
|
||||
# self.check_not_exists(
|
||||
# 'pool/c7/6b/4bd12fd92e4dfe1b55b18a67a669_libboost-program-options-dev_1.49.0.1_i386.deb')
|
||||
|
||||
|
||||
class UpdateMirror17Test(BaseTest):
|
||||
|
||||
Reference in New Issue
Block a user