From a90ddddbc7494905e766acaebc69c8cb002a413a Mon Sep 17 00:00:00 2001 From: "Mark T. Voelker" Date: Fri, 16 Dec 2016 11:09:19 -0500 Subject: [PATCH] Correct tag name for tc:approved-release The OpenStack Technical Committee recently changed the name of the 'tc-approved-release' tag to 'tc:approved-release'.[1] This patch modifies stackalytics to account for the new name. [1] https://review.openstack.org/#/c/393185/ Closes-bug: #1647903 Change-Id: I181626aab389c19bc1e6fcddf4941d5cfec1cc60 --- etc/default_data.json | 6 +++--- etc/test_default_data.json | 6 +++--- etc/test_projects.yaml | 2 +- stackalytics/processor/governance.py | 2 +- stackalytics/tests/unit/test_governance.py | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/etc/default_data.json b/etc/default_data.json index b6baf5189..827581282 100644 --- a/etc/default_data.json +++ b/etc/default_data.json @@ -26589,10 +26589,10 @@ "modules": ["openstack-official", "governance", "api-wg", "openstack-user-stories"] }, { - "id": "tc-approved-release", - "title": "tc-approved-release", + "id": "tc:approved-release", + "title": "tc:approved-release", "child": true, - "modules": ["tc-approved-release"] + "modules": ["tc:approved-release"] }, { "id": "type:service", diff --git a/etc/test_default_data.json b/etc/test_default_data.json index 61267c88c..319623441 100644 --- a/etc/test_default_data.json +++ b/etc/test_default_data.json @@ -297,10 +297,10 @@ "modules": ["openstack-official", "governance", "api-wg"] }, { - "id": "tc-approved-release", - "title": "tc-approved-release", + "id": "tc:approved-release", + "title": "tc:approved-release", "child": true, - "modules": ["tc-approved-release"] + "modules": ["tc:approved-release"] }, { "id": "type:service", diff --git a/etc/test_projects.yaml b/etc/test_projects.yaml index 48c7df7bb..c989a487a 100644 --- a/etc/test_projects.yaml +++ b/etc/test_projects.yaml @@ -22,7 +22,7 @@ Sahara: - openstack/sahara-extra - openstack/sahara-image-elements tags: - - tc-approved-release + - "tc:approved-release" - release:managed - release:cycle-with-milestones - release:has-stable-branches diff --git a/stackalytics/processor/governance.py b/stackalytics/processor/governance.py index 1cf192f9a..5dd7f3ac0 100644 --- a/stackalytics/processor/governance.py +++ b/stackalytics/processor/governance.py @@ -23,7 +23,7 @@ from stackalytics.processor import utils LOG = logging.getLogger(__name__) # list of supported tags -TAGS = ['tc-approved-release', 'type:service', 'type:library'] +TAGS = ['tc:approved-release', 'type:service', 'type:library'] def _make_module_group(module_groups, name): diff --git a/stackalytics/tests/unit/test_governance.py b/stackalytics/tests/unit/test_governance.py index a8cbd16c6..617b79944 100644 --- a/stackalytics/tests/unit/test_governance.py +++ b/stackalytics/tests/unit/test_governance.py @@ -42,7 +42,7 @@ Sahara: - openstack/sahara-extra - openstack/sahara-image-elements tags: - - tc-approved-release + - tc:approved-release - release:managed - release:cycle-with-milestones - release:has-stable-branches @@ -74,9 +74,9 @@ class TestGovernance(testtools.TestCase): 'sahara-image-elements', 'sahara-specs'}, 'tag': 'program' }, - 'tc-approved-release': { - 'id': 'tc-approved-release', - 'module_group_name': 'tc-approved-release', + 'tc:approved-release': { + 'id': 'tc:approved-release', + 'module_group_name': 'tc:approved-release', 'modules': set(), 'releases': { 'liberty': {'sahara', 'sahara-extra',