Codebase list python-castellan / 2557ff6
Merge tag '3.7.1' into debian/wallaby castellan 3.7.1 release meta:version: 3.7.1 meta:diff-start: - meta:series: wallaby meta:release-type: release meta:pypi: no meta:first: no meta:release:Author: Hervé Beraud <hberaud@redhat.com> meta:release:Commit: Hervé Beraud <hberaud@redhat.com> meta:release:Change-Id: Id73da4b9db2ed57c06ebf9d541f8baee5b5003d4 meta:release:Code-Review+2: Hervé Beraud <hberaud@redhat.com> meta:release:Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com> meta:release:Workflow+1: Sean McGinnis <sean.mcginnis@gmail.com> Thomas Goirand 3 years ago
10 changed file(s) with 52 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 # We from the Oslo project decided to pin repos based on the
1 # commit hash instead of the version tag to prevend arbitrary
2 # code from running in developer's machines. To update to a
3 # newer version, run `pre-commit autoupdate` and then replace
4 # the newer versions with their commit hash.
5
6 default_language_version:
7 python: python3
8
9 repos:
10 - repo: https://github.com/pre-commit/pre-commit-hooks
11 rev: ebc15addedad713c86ef18ae9632c88e187dd0af # v3.1.0
12 hooks:
13 - id: trailing-whitespace
14 # Replaces or checks mixed line ending
15 - id: mixed-line-ending
16 args: ['--fix', 'lf']
17 exclude: '.*\.(svg)$'
18 # Forbid files which have a UTF-8 byte-order marker
19 - id: check-byte-order-marker
20 # Checks that non-binary executables have a proper shebang
21 - id: check-executables-have-shebangs
22 # Check for files that contain merge conflict strings.
23 - id: check-merge-conflict
24 # Check for debugger imports and py37+ breakpoint()
25 # calls in python source
26 - id: debug-statements
27 - id: check-yaml
28 files: .*\.(yaml|yml)$
29 - repo: https://gitlab.com/pycqa/flake8
30 rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3
31 hooks:
32 - id: flake8
33 additional_dependencies:
34 - hacking>=3.0.1,<3.1.0
5858 - barbican-tempest-plugin-simple-crypto-castellan-src
5959 templates:
6060 - check-requirements
61 - openstack-lower-constraints-jobs
62 - openstack-python3-victoria-jobs
61 - openstack-python3-wallaby-jobs
6362 - periodic-stable-jobs
6463 - publish-openstack-docs-pti
6564 - release-notes-jobs-python3
197197 return endpoint_data.url
198198 else:
199199 service_parameters = {'service_type': 'key-manager',
200 'service_name': 'barbican',
201200 'interface': barbican.barbican_endpoint_type}
202201 return auth.get_endpoint(sess, **service_parameters)
203202
121121 self.assertRaises(exception.KeyManagerError,
122122 self.key_mgr._create_base_url,
123123 auth, sess, endpoint)
124 auth.get_discovery.asser_called_once_with(sess, url=endpoint)
124 auth.get_discovery.assert_called_once_with(sess, url=endpoint)
125125 self.assertEqual(1, discovery.raw_version_data.call_count)
126126
127127 def test_base_url_get_discovery(self):
135135 endpoint = "http://localhost/key_manager"
136136
137137 base_url = self.key_mgr._create_base_url(auth,
138 mock.Mock(),
138 sess,
139139 endpoint)
140140 self.assertEqual(endpoint + "/" + version, base_url)
141 auth.get_discovery.asser_called_once_with(sess, url=endpoint)
141 auth.get_discovery.assert_called_once_with(sess, url=endpoint)
142142 self.assertEqual(1, discovery.raw_version_data.call_count)
143143
144144 def test_create_key(self):
0 # Copyright (C) 2020 Red Hat, Inc.
1 #
02 # Licensed under the Apache License, Version 2.0 (the "License");
13 # you may not use this file except in compliance with the License.
24 # You may obtain a copy of the License at
2022 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2123 extensions = [
2224 'sphinx.ext.autodoc',
23 #'sphinx.ext.intersphinx',
2425 'openstackdocstheme',
2526 'sphinxcontrib.rsvgconverter',
2627 ]
8081
8182 latex_use_xindy = False
8283
83 # Example configuration for intersphinx: refer to the Python standard library.
84 #intersphinx_mapping = {'https://docs.python.org/3/': None}
85
8684 # -- Options for openstackdocstheme -------------------------------------------
8785 openstackdocs_repo_name = 'openstack/castellan'
8886 openstackdocs_pdf_link = True
4646 requests==2.18.0
4747 requestsexceptions==1.2.0
4848 rfc3986==0.3.1
49 six==1.15.0
5049 smmap==0.9.0
5150 stestr==2.0.0
5251 stevedore==1.20.0
55 :maxdepth: 1
66
77 unreleased
8 victoria
89 ussuri
910 train
1011 stein
0 =============================
1 Victoria Series Release Notes
2 =============================
3
4 .. release-notes::
5 :branch: stable/victoria
1616 testtools>=2.2.0 # MIT
1717 bandit>=1.6.0,<1.7.0 # Apache-2.0
1818 pifpaf>=0.10.0 # Apache-2.0
19
20 pre-commit>=2.6.0 # MIT
00 [tox]
11 minversion = 3.1.1
2 envlist = py38,pep8
2 envlist = py3,pep8
33 ignore_basepython_conflict = True
44 skipsdist = True
55
1717
1818 [testenv:pep8]
1919 commands =
20 flake8
20 pre-commit run -a
2121 bandit -r castellan -x tests -s B105,B106,B107,B607
2222
2323 [testenv:bandit]