From 1ceb366f9d4c512453e7fea6c640e6bae43478d5 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 30 2017 13:49:58 +0000 Subject: last bit of renaming --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 3e936e2..9f3149c 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -2496,7 +2496,7 @@ def repo_info(repo_id, strict=False): ('EXTRACT(EPOCH FROM events.time)', 'create_ts'), ('repo.tag_id', 'tag_id'), ('tag.name', 'tag_name'), - ('repo.signed', 'signed'), + ('repo.dist', 'dist'), ) q = """SELECT %s FROM repo JOIN tag ON tag_id=tag.id diff --git a/tests/test_cli/data/list-commands.txt b/tests/test_cli/data/list-commands.txt index 5a21320..f2d6a25 100644 --- a/tests/test_cli/data/list-commands.txt +++ b/tests/test_cli/data/list-commands.txt @@ -116,10 +116,10 @@ info commands: miscellaneous commands: call Execute an arbitrary XML-RPC call + dist-repo Create a yum repo with distribution options import-comps Import group/package information from a comps file moshimoshi Introduce yourself save-failed-tree Create tarball with whole buildtree - dist-repo create a yum repo of GPG signed RPMs monitor commands: wait-repo Wait for a repo to be regenerated diff --git a/tests/test_hub/test_dist_repo.py b/tests/test_hub/test_dist_repo.py index e62306f..33f1b6c 100644 --- a/tests/test_hub/test_dist_repo.py +++ b/tests/test_hub/test_dist_repo.py @@ -50,7 +50,7 @@ class TestDistRepoInit(unittest.TestCase): ip = self.inserts[0] self.assertEquals(ip.table, 'repo') - data = {'signed': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, + data = {'dist': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, 'state': koji.REPO_STATES['INIT']} self.assertEquals(ip.data, data) self.assertEquals(ip.rawdata, {}) @@ -68,7 +68,7 @@ class TestDistRepoInit(unittest.TestCase): ip = self.inserts[0] self.assertEquals(ip.table, 'repo') - data = {'signed': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, + data = {'dist': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, 'state': koji.REPO_STATES['INIT']} self.assertEquals(ip.data, data) self.assertEquals(ip.rawdata, {}) @@ -190,7 +190,7 @@ class TestDistRepoMove(unittest.TestCase): exports.distRepoMove(self.rinfo['id'], self.uploadpath, list(self.files), self.arch, self.sigmap) # check result - repodir = self.topdir + '/repos-signed/%(tag_name)s/%(id)s' % self.rinfo + repodir = self.topdir + '/repos-dist/%(tag_name)s/%(id)s' % self.rinfo for relpath in self.expected: path = os.path.join(repodir, relpath) basename = os.path.basename(path)