From 236b38fd1a60ed042c9b4c91f3a6122fe6659481 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Thu, 10 Jul 2014 12:06:12 +1000 Subject: [PATCH] Add requests-mock to stackforge Recently accepted to global-requirements. As client projects start adopting the library we want to be able to test changes to the library against those clients. Change-Id: Ic6b3dbc53de4bfae382b9807e58844b7b6839e7b --- .../gerrit/acls/stackforge/requests-mock.config | 14 ++++++++++++++ .../files/jenkins_job_builder/config/projects.yaml | 10 ++++++++++ .../openstack_project/files/review.projects.yaml | 3 +++ modules/openstack_project/files/zuul/layout.yaml | 6 ++++++ 4 files changed, 33 insertions(+) create mode 100644 modules/openstack_project/files/gerrit/acls/stackforge/requests-mock.config diff --git a/modules/openstack_project/files/gerrit/acls/stackforge/requests-mock.config b/modules/openstack_project/files/gerrit/acls/stackforge/requests-mock.config new file mode 100644 index 0000000000..61500d0963 --- /dev/null +++ b/modules/openstack_project/files/gerrit/acls/stackforge/requests-mock.config @@ -0,0 +1,14 @@ +[access "refs/heads/*"] +abandon = group requests-mock-core +label-Code-Review = -2..+2 group requests-mock-core +label-Workflow = -1..+1 group requests-mock-core + +[access "refs/tags/*"] +pushSignedTag = group requests-mock-ptl + +[receive] +requireChangeId = true +requireContributorAgreement = false + +[submit] +mergeContent = true diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml index 747cd2c6f8..c021fb3c45 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -2824,6 +2824,16 @@ jobs: - python-jobs +- project: + name: requests-mock + github-org: stackforge + node: 'bare-precise || bare-trusty' + tarball-site: tarballs.openstack.org + + jobs: + - python-jobs + - hook-{name}-rtfd + - project: name: stacktach github-org: stackforge diff --git a/modules/openstack_project/files/review.projects.yaml b/modules/openstack_project/files/review.projects.yaml index 8a90b4149a..d4029f0fd1 100644 --- a/modules/openstack_project/files/review.projects.yaml +++ b/modules/openstack_project/files/review.projects.yaml @@ -1012,6 +1012,9 @@ description: Testing and result upload client for refstack upstream: git://github.com/dlenwell/refstack-client use-storyboard: true +- project: stackforge/requests-mock + description: Mocked responses for the requests library + upstream: git://github.com/jamielennox/requests-mock.git - project: stackforge/rubick description: Rule-based diagnostics of configuration of OpenStack platform upstream: git://github.com/MirantisLabs/rubick diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 487f0f5bd6..269a426f83 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -4532,6 +4532,12 @@ projects: post: - refstack-client-coverage + - name: stackforge/requests-mock + template: + - name: python-jobs + - name: python3-jobs + - name: pypy-jobs + - name: stackforge/rubick check: - gate-rubick-pep8