diff --git a/tests/__init__.py b/tests/__init__.py index 603dcb41..bd664ffe 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -21,12 +21,14 @@ # Written by Matt Prahl diff --git a/tests/test_scheduler/starcommand.yaml b/tests/staged_data/formatted_starcommand.yaml similarity index 76% rename from tests/test_scheduler/starcommand.yaml rename to tests/staged_data/formatted_starcommand.yaml index 58e8efe5..d5dd803f 100644 --- a/tests/test_scheduler/starcommand.yaml +++ b/tests/staged_data/formatted_starcommand.yaml @@ -13,6 +13,11 @@ data: base-runtime: master requires: base-runtime: master + xmd: + mbs: + buildrequires: {base-runtime: {ref: ae993ba84f4bce554471382ccba917ef16265f11, stream: master, version: 3}} + commit: 7fea453bc362cc8e5aa41e129e689baea853653d + scmurl: git://pkgs.stg.fedoraproject.org/modules/starcommand.git?#7fea453 references: community: https://fedoraproject.org/wiki/Modularity documentation: https://fedoraproject.org/wiki/Fedora_Packaging_Guidelines_for_Modules diff --git a/tests/staged_data/formatted_testmodule.yaml b/tests/staged_data/formatted_testmodule.yaml new file mode 100644 index 00000000..20fbf0e3 --- /dev/null +++ b/tests/staged_data/formatted_testmodule.yaml @@ -0,0 +1,38 @@ +data: + api: + rpms: [tangerine, perl-Tangerine] + components: + rpms: + perl-List-Compare: {cache: 'http://pkgs.fedoraproject.org/repo/pkgs/perl-List-Compare', + rationale: A dependency of tangerine., ref: 76f9d8c8e87eed0aab91034b01d3d5ff6bd5b4cb, + repository: 'git://pkgs.fedoraproject.org/rpms/perl-List-Compare'} + perl-Tangerine: {cache: 'http://pkgs.fedoraproject.org/repo/pkgs/perl-Tangerine', + rationale: Provides API for this module and is a dependency of tangerine., + ref: 4ceea43add2366d8b8c5a622a2fb563b625b9abf, repository: 'git://pkgs.fedoraproject.org/rpms/perl-Tangerine'} + tangerine: {buildorder: 10, cache: 'http://pkgs.fedoraproject.org/repo/pkgs/tangerine', + rationale: Provides API for this module., ref: fbed359411a1baa08d4a88e0d12d426fbf8f602c, + repository: 'git://pkgs.fedoraproject.org/rpms/tangerine'} + dependencies: + buildrequires: {base-runtime: master} + requires: {base-runtime: master} + description: This module demonstrates how to write simple modulemd files And can + be used for testing the build and release pipeline. + filter: {} + license: + module: [MIT] + name: testmodule + profiles: + default: + rpms: [tangerine] + references: {community: 'https://fedoraproject.org/wiki/Modularity', documentation: 'https://fedoraproject.org/wiki/Fedora_Packaging_Guidelines_for_Modules', + tracker: 'https://taiga.fedorainfracloud.org/project/modularity'} + stream: master + summary: A test module in all its beautiful beauty + version: 20170109091357 + xmd: + mbs: + buildrequires: {base-runtime: {ref: ae993ba84f4bce554471382ccba917ef16265f11, stream: master, version: 3}} + commit: 7fea453bc362cc8e5aa41e129e689baea853653d + scmurl: git://pkgs.stg.fedoraproject.org/modules/testmodule.git?#7fea453 +document: modulemd +version: 1 diff --git a/tests/test_views/includedmodules.yaml b/tests/staged_data/includedmodules.yaml similarity index 92% rename from tests/test_views/includedmodules.yaml rename to tests/staged_data/includedmodules.yaml index 438f6fc7..3d3c79d9 100644 --- a/tests/test_views/includedmodules.yaml +++ b/tests/staged_data/includedmodules.yaml @@ -11,9 +11,6 @@ data: module: - MIT content: [] - dependencies: - buildrequires: - base_runtime: 1.0-0 references: community: https://fedoraproject.org/wiki/Modularity tracker: https://taiga.fedorainfracloud.org/project/modularity diff --git a/tests/test_build/testmodule.yaml b/tests/staged_data/testmodule.yaml similarity index 95% rename from tests/test_build/testmodule.yaml rename to tests/staged_data/testmodule.yaml index 6118b6d4..8ec6798e 100644 --- a/tests/test_build/testmodule.yaml +++ b/tests/staged_data/testmodule.yaml @@ -3,9 +3,6 @@ version: 1 data: summary: A test module in all its beauty description: This module demonstrates how to write simple modulemd files And can be used for testing the build and release pipeline. - name: testmodule - stream: teststream - version: 1 license: module: [ MIT ] dependencies: diff --git a/tests/test_build/test_build.py b/tests/test_build/test_build.py index 6b4ce5d7..1ddb9078 100644 --- a/tests/test_build/test_build.py +++ b/tests/test_build/test_build.py @@ -48,21 +48,24 @@ cassette_dir = base_dir + '/vcr-request-data/' user = ('Homer J. Simpson', set(['packager'])) class MockedSCM(object): - def __init__(self, mocked_scm, name, mmd_filename): + def __init__(self, mocked_scm, name, mmd_filename, commit=None): self.mocked_scm = mocked_scm self.name = name + self.commit = commit self.mmd_filename = mmd_filename self.mocked_scm.return_value.checkout = self.checkout self.mocked_scm.return_value.name = self.name + self.mocked_scm.return_value.branch = 'master' self.mocked_scm.return_value.get_latest = self.get_latest + self.mocked_scm.return_value.commit = self.commit self.mocked_scm.return_value.repository_root = "git://pkgs.stg.fedoraproject.org/modules/" def checkout(self, temp_dir): scm_dir = path.join(temp_dir, self.name) mkdir(scm_dir) base_dir = path.abspath(path.dirname(__file__)) - copyfile(path.join(base_dir, self.mmd_filename), + copyfile(path.join(base_dir, '..', 'staged_data', self.mmd_filename), path.join(scm_dir, self.mmd_filename)) return scm_dir @@ -237,7 +240,8 @@ class TestBuild(unittest.TestCase): Tests the build of testmodule.yaml using TestModuleBuilder which succeeds everytime. """ - MockedSCM(mocked_scm, "testmodule", "testmodule.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' @@ -248,7 +252,7 @@ class TestBuild(unittest.TestCase): # Check that components are tagged after the batch is built. tag_groups = [] - tag_groups.append([u'module-build-macros-0.1-1.module_testmodule_teststream_1.src.rpm-1-1']) + tag_groups.append([u'module-build-macros-0.1-1.module_testmodule_master_1.src.rpm-1-1']) tag_groups.append([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1']) tag_groups.append([u'tangerine?#f25-1-1']) @@ -260,7 +264,7 @@ class TestBuild(unittest.TestCase): # Check that the components are added to buildroot after the batch # is built. buildroot_groups = [] - buildroot_groups.append([u'module-build-macros-0.1-1.module_testmodule_teststream_1.src.rpm-1-1']) + buildroot_groups.append([u'module-build-macros-0.1-1.module_testmodule_master_1.src.rpm-1-1']) buildroot_groups.append([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1']) buildroot_groups.append([u'tangerine?#f25-1-1']) @@ -289,8 +293,7 @@ class TestBuild(unittest.TestCase): def test_submit_build_from_yaml(self, mocked_scm, mocked_get_user): MockedSCM(mocked_scm, "testmodule", "testmodule.yaml") - here = os.path.dirname(os.path.abspath(__file__)) - testmodule = os.path.join(here, 'testmodule.yaml') + testmodule = os.path.join(base_dir, 'staged_data', 'testmodule.yaml') with open(testmodule) as f: yaml = f.read() @@ -316,7 +319,8 @@ class TestBuild(unittest.TestCase): """ Submit all builds for a module and cancel the module build later. """ - MockedSCM(mocked_scm, "testmodule", "testmodule.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' @@ -368,7 +372,8 @@ class TestBuild(unittest.TestCase): Tests the build of testmodule.yaml using TestModuleBuilder which succeeds everytime. """ - MockedSCM(mocked_scm, "testmodule", "testmodule.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' @@ -398,7 +403,8 @@ class TestBuild(unittest.TestCase): Tests the build of testmodule.yaml using TestModuleBuilder with num_consecutive_builds set to 1. """ - MockedSCM(mocked_scm, "testmodule", "testmodule.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') conf.set_item("num_consecutive_builds", 1) diff --git a/tests/test_scheduler/test_module_wait.py b/tests/test_scheduler/test_module_wait.py index 7b506a52..c1ecda38 100644 --- a/tests/test_scheduler/test_module_wait.py +++ b/tests/test_scheduler/test_module_wait.py @@ -25,6 +25,12 @@ import mock import module_build_service.messaging import module_build_service.scheduler.handlers.modules import modulemd as _modulemd +import os +import vcr + +base_dir = os.path.dirname(os.path.dirname(__file__)) +cassette_dir = base_dir + '/vcr-request-data/' + class TestModuleWait(unittest.TestCase): @@ -33,6 +39,13 @@ class TestModuleWait(unittest.TestCase): self.session = mock.Mock() self.fn = module_build_service.scheduler.handlers.modules.wait + filename = cassette_dir + self.id() + self.vcr = vcr.use_cassette(filename) + self.vcr.__enter__() + + def tearDown(self): + self.vcr.__exit__() + @mock.patch('module_build_service.builder.KojiModuleBuilder') @mock.patch('module_build_service.models.ModuleBuild.from_module_event') @mock.patch('module_build_service.pdc') @@ -51,6 +64,11 @@ class TestModuleWait(unittest.TestCase): } mmd = _modulemd.ModuleMetadata() + formatted_testmodule_yml_path = os.path.join( + base_dir, 'staged_data', 'formatted_testmodule.yaml') + with open(formatted_testmodule_yml_path, 'r') as f: + mmd.loads(f) + mocked_module_build.mmd.return_value = mmd from_module_event.return_value = mocked_module_build diff --git a/tests/test_views/fakemodule.yaml b/tests/test_views/fakemodule.yaml deleted file mode 100644 index cd9792bf..00000000 --- a/tests/test_views/fakemodule.yaml +++ /dev/null @@ -1,32 +0,0 @@ -document: modulemd -version: 1 -data: - name: fakemodule - stream: "4.3.44" - version: 5 - summary: A fake module containing the bash shell - description: > - A fake module used for testing - license: - module: - - MIT - content: [] - dependencies: - buildrequires: - base_runtime: 1.0-0 - references: - community: https://fedoraproject.org/wiki/Modularity - tracker: https://taiga.fedorainfracloud.org/project/modularity - profiles: - default: - rpms: - - bash - api: - rpms: - - bash - components: - rpms: - bash: - rationale: It's here to test the whole thing! - ref: 70fa7516b83768595a4f3280ae890a7ac957e0c7 - buildorder: 20 diff --git a/tests/test_views/test_views.py b/tests/test_views/test_views.py index 53a741b2..204d6118 100644 --- a/tests/test_views/test_views.py +++ b/tests/test_views/test_views.py @@ -23,9 +23,11 @@ import unittest import json import time -from mock import patch +import vcr +from mock import patch, Mock from shutil import copyfile from os import path, mkdir +from os.path import dirname import modulemd as _modulemd @@ -36,10 +38,11 @@ import module_build_service.scm user = ('Homer J. Simpson', set(['packager'])) other_user = ('some_other_user', set(['packager'])) - +base_dir = dirname(dirname(__file__)) +cassette_dir = base_dir + '/vcr-request-data/' class MockedSCM(object): - def __init__(self, mocked_scm, name, mmd_filenames): + def __init__(self, mocked_scm, name, mmd_filenames, commit=None): """ Adds default testing checkout, get_latest and name methods to mocked_scm SCM class. @@ -50,6 +53,7 @@ class MockedSCM(object): """ self.mocked_scm = mocked_scm self.name = name + self.commit = commit if not isinstance(mmd_filenames, list): mmd_filenames = [mmd_filenames] self.mmd_filenames = mmd_filenames @@ -57,8 +61,10 @@ class MockedSCM(object): self.mocked_scm.return_value.checkout = self.checkout self.mocked_scm.return_value.name = self.name + self.mocked_scm.return_value.commit = self.commit self.mocked_scm.return_value.get_latest = self.get_latest self.mocked_scm.return_value.repository_root = "git://pkgs.stg.fedoraproject.org/modules/" + self.mocked_scm.return_value.branch = 'master' def checkout(self, temp_dir): try: @@ -69,14 +75,14 @@ class MockedSCM(object): scm_dir = path.join(temp_dir, self.name) mkdir(scm_dir) base_dir = path.abspath(path.dirname(__file__)) - copyfile(path.join(base_dir, mmd_filename), + copyfile(path.join(base_dir, '..', 'staged_data', mmd_filename), path.join(scm_dir, self.name + ".yaml")) self.checkout_id += 1 return scm_dir - def get_latest(self, branch = 'master'): + def get_latest(self, branch='master'): return branch @@ -86,6 +92,13 @@ class TestViews(unittest.TestCase): self.client = app.test_client() init_data() + filename = cassette_dir + self.id() + self.vcr = vcr.use_cassette(filename) + self.vcr.__enter__() + + def tearDown(self): + self.vcr.__exit__() + def test_query_build(self): rv = self.client.get('/module-build-service/1/module-builds/1') data = json.loads(rv.data) @@ -212,7 +225,8 @@ class TestViews(unittest.TestCase): @patch('module_build_service.auth.get_user', return_value=user) @patch('module_build_service.scm.SCM') def test_submit_build(self, mocked_scm, mocked_get_user): - mocked_scm_obj = MockedSCM(mocked_scm, "fakemodule", "fakemodule.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' @@ -220,17 +234,16 @@ class TestViews(unittest.TestCase): data = json.loads(rv.data) assert 'component_builds' in data, data - self.assertEquals(data['component_builds'], [61]) - self.assertEquals(data['name'], 'fakemodule') + self.assertEquals(data['component_builds'], [61, 62, 63]) + self.assertEquals(data['name'], 'testmodule') self.assertEquals(data['scmurl'], ('git://pkgs.stg.fedoraproject.org/modules/testmodule' '.git?#68931c90de214d9d13feefbd35246a81b6cb8d49')) - self.assertEquals(data['version'], '5') + self.assertEquals(data['version'], '1') self.assertTrue(data['time_submitted'] is not None) self.assertTrue(data['time_modified'] is not None) - self.assertEquals(data['version'], '5') self.assertEquals(data['time_completed'], None) - self.assertEquals(data['stream'], '4.3.44') + self.assertEquals(data['stream'], 'master') self.assertEquals(data['owner'], 'Homer J. Simpson') self.assertEquals(data['id'], 31) self.assertEquals(data['state_name'], 'wait') @@ -241,7 +254,8 @@ class TestViews(unittest.TestCase): @patch('module_build_service.auth.get_user', return_value=user) @patch('module_build_service.scm.SCM') def test_submit_componentless_build(self, mocked_scm, mocked_get_user): - mocked_scm_obj = MockedSCM(mocked_scm, "fakemodule2", "fakemodule2.yaml") + MockedSCM(mocked_scm, 'fakemodule', 'fakemodule.yaml', + '3da541559918a808c2402bba5012f6c60b27661c') rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' @@ -249,7 +263,7 @@ class TestViews(unittest.TestCase): data = json.loads(rv.data) self.assertEquals(data['component_builds'], []) - self.assertEquals(data['name'], 'fakemodule2') + self.assertEquals(data['name'], 'fakemodule') self.assertEquals(data['scmurl'], ('git://pkgs.stg.fedoraproject.org/modules/testmodule' '.git?#68931c90de214d9d13feefbd35246a81b6cb8d49')) @@ -258,7 +272,7 @@ class TestViews(unittest.TestCase): self.assertTrue(data['time_modified'] is not None) self.assertEquals(data['version'], '5') self.assertEquals(data['time_completed'], None) - self.assertEquals(data['stream'], '4.3.44') + self.assertEquals(data['stream'], 'master') self.assertEquals(data['owner'], 'Homer J. Simpson') self.assertEquals(data['id'], 31) self.assertEquals(data['state_name'], 'wait') @@ -321,7 +335,8 @@ class TestViews(unittest.TestCase): time.sleep(1) return branch - mocked_scm_obj = MockedSCM(mocked_scm, "base-runtime", "base-runtime.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') mocked_scm.return_value.is_available = mocked_scm_get_latest start = time.time() @@ -330,8 +345,8 @@ class TestViews(unittest.TestCase): 'testmodule.git?#68931c90de214d9d13feefbd35246a81b6cb8d49'})) data = json.loads(rv.data) - self.assertEquals(len(data['component_builds']), 5) - self.assertEquals(data['name'], 'base-runtime') + self.assertEquals(len(data['component_builds']), 3) + self.assertEquals(data['name'], 'testmodule') self.assertEquals(data['scmurl'], ('git://pkgs.stg.fedoraproject.org/modules/testmodule' '.git?#68931c90de214d9d13feefbd35246a81b6cb8d49')) @@ -350,12 +365,13 @@ class TestViews(unittest.TestCase): @patch('module_build_service.auth.get_user', return_value=user) @patch('module_build_service.scm.SCM') - def test_submit_build_scm_non_available(self, mocked_scm, - mocked_get_user): + def test_submit_build_scm_non_available(self, mocked_scm, mocked_get_user): + def mocked_scm_get_latest(): raise RuntimeError("Failed in mocked_scm_get_latest") - mocked_scm_obj = MockedSCM(mocked_scm, "base-runtime", "base-runtime.yaml") + MockedSCM(mocked_scm, 'testmodule', 'testmodule.yaml', + '620ec77321b2ea7b0d67d82992dda3e1d67055b4') mocked_scm.return_value.get_latest = mocked_scm_get_latest rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( @@ -369,18 +385,16 @@ class TestViews(unittest.TestCase): @patch('module_build_service.auth.get_user', return_value=user) @patch('module_build_service.scm.SCM') - def test_submit_build_includedmodule(self, mocked_scm, - mocked_get_user): + def test_submit_build_includedmodule(self, mocked_scm, mocked_get_user): mocked_scm_obj = MockedSCM(mocked_scm, "includedmodules", - ["includedmodules.yaml", "fakemodule.yaml"]) - + ["includedmodules.yaml", "testmodule.yaml"]) rv = self.client.post('/module-build-service/1/module-builds/', data=json.dumps( {'scmurl': 'git://pkgs.stg.fedoraproject.org/modules/' 'testmodule.git?#68931c90de214d9d13feefbd35246a81b6cb8d49'})) data = json.loads(rv.data) assert 'component_builds' in data, data - self.assertEquals(data['component_builds'], [61, 62]) + self.assertEquals(data['component_builds'], [61, 62, 63, 64]) self.assertEquals(data['name'], 'fakemodule') self.assertEquals(data['scmurl'], ('git://pkgs.stg.fedoraproject.org/modules/testmodule' @@ -400,8 +414,10 @@ class TestViews(unittest.TestCase): for build in ComponentBuild.query.filter_by(module_id=31).all(): batches[build.package] = build.batch - self.assertEquals(batches["bash"], 2) - self.assertEquals(batches["file"], 3) + self.assertEquals(batches['perl-List-Compare'], 2) + self.assertEquals(batches['perl-Tangerine'], 2) + self.assertEquals(batches['tangerine'], 3) + self.assertEquals(batches["file"], 4) @patch('module_build_service.auth.get_user', return_value=other_user) def test_cancel_build(self, mocked_get_user): @@ -412,7 +428,6 @@ class TestViews(unittest.TestCase): self.assertEquals(data['state'], 4) self.assertEquals(data['state_reason'], 'Canceled by some_other_user.') - @patch('module_build_service.auth.get_user', return_value=('sammy', set())) def test_cancel_build_unauthorized(self, mocked_get_user): rv = self.client.patch('/module-build-service/1/module-builds/30', diff --git a/tests/vcr-request-data/test_views.TestViews.test_submit_build b/tests/vcr-request-data/test_views.TestViews.test_submit_build new file mode 100644 index 00000000..4c23262b --- /dev/null +++ b/tests/vcr-request-data/test_views.TestViews.test_submit_build @@ -0,0 +1,60 @@ +interactions: +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:57:05 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:57:05 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=vS8RKrOHHhsuoysgdRUc1Gv01vtxWVFm; expires=Thu, 15-Feb-2018 + 22:57:05 GMT; Max-Age=31449600; Path=/', 'sessionid=sosczw5lw532mv6kvs58ld76aarwn02t; + expires=Thu, 02-Mar-2017 22:57:05 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/vcr-request-data/test_views.TestViews.test_submit_build_includedmodule b/tests/vcr-request-data/test_views.TestViews.test_submit_build_includedmodule new file mode 100644 index 00000000..85632a64 --- /dev/null +++ b/tests/vcr-request-data/test_views.TestViews.test_submit_build_includedmodule @@ -0,0 +1,60 @@ +interactions: +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:57:06 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:57:07 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=tTQlntpk4jQC1to15ISnkFKQw0dUvXxC; expires=Thu, 15-Feb-2018 + 22:57:07 GMT; Max-Age=31449600; Path=/', 'sessionid=p3zodrepn6ply2q09dmnska4b3u98j6f; + expires=Thu, 02-Mar-2017 22:57:07 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_non_available b/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_non_available new file mode 100644 index 00000000..7e6ac5f2 --- /dev/null +++ b/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_non_available @@ -0,0 +1,60 @@ +interactions: +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:57:07 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:57:07 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=1l71b0UO8vhSkoPtBhi8sbHK9E0eHu1W; expires=Thu, 15-Feb-2018 + 22:57:07 GMT; Max-Age=31449600; Path=/', 'sessionid=9e5gwfzwpivvuyhmoo4xhqtw867yzbsr; + expires=Thu, 02-Mar-2017 22:57:07 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_parallalization b/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_parallalization new file mode 100644 index 00000000..95653432 --- /dev/null +++ b/tests/vcr-request-data/test_views.TestViews.test_submit_build_scm_parallalization @@ -0,0 +1,60 @@ +interactions: +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:57:08 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:57:08 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=ABIfLPDnMVAJ7uRG1MJK755aoibnWXvk; expires=Thu, 15-Feb-2018 + 22:57:08 GMT; Max-Age=31449600; Path=/', 'sessionid=cisonsywv66ea8mkjw8w4xrcbv0wl8bo; + expires=Thu, 02-Mar-2017 22:57:08 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build index 71cc6246..1e4b8243 100644 --- a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build +++ b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build @@ -13,9 +13,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:29 GMT'] + date: ['Thu, 16 Feb 2017 22:56:29 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -32,7 +32,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -47,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:30 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=tyEGNtsUoim3k8pfQqftTuF5JrdCLnGD; expires=Thu, 11-Jan-2018 - 10:37:30 GMT; Max-Age=31449600; Path=/', 'sessionid=bhtu6e5m5cvhb9yxlu2ipywh8c90q4ho; - expires=Thu, 26-Jan-2017 10:37:30 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:30 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=F7ppFug1SCCNkaRyp7MSpRL4CXF99S9W; expires=Thu, 15-Feb-2018 + 22:56:30 GMT; Max-Age=31449600; Path=/', 'sessionid=vmwe2q9rz9pisx2wuyzq7jpqs1klwobl; + expires=Thu, 02-Mar-2017 22:56:30 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -69,9 +71,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:31 GMT'] + date: ['Thu, 16 Feb 2017 22:56:31 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -88,7 +90,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -103,11 +107,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:32 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=XTBH53Zf7fxz7rcPAPHAtOlXOyZIgB1F; expires=Thu, 11-Jan-2018 - 10:37:32 GMT; Max-Age=31449600; Path=/', 'sessionid=tol31kaee33hqw5ys19o8qb7k1dfcw4t; - expires=Thu, 26-Jan-2017 10:37:32 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:31 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=cLBdHAn0w6AnW3HjVY3SEP3kRO4gaceL; expires=Thu, 15-Feb-2018 + 22:56:31 GMT; Max-Age=31449600; Path=/', 'sessionid=mg7kleink2ox15v9wa7iljqpnyf498qj; + expires=Thu, 02-Mar-2017 22:56:31 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -120,14 +124,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:33 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:31 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -139,12 +143,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -159,11 +165,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:34 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=QhBAe06GhIMjY5bSwvrdU5YawNSw1zOt; expires=Thu, 11-Jan-2018 - 10:37:34 GMT; Max-Age=31449600; Path=/', 'sessionid=4m1x25j3ptqj2nucz9q66wrftr8mizfy; - expires=Thu, 26-Jan-2017 10:37:34 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:32 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=5KG8Xk3JtVDgY0bJRggiGAOYEFWFVW9a; expires=Thu, 15-Feb-2018 + 22:56:32 GMT; Max-Age=31449600; Path=/', 'sessionid=4ps7rub30pbyg44nhcx0ti2b728ymvd5; + expires=Thu, 02-Mar-2017 22:56:32 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -176,14 +182,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:34 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:32 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -195,12 +201,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -215,11 +223,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:35 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=zWTox7nd4KxXJ9lMbsd5X4EvqPzKBwKa; expires=Thu, 11-Jan-2018 - 10:37:35 GMT; Max-Age=31449600; Path=/', 'sessionid=lx9e5mpeg4pjpfv8v4j9jdgbveurtkvq; - expires=Thu, 26-Jan-2017 10:37:35 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:32 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=Brv0cRa35CEkPYLctuEclHZVU8k3WSOB; expires=Thu, 15-Feb-2018 + 22:56:32 GMT; Max-Age=31449600; Path=/', 'sessionid=dicaovjtbuyqytltjaelefeqt3jdx6s4; + expires=Thu, 02-Mar-2017 22:56:32 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -232,14 +240,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:36 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:33 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -251,12 +259,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -271,11 +281,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:37 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=Pj759tMTCvN5Gh1aq34njcw3fs2A6BJu; expires=Thu, 11-Jan-2018 - 10:37:37 GMT; Max-Age=31449600; Path=/', 'sessionid=qxwjzhrhzlyn95wg0j9u0n4kfs438mhf; - expires=Thu, 26-Jan-2017 10:37:37 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:33 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=71nblL85niWbb0DrInngPoIByL7qUOs4; expires=Thu, 15-Feb-2018 + 22:56:33 GMT; Max-Age=31449600; Path=/', 'sessionid=nqcxtz655lhwa9flwusai91le5znbv3h; + expires=Thu, 02-Mar-2017 22:56:33 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -288,14 +298,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:37 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:33 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -307,12 +317,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -327,11 +339,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:38 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=pGNb5qnVy5D11zoHJYtv1kgMIL4N6QuP; expires=Thu, 11-Jan-2018 - 10:37:38 GMT; Max-Age=31449600; Path=/', 'sessionid=4fzywpb68h51wnw0j6aeabw54alvw2hp; - expires=Thu, 26-Jan-2017 10:37:38 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:34 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=HumqDhmb2foSjn2gXoPeFydzI5VbYfd7; expires=Thu, 15-Feb-2018 + 22:56:34 GMT; Max-Age=31449600; Path=/', 'sessionid=5icyip6kqot073lohg7hshfgis0wvewk; + expires=Thu, 02-Mar-2017 22:56:34 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -344,14 +356,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:39 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:34 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -363,12 +375,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -383,11 +397,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:40 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=6gKKa8HlU5Wsv36r1qVPn2XKf9Hwy84h; expires=Thu, 11-Jan-2018 - 10:37:40 GMT; Max-Age=31449600; Path=/', 'sessionid=ousofqe4ig07usjb8ig0tvd0yknytzaq; - expires=Thu, 26-Jan-2017 10:37:40 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:34 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=VEhee7DItLiomL2M9rlooGXN34N5byhj; expires=Thu, 15-Feb-2018 + 22:56:34 GMT; Max-Age=31449600; Path=/', 'sessionid=c06405bjvov614mc10nfqj5f5glb674u; + expires=Thu, 02-Mar-2017 22:56:34 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -400,14 +414,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:40 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:35 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -419,12 +433,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -439,11 +455,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:41 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=UtOkuhqOp9rZJnP8Pfe3z262TRzao70h; expires=Thu, 11-Jan-2018 - 10:37:41 GMT; Max-Age=31449600; Path=/', 'sessionid=mhbyvogoknaga1yxn8sbhr7gvlbq5dv3; - expires=Thu, 26-Jan-2017 10:37:41 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:35 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=QSf5aFI2OpLDB8pghi7Zra7JwWC1Ky0x; expires=Thu, 15-Feb-2018 + 22:56:35 GMT; Max-Age=31449600; Path=/', 'sessionid=do998h4vi5bddbrev84mtc7u75l4hp91; + expires=Thu, 02-Mar-2017 22:56:35 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -456,14 +472,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:42 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:35 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -475,12 +491,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -495,11 +513,69 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:42 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=DimuoEvPVtKJENQgqBI4wNyajI4JAJJZ; expires=Thu, 11-Jan-2018 - 10:37:42 GMT; Max-Age=31449600; Path=/', 'sessionid=fbn8nda1n715v3rivev6f86qc65ybsfq; - expires=Thu, 26-Jan-2017 10:37:42 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:35 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=arNJyQf5oYefjpRdUcvNQNX97VM21Kzs; expires=Thu, 15-Feb-2018 + 22:56:35 GMT; Max-Age=31449600; Path=/', 'sessionid=kouc5m36uupgu08088dgou6js3z0mbgq; + expires=Thu, 02-Mar-2017 22:56:35 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:56:36 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:56:36 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=d3hjz52Y4Uwn2JtdkGq0j2gzqXaQrjl8; expires=Thu, 15-Feb-2018 + 22:56:36 GMT; Max-Age=31449600; Path=/', 'sessionid=s6e2tpg7borpd2wltw07gwe9o7xcwwid; + expires=Thu, 02-Mar-2017 22:56:36 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} diff --git a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_cancel b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_cancel index af22a659..baab1668 100644 --- a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_cancel +++ b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_cancel @@ -13,9 +13,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:44 GMT'] + date: ['Thu, 16 Feb 2017 22:56:37 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -32,7 +32,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -47,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:45 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=6Qxyo8NXtITCc2YiJf5M2MAXfhBxpaBi; expires=Thu, 11-Jan-2018 - 10:37:45 GMT; Max-Age=31449600; Path=/', 'sessionid=oogbdb99pbsf9yryffdrbnmpuygki5l4; - expires=Thu, 26-Jan-2017 10:37:45 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:37 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=PgCuY42WsQqRNU2FuXjNeymepFBVTXl9; expires=Thu, 15-Feb-2018 + 22:56:37 GMT; Max-Age=31449600; Path=/', 'sessionid=xhlsp19z2scqj82orrjo0lr25w3240al; + expires=Thu, 02-Mar-2017 22:56:37 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -69,9 +71,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:45 GMT'] + date: ['Thu, 16 Feb 2017 22:56:38 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -88,7 +90,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -103,11 +107,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:46 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=gagPouNG6feK2Jd86ZCv55PDouwOwY5p; expires=Thu, 11-Jan-2018 - 10:37:46 GMT; Max-Age=31449600; Path=/', 'sessionid=n2usoosxj2c073cotvp3plhjihwc42yl; - expires=Thu, 26-Jan-2017 10:37:46 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:39 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=oD8nMM378qeJ15kULOyeRMUBULEtDN1G; expires=Thu, 15-Feb-2018 + 22:56:39 GMT; Max-Age=31449600; Path=/', 'sessionid=g469x59gmawucum5522p1xr54jocgr1u; + expires=Thu, 02-Mar-2017 22:56:39 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -120,14 +124,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:47 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:39 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -139,12 +143,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -159,11 +165,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:47 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=I00ULEIWIBBFzCeyHRVts4Dk4gDaYsFq; expires=Thu, 11-Jan-2018 - 10:37:47 GMT; Max-Age=31449600; Path=/', 'sessionid=gsna9poqaofx5islnvwg6wigtulcxgfd; - expires=Thu, 26-Jan-2017 10:37:47 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:39 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=c0PvREOKrQPnfZs6Z0ojDOdVu0rQUpg0; expires=Thu, 15-Feb-2018 + 22:56:39 GMT; Max-Age=31449600; Path=/', 'sessionid=fjw86iskdazn4wviw6d8x1ei95bmbisb; + expires=Thu, 02-Mar-2017 22:56:39 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -176,14 +182,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:48 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:40 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -195,12 +201,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -215,11 +223,69 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:49 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=gHsPmCL7PZ2C4yxVTLmjEOLm5t8bcDGB; expires=Thu, 11-Jan-2018 - 10:37:49 GMT; Max-Age=31449600; Path=/', 'sessionid=yafpxepzcgje930oadei830lx2ct0bva; - expires=Thu, 26-Jan-2017 10:37:49 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:40 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=c7GrYBJw8n2Ubs9ROCUHbepqllzBDMqv; expires=Thu, 15-Feb-2018 + 22:56:40 GMT; Max-Age=31449600; Path=/', 'sessionid=3x8iaq4fv3kxgrio8g7zz9l3fmhtl9up; + expires=Thu, 02-Mar-2017 22:56:40 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:56:40 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:56:40 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=WHR2xFEAmoQDdi4qrxZ0sggiLGiT2NF8; expires=Thu, 15-Feb-2018 + 22:56:40 GMT; Max-Age=31449600; Path=/', 'sessionid=9ep4idl1v9jxtljreigg6pbu8upnab1u; + expires=Thu, 02-Mar-2017 22:56:40 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} diff --git a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_concurrent_threshold b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_concurrent_threshold index 70e4b06e..fbe11e1b 100644 --- a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_concurrent_threshold +++ b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_concurrent_threshold @@ -13,9 +13,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:51 GMT'] + date: ['Thu, 16 Feb 2017 22:56:41 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -32,7 +32,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -47,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:51 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=dyYqw5OK59DaGvsuSLOckKjFNCZmet2K; expires=Thu, 11-Jan-2018 - 10:37:51 GMT; Max-Age=31449600; Path=/', 'sessionid=gff9blh1dhpeeug6jpakfzkl6z0gxo8g; - expires=Thu, 26-Jan-2017 10:37:51 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:41 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=NzaBO1Vt6NcuhXh2tq4tASOkuN6t1MRG; expires=Thu, 15-Feb-2018 + 22:56:41 GMT; Max-Age=31449600; Path=/', 'sessionid=i3vhbz4v7ozj87568afymjnqpa88cuuo; + expires=Thu, 02-Mar-2017 22:56:41 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -69,9 +71,9 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:52 GMT'] + date: ['Thu, 16 Feb 2017 22:56:43 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -88,7 +90,9 @@ interactions: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -103,11 +107,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:53 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=waR84663mQUfnNzMhRzat9EWKbnEGESa; expires=Thu, 11-Jan-2018 - 10:37:53 GMT; Max-Age=31449600; Path=/', 'sessionid=qmtf4n7gz50dtlgijfi8eus6zxoxze6t; - expires=Thu, 26-Jan-2017 10:37:53 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:43 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=UJ44qZSSBejeT5cz1GddNYoIP41zVAZ7; expires=Thu, 15-Feb-2018 + 22:56:43 GMT; Max-Age=31449600; Path=/', 'sessionid=ugsoqrc3sfkwyv6egseguovjrejdvx7m; + expires=Thu, 02-Mar-2017 22:56:43 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -120,14 +124,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:53 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:43 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -139,12 +143,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -159,11 +165,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:54 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=NQN5sMarQpFmjxkdxOFHIB79ZRUASPnO; expires=Thu, 11-Jan-2018 - 10:37:54 GMT; Max-Age=31449600; Path=/', 'sessionid=qw7xkyp5zdfzck8gjeejz8nf2dab40m0; - expires=Thu, 26-Jan-2017 10:37:54 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:43 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=BtdihXTlkqYbXA1TvvXluR5fSoRwTwoB; expires=Thu, 15-Feb-2018 + 22:56:43 GMT; Max-Age=31449600; Path=/', 'sessionid=lmig5lazac6cj0xxszc9rnyzese5hezl; + expires=Thu, 02-Mar-2017 22:56:43 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -176,14 +182,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:54 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:44 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -195,12 +201,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -215,11 +223,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:55 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=Pwny8ExsUvWXxQuBAfDv2L0B8smNKbA5; expires=Thu, 11-Jan-2018 - 10:37:55 GMT; Max-Age=31449600; Path=/', 'sessionid=htw4f3fxckraiixou0kr3n5sod7dvtmi; - expires=Thu, 26-Jan-2017 10:37:55 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:44 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=Iv9GJ4P7zy7DXFsxZlHRUKLnIimttE3N; expires=Thu, 15-Feb-2018 + 22:56:44 GMT; Max-Age=31449600; Path=/', 'sessionid=quc3l1enlgbfvplkif3g85yzd4dglb85; + expires=Thu, 02-Mar-2017 22:56:44 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -232,14 +240,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:55 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:44 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -251,12 +259,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -271,11 +281,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:56 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=f41CtE0qG1G1cER1z3qA5gDwB5NGGd3I; expires=Thu, 11-Jan-2018 - 10:37:56 GMT; Max-Age=31449600; Path=/', 'sessionid=ng5yn5cza9dcnjrd26etuyvvgt2ebjsu; - expires=Thu, 26-Jan-2017 10:37:56 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:45 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=8UIwBJq9BGntKSy0FQCF0ifYuwcqF6qF; expires=Thu, 15-Feb-2018 + 22:56:45 GMT; Max-Age=31449600; Path=/', 'sessionid=qjan1fpf044xe5hsr54qxb6xjcjk3mby; + expires=Thu, 02-Mar-2017 22:56:45 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -288,14 +298,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:57 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:45 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -307,12 +317,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -327,11 +339,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:58 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=FrtMghs7QeLpImrMhGvpwuzZYY4V3jhK; expires=Thu, 11-Jan-2018 - 10:37:58 GMT; Max-Age=31449600; Path=/', 'sessionid=0e0kzmfi310l5cdsyawa6evr12vnjuze; - expires=Thu, 26-Jan-2017 10:37:58 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:45 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=cN9dQyXLroXv3u9CKDz7CaMwZjan9scz; expires=Thu, 15-Feb-2018 + 22:56:45 GMT; Max-Age=31449600; Path=/', 'sessionid=3r8c235jjspgxb6iol2hbgx32dntj0p0; + expires=Thu, 02-Mar-2017 22:56:45 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -344,14 +356,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:37:59 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:46 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -363,12 +375,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -383,11 +397,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:37:59 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=b3EYsuvc5qaQCvM7HdEKs7fR2ZPGwN6v; expires=Thu, 11-Jan-2018 - 10:37:59 GMT; Max-Age=31449600; Path=/', 'sessionid=gkovv54svqtaqprgtih61xnf1v3wenyh; - expires=Thu, 26-Jan-2017 10:37:59 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:46 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=7ESRA8rC0FqYaaoXDgsLkGjG4HMi3JqC; expires=Thu, 15-Feb-2018 + 22:56:46 GMT; Max-Age=31449600; Path=/', 'sessionid=upega89oi9pzslkq9eery0m0oy4he4u8; + expires=Thu, 02-Mar-2017 22:56:46 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -400,14 +414,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:38:01 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:46 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -419,12 +433,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -439,11 +455,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:38:01 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=1i5QzIxstIe4A1vtJdN7Mo3onnBpmbxj; expires=Thu, 11-Jan-2018 - 10:38:01 GMT; Max-Age=31449600; Path=/', 'sessionid=m7gmfzygqzx69fuxl3kwznue536ijdf0; - expires=Thu, 26-Jan-2017 10:38:01 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:46 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=dAkagaE5fnlf5OLxnXauuumripjXyQQP; expires=Thu, 15-Feb-2018 + 22:56:46 GMT; Max-Age=31449600; Path=/', 'sessionid=98ur43c2cwpsb2gw53rjoqo2rcrup2tu; + expires=Thu, 02-Mar-2017 22:56:46 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -456,14 +472,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:38:02 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:56:47 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -475,12 +491,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -495,11 +513,69 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:38:03 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=WtjAs6G0PqsQAtpzzkQO11KNAYjhcy8l; expires=Thu, 11-Jan-2018 - 10:38:03 GMT; Max-Age=31449600; Path=/', 'sessionid=0fuv0uvmdyadi5ia5ob2xsfe0yx7ntjc; - expires=Thu, 26-Jan-2017 10:38:03 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:56:47 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=JfRCGP6yDOSyBtgfYf090jfZi11PIdmW; expires=Thu, 15-Feb-2018 + 22:56:47 GMT; Max-Age=31449600; Path=/', 'sessionid=iuria1sjei4j03n53zv0ghvdwzklucfi; + expires=Thu, 02-Mar-2017 22:56:47 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:56:47 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:56:48 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=yKZjeilMqinIqfPMtLgSlwE8fDxT1QTv; expires=Thu, 15-Feb-2018 + 22:56:48 GMT; Max-Age=31449600; Path=/', 'sessionid=hejb0dxmeuh08o0b1ydms9ezr7cy3mok; + expires=Thu, 02-Mar-2017 22:56:48 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} diff --git a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_from_yaml b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_from_yaml index 629c4677..943e0997 100644 --- a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_from_yaml +++ b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_from_yaml @@ -2,45 +2,59 @@ interactions: - request: body: null headers: - Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] method: GET - uri: http://pkgs.stg.fedoraproject.org/cgit/modules/testmodule.git/plain/testmodule.yaml + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime response: - body: {string: !!python/unicode "document: modulemd\nversion: 1\ndata:\n summary:\ - \ A test module in all its beautiful beauty\n description: This module\ - \ demonstrates how to write simple modulemd files And can be used for testing\ - \ the build and release pipeline.\n license:\n module: [ MIT ]\n\ - \ dependencies:\n buildrequires:\n base-runtime: master\n\ - \ requires:\n base-runtime: master\n references:\n \ - \ community: https://fedoraproject.org/wiki/Modularity\n documentation:\ - \ https://fedoraproject.org/wiki/Fedora_Packaging_Guidelines_for_Modules\n\ - \ tracker: https://taiga.fedorainfracloud.org/project/modularity\n\ - \ profiles:\n default:\n rpms:\n - tangerine\n\ - \ api:\n rpms:\n - perl-Tangerine\n - tangerine\n\ - \ components:\n rpms:\n perl-List-Compare:\n \ - \ rationale: A dependency of tangerine.\n ref: f25\n\ - \ perl-Tangerine:\n rationale: Provides API for\ - \ this module and is a dependency of tangerine.\n ref: f25\n\ - \ tangerine:\n rationale: Provides API for this\ - \ module.\n buildorder: 10\n ref: f25\n"} + body: {string: !!python/unicode ''} headers: - appserver: [pkgs01.stg.phx2.fedoraproject.org] - apptime: [D=736979] - connection: [Keep-Alive] - content-disposition: [inline; filename="testmodule.yaml"] - content-length: ['1204'] - content-security-policy: [default-src 'none'] - content-type: [text/plain; charset=UTF-8] - date: ['Mon, 20 Feb 2017 19:18:02 GMT'] - etag: ['"4a3ac897696788dde43baefec432690e102ec0ad"'] - expires: ['Mon, 20 Feb 2017 19:21:35 GMT'] - keep-alive: ['timeout=5, max=100'] - last-modified: ['Mon, 20 Feb 2017 19:16:35 GMT'] - server: [Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_auth_gssapi/1.4.0 - mod_wsgi/3.4 Python/2.7.5] - x-content-type-options: [nosniff] + content-type: [text/html; charset=utf-8] + date: ['Tue, 21 Feb 2017 14:39:09 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Tue, 21 Feb 2017 14:39:09 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=2ZFyI7Tco7zSAmlb2zIGUFnqSafManzn; expires=Tue, 20-Feb-2018 + 14:39:09 GMT; Max-Age=31449600; Path=/', 'sessionid=0i88aaghhfm8fa2zftqdwwh1agwd7bt6; + expires=Tue, 07-Mar-2017 14:39:09 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} version: 1 diff --git a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_instant_complete b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_instant_complete index c2beda96..291b3eb0 100644 --- a/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_instant_complete +++ b/tests/vcr-request-data/tests.test_build.test_build.TestBuild.test_submit_build_instant_complete @@ -13,7 +13,7 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:11 GMT'] + date: ['Tue, 21 Feb 2017 14:36:43 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] @@ -49,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:12 GMT'] + date: ['Tue, 21 Feb 2017 14:36:44 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=eZNDGtxdOfkKYFkqw43XVnclI1leU4NM; expires=Tue, 20-Feb-2018 - 14:23:11 GMT; Max-Age=31449600; Path=/', 'sessionid=h36st1efn408dyhu96eqwnvrpginvpux; - expires=Tue, 07-Mar-2017 14:23:11 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=eSDVsgFOvUCruKjolL6r7IpcnNXrwqay; expires=Tue, 20-Feb-2018 + 14:36:44 GMT; Max-Age=31449600; Path=/', 'sessionid=u92uk4qkscrzk40k9fhrjkb3aaevhbsn; + expires=Tue, 07-Mar-2017 14:36:44 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -71,7 +71,7 @@ interactions: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:12 GMT'] + date: ['Tue, 21 Feb 2017 14:36:45 GMT'] location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] @@ -107,11 +107,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:13 GMT'] + date: ['Tue, 21 Feb 2017 14:36:46 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=EeXl9bdqic1b5X4Vvir1yhGvb3XeLIXI; expires=Tue, 20-Feb-2018 - 14:23:13 GMT; Max-Age=31449600; Path=/', 'sessionid=3jnd0v1ime4hu6jfoofkx3vivuf7p1ks; - expires=Tue, 07-Mar-2017 14:23:13 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=tmzQDuH9ZCbD9jdCLnYic2vsScPcSNB5; expires=Tue, 20-Feb-2018 + 14:36:46 GMT; Max-Age=31449600; Path=/', 'sessionid=mh6bkizgk7txvd918543fatmzkfvpe2l; + expires=Tue, 07-Mar-2017 14:36:46 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -124,13 +124,13 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:13 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + date: ['Tue, 21 Feb 2017 14:36:46 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} @@ -143,7 +143,7 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: @@ -165,11 +165,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:14 GMT'] + date: ['Tue, 21 Feb 2017 14:36:46 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=dPXosjg7qm6idZh1YzQDo9M89xM3vlL3; expires=Tue, 20-Feb-2018 - 14:23:14 GMT; Max-Age=31449600; Path=/', 'sessionid=ufvlf6ol54x3b3qaeqgy8mr5rk82x0tz; - expires=Tue, 07-Mar-2017 14:23:14 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=AiXq3L0KqMxqCwrqZsWdpmFB1oFwPTLU; expires=Tue, 20-Feb-2018 + 14:36:46 GMT; Max-Age=31449600; Path=/', 'sessionid=sgxh09g4j4j56xn9qpmtmcbp5jbqmu1q; + expires=Tue, 07-Mar-2017 14:36:46 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -182,13 +182,13 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:14 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + date: ['Tue, 21 Feb 2017 14:36:47 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} @@ -201,7 +201,7 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: @@ -223,11 +223,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:15 GMT'] + date: ['Tue, 21 Feb 2017 14:36:47 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=OwKry9Yc3qC8SqAqCoAgtMUJrcmnJQli; expires=Tue, 20-Feb-2018 - 14:23:15 GMT; Max-Age=31449600; Path=/', 'sessionid=o6simzf2wliavqd6fppte13u3bzjeqyc; - expires=Tue, 07-Mar-2017 14:23:15 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=qJ6T7bFO2IuxRrmQZ4pf4lDNCnd6xjdT; expires=Tue, 20-Feb-2018 + 14:36:47 GMT; Max-Age=31449600; Path=/', 'sessionid=4u3kqu66rt9vm2h1ushxrl0c87b4qpa6; + expires=Tue, 07-Mar-2017 14:36:47 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -240,13 +240,13 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:16 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + date: ['Tue, 21 Feb 2017 14:36:48 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} @@ -259,7 +259,7 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: @@ -281,11 +281,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:17 GMT'] + date: ['Tue, 21 Feb 2017 14:36:48 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=WLYn972GECJ55YtCRiXzxVNecVbmbwTX; expires=Tue, 20-Feb-2018 - 14:23:17 GMT; Max-Age=31449600; Path=/', 'sessionid=d358arbu5kojae2vn358bew531upltbz; - expires=Tue, 07-Mar-2017 14:23:17 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=GfnHvB6DCncA6UzdLTlRM2vs6OYUpQUe; expires=Tue, 20-Feb-2018 + 14:36:48 GMT; Max-Age=31449600; Path=/', 'sessionid=6dee9smhayec29lyyw1ki2h6lr25530n; + expires=Tue, 07-Mar-2017 14:36:48 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} @@ -298,13 +298,13 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:17 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] + date: ['Tue, 21 Feb 2017 14:36:48 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} @@ -317,7 +317,7 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: @@ -339,69 +339,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:18 GMT'] + date: ['Tue, 21 Feb 2017 14:36:49 GMT'] server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=8IWVWNO8rRmOfWN6sibcyZm5OgkXo0uk; expires=Tue, 20-Feb-2018 - 14:23:18 GMT; Max-Age=31449600; Path=/', 'sessionid=htjle3kd7xhkj92614d4c4warojsfifj; - expires=Tue, 07-Mar-2017 14:23:18 GMT; httponly; Max-Age=1209600; Path=/'] - vary: ['Accept, Cookie'] - x-frame-options: [SAMEORIGIN] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.10.0] - accept: [application/json] - content-type: [application/json] - method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime - response: - body: {string: !!python/unicode ''} - headers: - content-type: [text/html; charset=utf-8] - date: ['Tue, 21 Feb 2017 14:23:18 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.13] - x-frame-options: [SAMEORIGIN] - status: {code: 301, message: MOVED PERMANENTLY} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.10.0] - accept: [application/json] - content-type: [application/json] - method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime - response: - body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: - modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: - 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: - ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: - 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - - bash\r\n - bzip2\r\n - coreutils\r\n - - cpio\r\n - diffutils\r\n - fedora-release\r\n - - findutils\r\n - gawk\r\n - gcc\r\n - - gcc-c++\r\n - grep\r\n - gzip\r\n - - info\r\n - make\r\n - patch\r\n - - redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - - shadow-utils\r\n - tar\r\n - unzip\r\n - - util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - - bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - - gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - - shadow-utils","runtime_deps":[],"build_deps":[]}]'} - headers: - allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] - content-type: [application/json] - date: ['Tue, 21 Feb 2017 14:23:19 GMT'] - server: [WSGIServer/0.1 Python/2.7.13] - set-cookie: ['csrftoken=lK2k8GLy8aDK7Yqwbb4pg1jnsqaBjBdl; expires=Tue, 20-Feb-2018 - 14:23:19 GMT; Max-Age=31449600; Path=/', 'sessionid=6lurr7mg73xyxwfe7y69ey5u51k9mf9a; - expires=Tue, 07-Mar-2017 14:23:19 GMT; httponly; Max-Age=1209600; Path=/'] + set-cookie: ['csrftoken=leek0TCjGeEOw0Xwoz2DE3mMD2TitK73; expires=Tue, 20-Feb-2018 + 14:36:49 GMT; Max-Age=31449600; Path=/', 'sessionid=mi5csgzfgehmbdndnpi2hc14r1o047qh; + expires=Tue, 07-Mar-2017 14:36:49 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} diff --git a/tests/vcr-request-data/tests.test_scheduler.test_module_wait.TestModuleWait.test_init_basic b/tests/vcr-request-data/tests.test_scheduler.test_module_wait.TestModuleWait.test_init_basic new file mode 100644 index 00000000..303002e0 --- /dev/null +++ b/tests/vcr-request-data/tests.test_scheduler.test_module_wait.TestModuleWait.test_init_basic @@ -0,0 +1,60 @@ +interactions: +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode ''} + headers: + content-type: [text/html; charset=utf-8] + date: ['Thu, 16 Feb 2017 22:56:59 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] + x-frame-options: [SAMEORIGIN] + status: {code: 301, message: MOVED PERMANENTLY} +- request: + body: null + headers: + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.10.0] + accept: [application/json] + content-type: [application/json] + method: GET + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime + response: + body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: + modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: + 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + bash\r\n - bzip2\r\n - coreutils\r\n - + cpio\r\n - diffutils\r\n - fedora-release\r\n - + findutils\r\n - gawk\r\n - gcc\r\n - + gcc-c++\r\n - grep\r\n - gzip\r\n - + info\r\n - make\r\n - patch\r\n - + redhat-rpm-config\r\n - rpm-build\r\n - sed\r\n - + shadow-utils\r\n - tar\r\n - unzip\r\n - + util-linux\r\n - which\r\n - xz\r\n srpm-buildroot:\r\n rpms:\r\n - + bash\r\n - fedora-release\r\n - fedpkg-minimal\r\n - + gnupg2\r\n - redhat-rpm-config\r\n - rpm-build\r\n - + shadow-utils","runtime_deps":[],"build_deps":[]}]'} + headers: + allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] + content-type: [application/json] + date: ['Thu, 16 Feb 2017 22:56:59 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=9nhuBn2Olmq2wV8fYav0Q2jVNL3eIGrG; expires=Thu, 15-Feb-2018 + 22:56:59 GMT; Max-Age=31449600; Path=/', 'sessionid=vpldkg6r099y53d6g5ouvtgn5zedt17f; + expires=Thu, 02-Mar-2017 22:56:59 GMT; httponly; Max-Age=1209600; Path=/'] + vary: ['Accept, Cookie'] + x-frame-options: [SAMEORIGIN] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match b/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match index fa1c25c6..b70729ab 100644 --- a/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match +++ b/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match @@ -8,14 +8,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:42:02 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:57:00 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -27,12 +27,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -47,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:42:03 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=F8Q1L8iQTVRIwZt9grZ3P3hvqomRUaK2; expires=Thu, 11-Jan-2018 - 10:42:03 GMT; Max-Age=31449600; Path=/', 'sessionid=9tni9905j6c5ihm5o38onicnpks1glji; - expires=Thu, 26-Jan-2017 10:42:03 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:57:00 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=0qfAECpW9hWWw0aNRf0LdpeT5dJJhF9k; expires=Thu, 15-Feb-2018 + 22:57:00 GMT; Max-Age=31449600; Path=/', 'sessionid=h746xqt58znxy570e4vjrpot0e6pj006; + expires=Thu, 02-Mar-2017 22:57:00 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK} diff --git a/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match_build_fail b/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match_build_fail index ce71b0f5..5fd8dee0 100644 --- a/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match_build_fail +++ b/tests/vcr-request-data/tests.test_scheduler.test_repo_done.TestRepoDone.test_a_single_match_build_fail @@ -8,14 +8,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode ''} headers: content-type: [text/html; charset=utf-8] - date: ['Thu, 12 Jan 2017 10:42:04 GMT'] - location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime'] - server: [WSGIServer/0.1 Python/2.7.12] + date: ['Thu, 16 Feb 2017 22:57:00 GMT'] + location: ['http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime'] + server: [WSGIServer/0.1 Python/2.7.13] x-frame-options: [SAMEORIGIN] status: {code: 301, message: MOVED PERMANENTLY} - request: @@ -27,12 +27,14 @@ interactions: accept: [application/json] content-type: [application/json] method: GET - uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_version=master&page_size=-1&variant_id=base-runtime + uri: http://modularity.fedorainfracloud.org:8080/rest_api/v1/unreleasedvariants/?variant_release=3&variant_version=master&page_size=-1&variant_id=base-runtime response: body: {string: !!python/unicode '[{"variant_id":"base-runtime","variant_uid":"base-runtime-master-3","variant_name":"base-runtime","variant_type":"module","variant_version":"master","variant_release":"3","koji_tag":"module-base-runtime-master-3","modulemd":"document: modulemd\r\nversion: 1\r\ndata:\r\n name: base-runtime\r\n stream: master\r\n version: 3\r\n summary: A fake base-runtime module, used to bootstrap the infrastructure.\r\n description: - ...\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - + ...\r\n xmd:\r\n mbs:\r\n commit: ae993ba84f4bce554471382ccba917ef16265f11\r\n buildrequires:\r\n base-runtime:\r\n ref: + ae993ba84f4bce554471382ccba917ef16265f11\r\n stream: master\r\n version: + 3\r\n profiles:\r\n buildroot:\r\n rpms:\r\n - bash\r\n - bzip2\r\n - coreutils\r\n - cpio\r\n - diffutils\r\n - fedora-release\r\n - findutils\r\n - gawk\r\n - gcc\r\n - @@ -47,11 +49,11 @@ interactions: headers: allow: ['GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS'] content-type: [application/json] - date: ['Thu, 12 Jan 2017 10:42:05 GMT'] - server: [WSGIServer/0.1 Python/2.7.12] - set-cookie: ['csrftoken=RHZQGCRNy5WVlgOS8DJQquFgzUz2fMCz; expires=Thu, 11-Jan-2018 - 10:42:05 GMT; Max-Age=31449600; Path=/', 'sessionid=6lb37nfrlhvxdt3i9h9lzuu8b7zyxstd; - expires=Thu, 26-Jan-2017 10:42:05 GMT; httponly; Max-Age=1209600; Path=/'] + date: ['Thu, 16 Feb 2017 22:57:01 GMT'] + server: [WSGIServer/0.1 Python/2.7.13] + set-cookie: ['csrftoken=MzlJfHUtUOaMM8cYLpQ0do6PVb3w83Ky; expires=Thu, 15-Feb-2018 + 22:57:01 GMT; Max-Age=31449600; Path=/', 'sessionid=73zufsozrq3sbl6ei5j0kroz5bsnpmmv; + expires=Thu, 02-Mar-2017 22:57:01 GMT; httponly; Max-Age=1209600; Path=/'] vary: ['Accept, Cookie'] x-frame-options: [SAMEORIGIN] status: {code: 200, message: OK}