os-service-types-1.1.0/0000775000175000017500000000000013145333404016060 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/CONTRIBUTING.rst0000664000175000017500000000121513145333204020516 0ustar jenkinsjenkins00000000000000If you would like to contribute to the development of OpenStack, you must follow the steps in this page: http://docs.openstack.org/infra/manual/developers.html If you already have a good understanding of how the system works and your OpenStack accounts are set up, you can skip to the development workflow section of this documentation to learn how changes to OpenStack should be submitted for review via the Gerrit tool: http://docs.openstack.org/infra/manual/developers.html#development-workflow Pull requests submitted through GitHub will be ignored. Bugs should be filed on Storyboard: https://storyboard.openstack.org/#!/project/904 os-service-types-1.1.0/tools/0000775000175000017500000000000013145333404017220 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/tools/tox_install.sh0000775000175000017500000000211313145333204022112 0ustar jenkinsjenkins00000000000000#!/usr/bin/env bash # Client constraint file contains this client version pin that is in conflict # with installing the client from source. We should remove the version pin in # the constraints file before applying it for from-source installation. CONSTRAINTS_FILE="$1" shift 1 set -e # NOTE(tonyb): Place this in the tox enviroment's log dir so it will get # published to logs.openstack.org for easy debugging. localfile="$VIRTUAL_ENV/log/upper-constraints.txt" if [[ "$CONSTRAINTS_FILE" != http* ]]; then CONSTRAINTS_FILE="file://$CONSTRAINTS_FILE" fi # NOTE(tonyb): need to add curl to bindep.txt if the project supports bindep curl "$CONSTRAINTS_FILE" --insecure --progress-bar --output "$localfile" pip install -c"$localfile" openstack-requirements # This is the main purpose of the script: Allow local installation of # the current repo. It is listed in constraints file and thus any # install will be constrained and we need to unconstrain it. echo "editing constraints" echo $CLIENT_NAME edit-constraints "$localfile" -- "$CLIENT_NAME" pip install -c"$localfile" -U "$@" exit $? os-service-types-1.1.0/os_service_types.egg-info/0000775000175000017500000000000013145333404023137 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/os_service_types.egg-info/dependency_links.txt0000664000175000017500000000000113145333403027204 0ustar jenkinsjenkins00000000000000 os-service-types-1.1.0/os_service_types.egg-info/top_level.txt0000664000175000017500000000002113145333403025661 0ustar jenkinsjenkins00000000000000os_service_types os-service-types-1.1.0/os_service_types.egg-info/pbr.json0000664000175000017500000000005613145333403024615 0ustar jenkinsjenkins00000000000000{"git_version": "f130e94", "is_release": true}os-service-types-1.1.0/os_service_types.egg-info/requires.txt0000664000175000017500000000002313145333403025531 0ustar jenkinsjenkins00000000000000pbr!=2.1.0,>=2.0.0 os-service-types-1.1.0/os_service_types.egg-info/not-zip-safe0000664000175000017500000000000113145333377025376 0ustar jenkinsjenkins00000000000000 os-service-types-1.1.0/os_service_types.egg-info/PKG-INFO0000664000175000017500000000346713145333403024245 0ustar jenkinsjenkins00000000000000Metadata-Version: 1.1 Name: os-service-types Version: 1.1.0 Summary: Python library for consuming OpenStack sevice-types-authority data Home-page: http://www.openstack.org/ Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN Description: ================ os-service-types ================ Python library for consuming OpenStack sevice-types-authority data The `OpenStack Service Types Authority`_ contains information about official OpenStack services and their historical ``service-type`` aliases. The data is in JSON and the latest data should always be used. This simple library exists to allow for easy consumption of the data, along with a built-in version of the data to use in case network access is for some reason not possible and local caching of the fetched data. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/os-service-types * Source: http://git.openstack.org/cgit/openstack/os-service-types * Bugs: https://storyboard.openstack.org/#!/project/904 .. _OpenStack Service Types Authority: https://service-types.openstack.org/ Platform: UNKNOWN Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 os-service-types-1.1.0/os_service_types.egg-info/SOURCES.txt0000664000175000017500000000252413145333404025026 0ustar jenkinsjenkins00000000000000.coveragerc .mailmap .testr.conf AUTHORS CONTRIBUTING.rst ChangeLog HACKING.rst LICENSE README.rst requirements.txt setup.cfg setup.py test-requirements.txt tox.ini doc/source/conf.py doc/source/index.rst doc/source/readme.rst doc/source/contributor/contributing.rst doc/source/contributor/index.rst doc/source/install/index.rst doc/source/library/index.rst doc/source/reference/index.rst os_service_types/__init__.py os_service_types/exc.py os_service_types/service_types.py os_service_types.egg-info/PKG-INFO os_service_types.egg-info/SOURCES.txt os_service_types.egg-info/dependency_links.txt os_service_types.egg-info/not-zip-safe os_service_types.egg-info/pbr.json os_service_types.egg-info/requires.txt os_service_types.egg-info/top_level.txt os_service_types/data/__init__.py os_service_types/data/service-types.json os_service_types/tests/__init__.py os_service_types/tests/base.py os_service_types/tests/test_builtin.py os_service_types/tests/test_match.py os_service_types/tests/test_remote.py os_service_types/tests/test_warn.py releasenotes/notes/.placeholder releasenotes/notes/add-service-types-class-574caf54f7461163.yaml releasenotes/source/conf.py releasenotes/source/index.rst releasenotes/source/pike.rst releasenotes/source/unreleased.rst releasenotes/source/_static/.placeholder releasenotes/source/_templates/.placeholder tools/tox_install.shos-service-types-1.1.0/setup.cfg0000664000175000017500000000161613145333404017705 0ustar jenkinsjenkins00000000000000[metadata] name = os-service-types summary = Python library for consuming OpenStack sevice-types-authority data description-file = README.rst author = OpenStack author-email = openstack-dev@lists.openstack.org home-page = http://www.openstack.org/ classifier = Environment :: OpenStack Intended Audience :: Information Technology Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 [files] packages = os_service_types [build_sphinx] all-files = 1 warning-is-error = 1 source-dir = doc/source build-dir = doc/build [upload_sphinx] upload-dir = doc/build/html [egg_info] tag_build = tag_date = 0 os-service-types-1.1.0/PKG-INFO0000664000175000017500000000346713145333404017167 0ustar jenkinsjenkins00000000000000Metadata-Version: 1.1 Name: os-service-types Version: 1.1.0 Summary: Python library for consuming OpenStack sevice-types-authority data Home-page: http://www.openstack.org/ Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN Description: ================ os-service-types ================ Python library for consuming OpenStack sevice-types-authority data The `OpenStack Service Types Authority`_ contains information about official OpenStack services and their historical ``service-type`` aliases. The data is in JSON and the latest data should always be used. This simple library exists to allow for easy consumption of the data, along with a built-in version of the data to use in case network access is for some reason not possible and local caching of the fetched data. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/os-service-types * Source: http://git.openstack.org/cgit/openstack/os-service-types * Bugs: https://storyboard.openstack.org/#!/project/904 .. _OpenStack Service Types Authority: https://service-types.openstack.org/ Platform: UNKNOWN Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 os-service-types-1.1.0/ChangeLog0000664000175000017500000000116413145333403017633 0ustar jenkinsjenkins00000000000000CHANGES ======= 1.1.0 ----- * Sync from latest service-types-authority * Consume new mapping fields from service-type-authority * Support secondary services * Update unittests to be able to sync latest data * Update reno for stable/pike * Updated from global requirements * Use tox\_install.sh to install dependencies 1.0.0 ----- * Add ability to warn on use of non-official types * Refresh local service-types.json * Throw an exception on conflicting arguments * Updated from global requirements * Updated from global requirements * Implement fetching and accessor methods * Add cookiecutter boilerplate * Added .gitreview os-service-types-1.1.0/test-requirements.txt0000664000175000017500000000106013145333204022314 0ustar jenkinsjenkins00000000000000# The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. hacking<0.13,>=0.12.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 python-subunit>=0.0.18 # Apache-2.0/BSD sphinx>=1.6.2 # BSD oslotest>=1.10.0 # Apache-2.0 testscenarios>=0.4 # Apache-2.0/BSD requests-mock>=1.1 # Apache-2.0 openstackdocstheme>=1.16.0 # Apache-2.0 keystoneauth1>=3.1.0 # Apache-2.0 # releasenotes reno!=2.3.1,>=1.8.0 # Apache-2.0 os-service-types-1.1.0/.mailmap0000664000175000017500000000013113145333204017472 0ustar jenkinsjenkins00000000000000# Format is: # # os-service-types-1.1.0/README.rst0000664000175000017500000000151313145333204017545 0ustar jenkinsjenkins00000000000000================ os-service-types ================ Python library for consuming OpenStack sevice-types-authority data The `OpenStack Service Types Authority`_ contains information about official OpenStack services and their historical ``service-type`` aliases. The data is in JSON and the latest data should always be used. This simple library exists to allow for easy consumption of the data, along with a built-in version of the data to use in case network access is for some reason not possible and local caching of the fetched data. * Free software: Apache license * Documentation: http://docs.openstack.org/developer/os-service-types * Source: http://git.openstack.org/cgit/openstack/os-service-types * Bugs: https://storyboard.openstack.org/#!/project/904 .. _OpenStack Service Types Authority: https://service-types.openstack.org/ os-service-types-1.1.0/requirements.txt0000664000175000017500000000036313145333204021344 0ustar jenkinsjenkins00000000000000# The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. pbr!=2.1.0,>=2.0.0 # Apache-2.0 os-service-types-1.1.0/setup.py0000664000175000017500000000200613145333204017566 0ustar jenkinsjenkins00000000000000# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools # In python < 2.7.4, a lazy loading of package `pbr` will break # setuptools if some other modules registered functions in `atexit`. # solution from: http://bugs.python.org/issue15881#msg170215 try: import multiprocessing # noqa except ImportError: pass setuptools.setup( setup_requires=['pbr>=2.0.0'], pbr=True) os-service-types-1.1.0/os_service_types/0000775000175000017500000000000013145333404021445 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/os_service_types/service_types.py0000664000175000017500000002432713145333204024711 0ustar jenkinsjenkins00000000000000# Copyright 2017 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. __all__ = ['ServiceTypes'] import copy import os_service_types.data from os_service_types import exc BUILTIN_DATA = os_service_types.data.read_data('service-types.json') SERVICE_TYPES_URL = "https://service-types.openstack.org/service-types.json" class ServiceTypes(object): """Encapsulation of the OpenStack Service Types Authority data. The Service Types Authority data will be either pulled from its remote location or from local files as is appropriate. If the user passes a Session, remote data will be fetched. If the user does not do that, local builtin data will be used. :param session: An object that behaves like a `requests.sessions.Session` or a `keystoneauth1.session.Session` that provides a get method and returns an object that behaves like a `requests.models.Response`. Optional. If session is omitted, no remote actions will be performed. :param bool only_remote: By default if there is a problem fetching data remotely the builtin data will be returned as a fallback. only_remote will cause remote failures to raise an error instead of falling back. Optional, defaults to False. :param bool warn: Emit warnings when a non-official service_type is provided. This provides an easy way for consuming applications to warn users when they are using old types. :raises ValueError: If session is None and only_remote is True :raises IOError: If session is given and only_remote is True and there is an error fetching remote data. """ def __init__(self, session=None, only_remote=False, warn=False): if not session and only_remote: raise ValueError( "only_remote was requested but no Session was provided.") self._service_types_data = BUILTIN_DATA self._warn = warn if session: try: response = session.get(SERVICE_TYPES_URL) response.raise_for_status() self._service_types_data = response.json() except IOError: # If we can't fetch, fall backto BUILTIN if only_remote: raise def _canonical_project_name(self, name): "Convert repo name to project name." if name is None: raise ValueError("Empty project name is not allowed") # Handle openstack/ prefix going away from STA data return name.rpartition('/')[-1] @property def url(self): "The URL from which the data was retrieved." return SERVICE_TYPES_URL @property def version(self): "The version of the data." return self._service_types_data['version'] @property def forward(self): "Mapping service-type names to their aliases." return copy.deepcopy(self._service_types_data['forward']) @property def reverse(self): "Mapping aliases to their service-type names." return copy.deepcopy(self._service_types_data['reverse']) @property def services(self): "Full service-type data listing." return copy.deepcopy(self._service_types_data['services']) @property def all_types_by_service_type(self): "Mapping of official service type to official type and aliases." return copy.deepcopy( self._service_types_data['all_types_by_service_type']) @property def primary_service_by_project(self): "Mapping of project name to the primary associated service." return copy.deepcopy( self._service_types_data['primary_service_by_project']) @property def service_types_by_project(self): "Mapping of project name to a list of all associated service-types." return copy.deepcopy( self._service_types_data['service_types_by_project']) def get_official_service_data(self, service_type): """Get the service data for an official service_type. :param str service_type: The official service-type to get data for. :returns dict: Service data for the service or None if not found. """ for service in self._service_types_data['services']: if service_type == service['service_type']: return service return None def get_service_data(self, service_type): """Get the service data for a given service_type. :param str service_type: The service-type or alias to get data for. :returns dict: Service data for the service or None if not found. """ service_type = self.get_service_type(service_type) if not service_type: return None return self.get_official_service_data(service_type) def is_official(self, service_type): """Is the given service-type an official service-type? :param str service_type: The service-type to test. :returns bool: True if it's an official type, False otherwise. """ return self.get_official_service_data(service_type) is not None def is_alias(self, service_type): """Is the given service-type an alias? :param str service_type: The service-type to test. :returns bool: True if it's an alias type, False otherwise. """ return service_type in self._service_types_data['reverse'] def is_known(self, service_type): """Is the given service-type an official type or an alias? :param str service_type: The service-type to test. :returns bool: True if it's a known type, False otherwise. """ return self.is_official(service_type) or self.is_alias(service_type) def is_match(self, requested, found): """Does a requested service-type match one found in the catalog? A requested service-type matches a service-type in the catalog if it is either a direct match, if the service-type in the catalog is an official type and the requested type is one of its aliases, or if the requested type is an official type and the type in the catalog is one of its aliases. A requested alias cannot match a different alias because there are historical implications related to versioning to some historical aliases that cannot be safely reasoned about in an automatic fashion. :param str requested: A service-type that someone is looking for. :param str found: A service-type found in a catalog :returns bool: True if the service-type being requested matches the entry in the catalog. False if it does not. """ # Exact match if requested == found: return True # Found is official type, requested is one of its aliases if requested in self.get_aliases(found): return True # Found is an alias, requested is an official type if requested == self.get_service_type(found): return True return False def get_aliases(self, service_type): """Returns the list of aliases for a given official service-type. :param str service_type: An official service-type. :returns list: List of aliases, or empty list if there are none. """ return self._service_types_data['forward'].get(service_type, []) def get_service_type(self, service_type): """Given a possible service_type, return the official type. :param str service_type: A potential service-type. :returns str: The official service-type, or None if there is no match. """ if self.is_official(service_type): return service_type official = self._service_types_data['reverse'].get(service_type) if self._warn: exc.warn( exc.AliasUsageWarning, given=service_type, official=official) return official def get_all_types(self, service_type): """Get a list of official types and all known aliases. :param str service_type: The service-type or alias to get data for. :returns dict: Service data for the service or None if not found. """ if not self.is_known(service_type): return [service_type] return self.all_types_by_service_type[ self.get_service_type(service_type)] def get_project_name(self, service_type): """Return the OpenStack project name for a given service_type. :param str service_type: An official service-type or alias. :returns str: The OpenStack project name or None if there is no match. """ service = self.get_service_data(service_type) if service: return service['project'] return None def get_service_data_for_project(self, project_name): """Return the service information associated with a project. :param name: A repository or project name in the form ``'openstack/{project}'`` or just ``'{project}'``. :type name: str :raises ValueError: If project_name is None :returns: dict or None if not found """ project_name = self._canonical_project_name(project_name) return self.primary_service_by_project.get(project_name) def get_all_service_data_for_project(self, project_name): """Return the information for every service associated with a project. :param name: A repository or project name in the form ``'openstack/{project}'`` or just ``'{project}'``. :type name: str :raises ValueError: If project_name is None :returns: list of dicts """ data = [] for service_type in self.service_types_by_project.get( project_name, []): data.append(self.get_service_data(service_type)) return data os-service-types-1.1.0/os_service_types/data/0000775000175000017500000000000013145333404022356 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/os_service_types/data/__init__.py0000664000175000017500000000146413145333204024472 0ustar jenkinsjenkins00000000000000# Copyright 2017 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. __all__ = ['read_data'] import json import os DATA_DIR = os.path.dirname(__file__) def read_data(filename): """Return data that is shipped inside the python package.""" return json.load(open(os.path.join(DATA_DIR, filename), 'r')) os-service-types-1.1.0/os_service_types/data/service-types.json0000664000175000017500000005133213145333204026055 0ustar jenkinsjenkins00000000000000{ "services": [ { "project": "keystone", "api_reference": "https://developer.openstack.org/api-ref/identity/", "service_type": "identity" }, { "project": "nova", "api_reference": "https://developer.openstack.org/api-ref/compute/", "service_type": "compute" }, { "project": "glance", "api_reference": "https://developer.openstack.org/api-ref/image/", "service_type": "image" }, { "project": "octavia", "api_reference": "https://developer.openstack.org/api-ref/load-balancer/", "service_type": "load-balancer" }, { "project": "swift", "api_reference": "https://developer.openstack.org/api-ref/object-storage/", "service_type": "object-store" }, { "project": "senlin", "api_reference": "https://developer.openstack.org/api-ref/clustering/", "service_type": "clustering", "aliases": [ "resource-cluster" ] }, { "project": "sahara", "api_reference": "https://developer.openstack.org/api-ref/data-processing/", "service_type": "data-processing" }, { "project": "ironic", "api_reference": "https://developer.openstack.org/api-ref/baremetal/", "service_type": "baremetal" }, { "project": "ironic-inspector", "api_reference": "https://docs.openstack.org/developer/ironic-inspector/http-api.html", "service_type": "baremetal-introspection" }, { "project": "barbican", "api_reference": "https://developer.openstack.org/api-ref/key-manager/", "service_type": "key-manager" }, { "project": "ec2-api", "api_reference": "https://developer.openstack.org/api-ref/ec2-api/", "service_type": "ec2-api" }, { "project": "watcher", "api_reference": "https://docs.openstack.org/developer/watcher/webapi/v1.html", "service_type": "resource-optimization", "aliases": [ "infra-optim" ] }, { "project": "zaqar", "api_reference": "https://developer.openstack.org/api-ref/messaging/", "service_type": "message", "aliases": [ "messaging" ] }, { "project": "murano", "api_reference": "https://developer.openstack.org/api-ref/application-catalog/", "service_type": "application-catalog" }, { "project": "magnum", "api_reference": "https://developer.openstack.org/api-ref/container-infrastructure-management/", "service_type": "container-infrastructure-management", "aliases": [ "container-infrastructure" ] }, { "project": "searchlight", "api_reference": "https://developer.openstack.org/api-ref/search/", "service_type": "search" }, { "project": "designate", "api_reference": "https://developer.openstack.org/api-ref/dns/", "service_type": "dns" }, { "project": "mistral", "api_reference": "https://docs.openstack.org/developer/mistral/developer/webapi/index.html", "service_type": "workflow", "aliases": [ "workflowv2" ] }, { "project": "cloudkitty", "api_reference": "https://docs.openstack.org/developer/cloudkitty/webapi/root.html", "service_type": "rating" }, { "project": "congress", "api_reference": "https://docs.openstack.org/developer/congress/api.html", "service_type": "operator-policy", "aliases": [ "policy" ] }, { "project": "manila", "api_reference": "https://developer.openstack.org/api-ref/shared-file-systems/", "service_type": "shared-file-system", "aliases": [ "sharev2", "share" ] }, { "project": "karbor", "api_reference": "https://developer.openstack.org/api-ref/data-protection-orchestration/", "service_type": "data-protection-orchestration" }, { "project": "heat", "api_reference": "https://developer.openstack.org/api-ref/orchestration/", "service_type": "orchestration" }, { "project": "cinder", "api_reference": "https://developer.openstack.org/api-ref/block-storage/", "service_type": "block-storage", "aliases": [ "volumev3", "volumev2", "volume" ] }, { "project": "aodh", "api_reference": "https://docs.openstack.org/developer/aodh/webapi/index.html", "service_type": "alarm", "aliases": [ "alarming" ] }, { "project": "ceilometer", "api_reference": "https://docs.openstack.org/developer/ceilometer/webapi/index.html", "service_type": "meter", "aliases": [ "metering" ] }, { "project": "panko", "api_reference": "https://docs.openstack.org/developer/panko/webapi/index.html", "service_type": "event", "aliases": [ "events" ] }, { "project": "solum", "api_reference": "https://docs.openstack.org/developer/solum/develop_applications/webapi/index.html", "service_type": "application-deployment", "aliases": [ "application_deployment" ] }, { "project": "tricircle", "api_reference": "https://docs.openstack.org/developer/tricircle/api_v1.html", "service_type": "multi-region-network-automation", "aliases": [ "tricircle" ] }, { "project": "trove", "api_reference": "https://developer.openstack.org/api-ref/database/", "service_type": "database" }, { "project": "zun", "api_reference": "https://git.openstack.org/cgit/openstack/zun/tree/api-ref/source", "service_type": "application-container", "aliases": [ "container" ] }, { "project": "vitrage", "api_reference": "https://docs.openstack.org/developer/vitrage/vitrage-api.html", "service_type": "root-cause-analysis", "aliases": [ "rca" ] }, { "project": "tacker", "api_reference": "https://developer.openstack.org/api-ref/nfv-orchestration/", "service_type": "nfv-orchestration" }, { "project": "neutron", "api_reference": "https://developer.openstack.org/api-ref/networking/", "service_type": "network", "api_reference_project": "neutron-lib" }, { "project": "freezer-api", "api_reference": "https://developer.openstack.org/api-ref/backup/", "service_type": "backup" }, { "project": "monasca-log-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring-log-api/", "service_type": "monitoring-logging", "aliases": [ "monitoring-log-api" ] }, { "project": "monasca-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring/", "service_type": "monitoring" }, { "project": "monasca-events-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring-events-api/", "service_type": "monitoring-events" }, { "api_reference": "https://developer.openstack.org/api-ref/placement/", "project": "nova", "secondary": true, "service_type": "placement" } ], "reverse": { "messaging": "message", "resource-cluster": "clustering", "container": "application-container", "application_deployment": "application-deployment", "volumev3": "block-storage", "tricircle": "multi-region-network-automation", "monitoring-log-api": "monitoring-logging", "alarming": "alarm", "metering": "meter", "policy": "operator-policy", "infra-optim": "resource-optimization", "events": "event", "rca": "root-cause-analysis", "volumev2": "block-storage", "workflowv2": "workflow", "sharev2": "shared-file-system", "share": "shared-file-system", "container-infrastructure": "container-infrastructure-management", "volume": "block-storage" }, "service_types_by_project": { "tricircle": [ "multi-region-network-automation" ], "monasca-log-api": [ "monitoring-logging" ], "ironic-inspector": [ "baremetal-introspection" ], "cloudkitty": [ "rating" ], "ironic": [ "baremetal" ], "senlin": [ "clustering" ], "vitrage": [ "root-cause-analysis" ], "manila": [ "shared-file-system" ], "sahara": [ "data-processing" ], "freezer-api": [ "backup" ], "neutron-lib": [ "network" ], "trove": [ "database" ], "monasca-events-api": [ "monitoring-events" ], "aodh": [ "alarm" ], "designate": [ "dns" ], "barbican": [ "key-manager" ], "congress": [ "operator-policy" ], "searchlight": [ "search" ], "zaqar": [ "message" ], "tacker": [ "nfv-orchestration" ], "magnum": [ "container-infrastructure-management" ], "ec2-api": [ "ec2-api" ], "heat": [ "orchestration" ], "glance": [ "image" ], "karbor": [ "data-protection-orchestration" ], "murano": [ "application-catalog" ], "ceilometer": [ "meter" ], "nova": [ "compute", "placement" ], "solum": [ "application-deployment" ], "monasca-api": [ "monitoring" ], "zun": [ "application-container" ], "watcher": [ "resource-optimization" ], "keystone": [ "identity" ], "cinder": [ "block-storage" ], "mistral": [ "workflow" ], "neutron": [ "network" ], "swift": [ "object-store" ], "octavia": [ "load-balancer" ], "panko": [ "event" ] }, "primary_service_by_project": { "tricircle": { "project": "tricircle", "api_reference": "https://docs.openstack.org/developer/tricircle/api_v1.html", "service_type": "multi-region-network-automation", "aliases": [ "tricircle" ] }, "monasca-log-api": { "project": "monasca-log-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring-log-api/", "service_type": "monitoring-logging", "aliases": [ "monitoring-log-api" ] }, "ironic-inspector": { "project": "ironic-inspector", "api_reference": "https://docs.openstack.org/developer/ironic-inspector/http-api.html", "service_type": "baremetal-introspection" }, "cloudkitty": { "project": "cloudkitty", "api_reference": "https://docs.openstack.org/developer/cloudkitty/webapi/root.html", "service_type": "rating" }, "ironic": { "project": "ironic", "api_reference": "https://developer.openstack.org/api-ref/baremetal/", "service_type": "baremetal" }, "senlin": { "project": "senlin", "api_reference": "https://developer.openstack.org/api-ref/clustering/", "service_type": "clustering", "aliases": [ "resource-cluster" ] }, "vitrage": { "project": "vitrage", "api_reference": "https://docs.openstack.org/developer/vitrage/vitrage-api.html", "service_type": "root-cause-analysis", "aliases": [ "rca" ] }, "manila": { "project": "manila", "api_reference": "https://developer.openstack.org/api-ref/shared-file-systems/", "service_type": "shared-file-system", "aliases": [ "sharev2", "share" ] }, "sahara": { "project": "sahara", "api_reference": "https://developer.openstack.org/api-ref/data-processing/", "service_type": "data-processing" }, "freezer-api": { "project": "freezer-api", "api_reference": "https://developer.openstack.org/api-ref/backup/", "service_type": "backup" }, "neutron-lib": { "project": "neutron", "api_reference": "https://developer.openstack.org/api-ref/networking/", "service_type": "network", "api_reference_project": "neutron-lib" }, "trove": { "project": "trove", "api_reference": "https://developer.openstack.org/api-ref/database/", "service_type": "database" }, "monasca-events-api": { "project": "monasca-events-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring-events-api/", "service_type": "monitoring-events" }, "aodh": { "project": "aodh", "api_reference": "https://docs.openstack.org/developer/aodh/webapi/index.html", "service_type": "alarm", "aliases": [ "alarming" ] }, "designate": { "project": "designate", "api_reference": "https://developer.openstack.org/api-ref/dns/", "service_type": "dns" }, "barbican": { "project": "barbican", "api_reference": "https://developer.openstack.org/api-ref/key-manager/", "service_type": "key-manager" }, "congress": { "project": "congress", "api_reference": "https://docs.openstack.org/developer/congress/api.html", "service_type": "operator-policy", "aliases": [ "policy" ] }, "searchlight": { "project": "searchlight", "api_reference": "https://developer.openstack.org/api-ref/search/", "service_type": "search" }, "zaqar": { "project": "zaqar", "api_reference": "https://developer.openstack.org/api-ref/messaging/", "service_type": "message", "aliases": [ "messaging" ] }, "tacker": { "project": "tacker", "api_reference": "https://developer.openstack.org/api-ref/nfv-orchestration/", "service_type": "nfv-orchestration" }, "magnum": { "project": "magnum", "api_reference": "https://developer.openstack.org/api-ref/container-infrastructure-management/", "service_type": "container-infrastructure-management", "aliases": [ "container-infrastructure" ] }, "ec2-api": { "project": "ec2-api", "api_reference": "https://developer.openstack.org/api-ref/ec2-api/", "service_type": "ec2-api" }, "heat": { "project": "heat", "api_reference": "https://developer.openstack.org/api-ref/orchestration/", "service_type": "orchestration" }, "glance": { "project": "glance", "api_reference": "https://developer.openstack.org/api-ref/image/", "service_type": "image" }, "karbor": { "project": "karbor", "api_reference": "https://developer.openstack.org/api-ref/data-protection-orchestration/", "service_type": "data-protection-orchestration" }, "murano": { "project": "murano", "api_reference": "https://developer.openstack.org/api-ref/application-catalog/", "service_type": "application-catalog" }, "ceilometer": { "project": "ceilometer", "api_reference": "https://docs.openstack.org/developer/ceilometer/webapi/index.html", "service_type": "meter", "aliases": [ "metering" ] }, "nova": { "project": "nova", "api_reference": "https://developer.openstack.org/api-ref/compute/", "service_type": "compute" }, "solum": { "project": "solum", "api_reference": "https://docs.openstack.org/developer/solum/develop_applications/webapi/index.html", "service_type": "application-deployment", "aliases": [ "application_deployment" ] }, "monasca-api": { "project": "monasca-api", "api_reference": "https://developer.openstack.org/api-ref/monitoring/", "service_type": "monitoring" }, "zun": { "project": "zun", "api_reference": "https://git.openstack.org/cgit/openstack/zun/tree/api-ref/source", "service_type": "application-container", "aliases": [ "container" ] }, "watcher": { "project": "watcher", "api_reference": "https://docs.openstack.org/developer/watcher/webapi/v1.html", "service_type": "resource-optimization", "aliases": [ "infra-optim" ] }, "keystone": { "project": "keystone", "api_reference": "https://developer.openstack.org/api-ref/identity/", "service_type": "identity" }, "cinder": { "project": "cinder", "api_reference": "https://developer.openstack.org/api-ref/block-storage/", "service_type": "block-storage", "aliases": [ "volumev3", "volumev2", "volume" ] }, "mistral": { "project": "mistral", "api_reference": "https://docs.openstack.org/developer/mistral/developer/webapi/index.html", "service_type": "workflow", "aliases": [ "workflowv2" ] }, "neutron": { "project": "neutron", "api_reference": "https://developer.openstack.org/api-ref/networking/", "service_type": "network", "api_reference_project": "neutron-lib" }, "swift": { "project": "swift", "api_reference": "https://developer.openstack.org/api-ref/object-storage/", "service_type": "object-store" }, "octavia": { "project": "octavia", "api_reference": "https://developer.openstack.org/api-ref/load-balancer/", "service_type": "load-balancer" }, "panko": { "project": "panko", "api_reference": "https://docs.openstack.org/developer/panko/webapi/index.html", "service_type": "event", "aliases": [ "events" ] } }, "version": "2017-08-17T14:25:08.515079", "sha": "e9b1b4a14ac74c44a2d145072ca195d34766a5e5", "forward": { "application-deployment": [ "application_deployment" ], "multi-region-network-automation": [ "tricircle" ], "monitoring-logging": [ "monitoring-log-api" ], "root-cause-analysis": [ "rca" ], "alarm": [ "alarming" ], "application-container": [ "container" ], "block-storage": [ "volumev3", "volumev2", "volume" ], "workflow": [ "workflowv2" ], "event": [ "events" ], "meter": [ "metering" ], "clustering": [ "resource-cluster" ], "shared-file-system": [ "sharev2", "share" ], "operator-policy": [ "policy" ], "container-infrastructure-management": [ "container-infrastructure" ], "resource-optimization": [ "infra-optim" ], "message": [ "messaging" ] }, "all_types_by_service_type": { "application-catalog": [ "application-catalog" ], "multi-region-network-automation": [ "multi-region-network-automation", "tricircle" ], "monitoring-logging": [ "monitoring-logging", "monitoring-log-api" ], "nfv-orchestration": [ "nfv-orchestration" ], "application-container": [ "application-container", "container" ], "rating": [ "rating" ], "workflow": [ "workflow", "workflowv2" ], "compute": [ "compute" ], "dns": [ "dns" ], "network": [ "network" ], "clustering": [ "clustering", "resource-cluster" ], "orchestration": [ "orchestration" ], "shared-file-system": [ "shared-file-system", "sharev2", "share" ], "operator-policy": [ "operator-policy", "policy" ], "identity": [ "identity" ], "container-infrastructure-management": [ "container-infrastructure-management", "container-infrastructure" ], "monitoring-events": [ "monitoring-events" ], "message": [ "message", "messaging" ], "monitoring": [ "monitoring" ], "baremetal": [ "baremetal" ], "image": [ "image" ], "load-balancer": [ "load-balancer" ], "data-processing": [ "data-processing" ], "placement": [ "placement" ], "baremetal-introspection": [ "baremetal-introspection" ], "root-cause-analysis": [ "root-cause-analysis", "rca" ], "alarm": [ "alarm", "alarming" ], "block-storage": [ "block-storage", "volumev3", "volumev2", "volume" ], "application-deployment": [ "application-deployment", "application_deployment" ], "backup": [ "backup" ], "data-protection-orchestration": [ "data-protection-orchestration" ], "key-manager": [ "key-manager" ], "event": [ "event", "events" ], "meter": [ "meter", "metering" ], "object-store": [ "object-store" ], "database": [ "database" ], "ec2-api": [ "ec2-api" ], "resource-optimization": [ "resource-optimization", "infra-optim" ], "search": [ "search" ] } } os-service-types-1.1.0/os_service_types/exc.py0000664000175000017500000000214013145333204022571 0ustar jenkinsjenkins00000000000000# Copyright 2017 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. __all__ = ['warn', 'AliasUsageWarning'] import textwrap import warnings def warn(warning, **kwargs): """Emit a warning that has builtin message text.""" message = textwrap.fill(textwrap.dedent(warning.details.format(**kwargs))) warnings.warn(message, category=warning) class AliasUsageWarning(Warning): """Use of historical service-type aliases is discouraged.""" details = """ Requested service_type {given} is an old alias. Please update your code to reference the official service_type {official}. """ os-service-types-1.1.0/os_service_types/tests/0000775000175000017500000000000013145333404022607 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/os_service_types/tests/test_remote.py0000664000175000017500000000331113145333204025507 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ test_remote ----------- Tests for `ServiceTypes` class remote data. oslotest sets up a TempHomeDir for us, so there should be no ~/.cache files available in these tests. """ from requests_mock.contrib import fixture as rm_fixture from testscenarios import load_tests_apply_scenarios as load_tests # noqa import os_service_types import os_service_types.service_types from os_service_types.tests import base class TestRemote(base.TestCase, base.ServiceDataMixin): def setUp(self): super(TestRemote, self).setUp() # Set up a requests_mock fixture for all HTTP traffic adapter = self.useFixture(rm_fixture.Fixture()) adapter.register_uri( 'GET', os_service_types.service_types.SERVICE_TYPES_URL, json=self.remote_content, headers={'etag': self.getUniqueString('etag')}) # Make an object that fetches from the network self.service_types = os_service_types.ServiceTypes( session=self.session) self.assertEqual(1, len(adapter.request_history)) def test_remote_version(self): self.assertEqual(self.remote_version, self.service_types.version) os-service-types-1.1.0/os_service_types/tests/test_builtin.py0000664000175000017500000000232513145333204025666 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ test_builtin ------------ Tests for `ServiceTypes` class builtin data. oslotest sets up a TempHomeDir for us, so there should be no ~/.cache files available in these tests. """ from testscenarios import load_tests_apply_scenarios as load_tests # noqa import os_service_types from os_service_types.tests import base class TestBuiltin(base.TestCase, base.ServiceDataMixin): def setUp(self): super(TestBuiltin, self).setUp() # Make an object with no network access self.service_types = os_service_types.ServiceTypes() def test_builtin_version(self): self.assertEqual(self.builtin_version, self.service_types.version) os-service-types-1.1.0/os_service_types/tests/test_match.py0000664000175000017500000000410313145333204025310 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ test_match ---------- Tests for is_match logic oslotest sets up a TempHomeDir for us, so there should be no ~/.cache files available in these tests. """ from testscenarios import load_tests_apply_scenarios as load_tests # noqa import os_service_types from os_service_types.tests import base class TestMatch(base.TestCase): scenarios = [ ('match-official', dict( requested='compute', found='compute', is_match=True)), ('direct-match-unknown', dict( requested='unknown', found='unknown', is_match=True)), ('volumev2-finds-block', dict( requested='volumev2', found='block-storage', is_match=True)), ('volumev3-finds-block', dict( requested='volumev3', found='block-storage', is_match=True)), ('block-finds-volumev2', dict( requested='block-storage', found='volumev2', is_match=True)), ('block-finds-volumev3', dict( requested='block-storage', found='volumev3', is_match=True)), ('volumev2-not-volumev3', dict( requested='volumev2', found='volumev3', is_match=False)), ('non-match', dict( requested='unknown', found='compute', is_match=False)), ] def setUp(self): super(TestMatch, self).setUp() # Make an object with no network access self.service_types = os_service_types.ServiceTypes() def test_is_match(self): self.assertEqual( self.is_match, self.service_types.is_match(self.requested, self.found)) os-service-types-1.1.0/os_service_types/tests/test_warn.py0000664000175000017500000000416113145333204025167 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ test_warn --------- Tests for warnings """ import warnings import os_service_types from os_service_types import exc from os_service_types.tests import base class TestWarnOn(base.TestCase): def setUp(self): super(TestWarnOn, self).setUp() # Cause all warnings to always be triggered. warnings.simplefilter("always") self.service_types = os_service_types.ServiceTypes(warn=True) def test_warning_emitted_on_alias(self): with warnings.catch_warnings(record=True) as w: self.service_types.get_service_type('volumev2') self.assertEqual(1, len(w)) self.assertTrue(issubclass(w[-1].category, exc.AliasUsageWarning)) def test_warning_not_emitted_on_official(self): with warnings.catch_warnings(record=True) as w: self.service_types.get_service_type('block-storage') self.assertEqual(0, len(w)) class TestWarnOff(base.TestCase): def setUp(self): super(TestWarnOff, self).setUp() # Cause all warnings to always be triggered. warnings.simplefilter("always") self.service_types = os_service_types.ServiceTypes() def test_warning_not_emitted_on_alias(self): with warnings.catch_warnings(record=True) as w: self.service_types.get_service_type('volumev2') self.assertEqual(0, len(w)) def test_warning_not_emitted_on_official(self): with warnings.catch_warnings(record=True) as w: self.service_types.get_service_type('block-storage') self.assertEqual(0, len(w)) os-service-types-1.1.0/os_service_types/tests/__init__.py0000664000175000017500000000000013145333204024704 0ustar jenkinsjenkins00000000000000os-service-types-1.1.0/os_service_types/tests/base.py0000664000175000017500000002152613145333204024077 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Copyright 2010-2011 OpenStack Foundation # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import copy import datetime import keystoneauth1.session from oslotest import base import os_service_types.service_types class TestCase(base.BaseTestCase): """Base test case class before singleton protection is added.""" def setUp(self): super(TestCase, self).setUp() # use keystoneauth1 to get a Sessiom with no auth information self.session = keystoneauth1.session.Session() self.builtin_content = os_service_types.service_types.BUILTIN_DATA self.builtin_version = self.builtin_content['version'] # Set up copies of the data so that we can verify that we got the # copy of it we think we should. self.remote_version = datetime.datetime.utcnow().isoformat() self.remote_content = copy.deepcopy(self.builtin_content) self.remote_content['version'] = self.remote_version class ServiceDataMixin(object): scenarios = [ ('compute', dict( service_type='compute', official='compute', aliases=[], all_types=['compute'], api_reference='compute', api_reference_project=None, is_secondary=False, all_services=['compute', 'placement'], is_known=True, is_alias=False, is_official=True, project='nova')), ('volumev2', dict( service_type='volumev2', official='block-storage', aliases=[], all_types=['block-storage', 'volumev3', 'volumev2', 'volume'], api_reference='block-storage', api_reference_project=None, is_known=True, is_alias=True, is_official=False, is_secondary=False, all_services=['block-storage'], project='cinder')), ('volumev3', dict( service_type='volumev3', official='block-storage', aliases=[], all_types=['block-storage', 'volumev3', 'volumev2', 'volume'], api_reference='block-storage', api_reference_project=None, is_known=True, is_alias=True, is_official=False, is_secondary=False, all_services=['block-storage'], project='cinder')), ('block-storage', dict( service_type='block-storage', official='block-storage', all_types=['block-storage', 'volumev3', 'volumev2', 'volume'], api_reference='block-storage', api_reference_project=None, aliases=['volumev3', 'volumev2', 'volume'], is_known=True, is_alias=False, is_official=True, is_secondary=False, all_services=['block-storage'], project='cinder')), ('network', dict( service_type='network', official='network', aliases=[], all_types=['network'], api_reference='networking', api_reference_project='neutron-lib', is_known=True, is_alias=False, is_official=True, is_secondary=False, all_services=['network'], project='neutron')), ('placement', dict( service_type='placement', official='placement', aliases=[], all_types=['placement'], all_services=['compute', 'placement'], api_reference='placement', api_reference_project=None, is_known=True, is_alias=False, is_official=True, is_secondary=True, project='nova')), ('missing', dict( service_type='missing', official=None, aliases=[], all_services=[], all_types=['missing'], api_reference=None, api_reference_project=None, is_known=False, is_alias=False, is_official=False, is_secondary=False, project=None)), ] def test_get_service_type(self): if self.official: self.assertEqual( self.official, self.service_types.get_service_type(self.service_type)) else: self.assertIsNone( self.service_types.get_service_type(self.service_type)) def test_get_aliases(self): self.assertEqual( self.aliases, self.service_types.get_aliases(self.service_type)) def test_is_known(self): self.assertEqual( self.is_known, self.service_types.is_known(self.service_type)) def test_is_alias(self): self.assertEqual( self.is_alias, self.service_types.is_alias(self.service_type)) def test_is_official(self): self.assertEqual( self.is_official, self.service_types.is_official(self.service_type)) def test_get_project_name(self): self.assertEqual( self.project, self.service_types.get_project_name(self.service_type)) def test_get_service_data(self): service_data = self.service_types.get_service_data(self.service_type) # TODO(mordred) Once all the docs have been aligned, remove # self.api_reference and replace with self.service_type api_url = 'https://developer.openstack.org/api-ref/{api_reference}/' # Tests self.official here, since we expect to get data back for all # official projects, regardless of service_type being an alias or not if not self.official: self.assertIsNone(service_data) else: self.assertIsNotNone(service_data) self.assertEqual(self.project, service_data['project']) self.assertEqual(self.official, service_data['service_type']) self.assertEqual( api_url.format(api_reference=self.api_reference), service_data['api_reference']) def test_get_official_service_data(self): service_data = self.service_types.get_official_service_data( self.service_type) # TODO(mordred) Once all the docs have been aligned, remove # self.api_reference and replace with self.service_type api_url = 'https://developer.openstack.org/api-ref/{api_reference}/' # Tests self.is_official here, since we expect only get data back for # official projects. if not self.is_official: self.assertIsNone(service_data) else: self.assertIsNotNone(service_data) self.assertEqual(self.project, service_data['project']) self.assertEqual(self.official, service_data['service_type']) self.assertEqual( api_url.format(api_reference=self.api_reference), service_data['api_reference']) def test_empty_project_error(self): if not self.project: self.assertRaises( ValueError, self.service_types.get_service_data_for_project, self.project) def test_get_service_data_for_project(self): if self.is_secondary: self.skipTest("Secondary services have no project mapping") return elif not self.project: self.skipTest("Empty project is invalid but tested elsewhere.") return service_data = self.service_types.get_service_data_for_project( self.project) # TODO(mordred) Once all the docs have been aligned, remove # self.api_reference and replace with self.service_type api_url = 'https://developer.openstack.org/api-ref/{api_reference}/' self.assertIsNotNone(service_data) if self.api_reference_project: self.assertEqual( self.api_reference_project, service_data['api_reference_project']) else: self.assertEqual(self.project, service_data['project']) self.assertEqual(self.official, service_data['service_type']) self.assertEqual( api_url.format(api_reference=self.api_reference), service_data['api_reference']) def test_get_all_types(self): self.assertEqual( self.all_types, self.service_types.get_all_types(self.service_type)) def test_all_get_service_data_for_project(self): if not self.project: self.skipTest("Empty project is invalid but tested elsewhere.") return all_data = self.service_types.get_all_service_data_for_project( self.project) for (index, data) in enumerate(all_data): self.assertEqual( data, self.service_types.get_service_data(self.all_services[index])) os-service-types-1.1.0/os_service_types/__init__.py0000664000175000017500000000141513145333204023555 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. __all__ = ['__version__', 'ServiceTypes'] import pbr.version from os_service_types.service_types import ServiceTypes # flake8: noqa __version__ = pbr.version.VersionInfo('os-service-types').version_string() os-service-types-1.1.0/.coveragerc0000664000175000017500000000011513145333204020174 0ustar jenkinsjenkins00000000000000[run] branch = True source = os_service_types [report] ignore_errors = True os-service-types-1.1.0/HACKING.rst0000664000175000017500000000025013145333204017651 0ustar jenkinsjenkins00000000000000os-service-types Style Commandments =============================================== Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ os-service-types-1.1.0/LICENSE0000664000175000017500000002363713145333204017076 0ustar jenkinsjenkins00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. os-service-types-1.1.0/AUTHORS0000664000175000017500000000023513145333403017127 0ustar jenkinsjenkins00000000000000Colleen Murphy Eric Fried Monty Taylor OpenStack Release Bot os-service-types-1.1.0/doc/0000775000175000017500000000000013145333404016625 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/0000775000175000017500000000000013145333404020125 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/reference/0000775000175000017500000000000013145333404022063 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/reference/index.rst0000664000175000017500000000030313145333204023716 0ustar jenkinsjenkins00000000000000============= API Reference ============= .. module:: os_service_types :synopsis: OpenStack Service Types Data .. autoclass:: os_service_types.ServiceTypes :members: :inherited-members: os-service-types-1.1.0/doc/source/readme.rst0000664000175000017500000000003613145333204022111 0ustar jenkinsjenkins00000000000000.. include:: ../../README.rst os-service-types-1.1.0/doc/source/index.rst0000664000175000017500000000102113145333204021756 0ustar jenkinsjenkins00000000000000.. os-service-types documentation master file, created by sphinx-quickstart on Tue Jul 9 22:26:36 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to os-service-types's documentation! ======================================================== Contents: .. toctree:: :maxdepth: 2 readme install/index library/index contributor/index reference/index Indices and tables ================== * :ref:`genindex` * :ref:`search` os-service-types-1.1.0/doc/source/library/0000775000175000017500000000000013145333404021571 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/library/index.rst0000664000175000017500000000134513145333204023433 0ustar jenkinsjenkins00000000000000===== Usage ===== The most basic use of `os-service-types` in a project: .. code-block:: python import os_service_types service_types = os_service_types.ServiceTypes() However, `os-service-types` expects to be able to fetch remote data, so it's better to pass in a ``Session`` object. Both :class:`requests.sessions.Session` and :class:`keystoneauth1.session.Session` objects are supported. A :class:`keystoneauth1.session.Session` object does not need auth information attached, although it will not break anything if it does. .. code-block:: python import keystoneauth1.session import os_service_types session = keystoneauth1.session.Session() service_types = os_service_types.ServiceTypes(session=session) os-service-types-1.1.0/doc/source/contributor/0000775000175000017500000000000013145333404022477 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/contributor/contributing.rst0000664000175000017500000000011613145333204025734 0ustar jenkinsjenkins00000000000000============ Contributing ============ .. include:: ../../../CONTRIBUTING.rst os-service-types-1.1.0/doc/source/contributor/index.rst0000664000175000017500000000020313145333204024331 0ustar jenkinsjenkins00000000000000=========================== Contributor Documentation =========================== .. toctree:: :maxdepth: 2 contributing os-service-types-1.1.0/doc/source/conf.py0000775000175000017500000000513513145333204021431 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import os import sys sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', 'openstackdocstheme', #'sphinx.ext.intersphinx', ] # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable # The suffix of source filenames. source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = u'os-service-types' copyright = u'2017, OpenStack Developers' # openstackdocstheme options repository_name = 'openstack/os-service-types' bug_project = '904' bug_tag = '' html_last_updated_fmt = '%Y-%m-%d %H:%M' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] # html_theme = '_theme' # html_static_path = ['static'] html_theme = 'openstackdocs' # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto/manual]). latex_documents = [ ('index', '%s.tex' % project, u'%s Documentation' % project, u'OpenStack Foundation', 'manual'), ] # Example configuration for intersphinx: refer to the Python standard library. #intersphinx_mapping = {'http://docs.python.org/': None} os-service-types-1.1.0/doc/source/install/0000775000175000017500000000000013145333404021573 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/doc/source/install/index.rst0000664000175000017500000000033113145333204023427 0ustar jenkinsjenkins00000000000000============ Installation ============ At the command line:: $ pip install os-service-types Or, if you have virtualenvwrapper installed:: $ mkvirtualenv os-service-types $ pip install os-service-types os-service-types-1.1.0/.testr.conf0000664000175000017500000000047713145333204020154 0ustar jenkinsjenkins00000000000000[DEFAULT] test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list os-service-types-1.1.0/tox.ini0000664000175000017500000000176613145333204017403 0ustar jenkinsjenkins00000000000000[tox] minversion = 2.0 envlist = py35,py27,pep8 skipsdist = True [testenv] usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning CLIENT_NAME=os-service-types deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] commands = flake8 {posargs} [testenv:venv] commands = {posargs} [testenv:cover] commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:debug] commands = oslo_debug_helper {posargs} [flake8] show-source = True builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build os-service-types-1.1.0/releasenotes/0000775000175000017500000000000013145333404020551 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/notes/0000775000175000017500000000000013145333404021701 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/notes/.placeholder0000664000175000017500000000000013145333204024150 0ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/notes/add-service-types-class-574caf54f7461163.yaml0000664000175000017500000000025213145333204031277 0ustar jenkinsjenkins00000000000000--- features: - Added ServiceTypes class, which is the primary entry point for Python developers who need access to the OpenStack Service Types Authority data. os-service-types-1.1.0/releasenotes/source/0000775000175000017500000000000013145333404022051 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/source/_static/0000775000175000017500000000000013145333404023477 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/source/_static/.placeholder0000664000175000017500000000000013145333204025746 0ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/source/index.rst0000664000175000017500000000025713145333204023714 0ustar jenkinsjenkins00000000000000============================================ os_service_types Release Notes ============================================ .. toctree:: :maxdepth: 1 unreleased pike os-service-types-1.1.0/releasenotes/source/conf.py0000664000175000017500000002176213145333204023356 0ustar jenkinsjenkins00000000000000# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'openstackdocstheme', 'reno.sphinxext', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. # source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'os-service-types Release Notes' copyright = u'2017, OpenStack Developers' # openstackdocstheme options repository_name = 'openstack/os-service-types' bug_project = '904' bug_tag = '' html_last_updated_fmt = '%Y-%m-%d %H:%M' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. # The full version, including alpha/beta/rc tags. release = '' # The short X.Y version. version = '' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all # documents. # default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. # add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). # add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. # show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. # modindex_common_prefix = [] # If true, keep warnings as "system message" paragraphs in the built documents. # keep_warnings = False # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'openstackdocs' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". # html_title = None # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. # html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. # html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. # html_extra_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. # html_use_smartypants = True # Custom sidebar templates, maps document names to template names. # html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. # html_additional_pages = {} # If false, no module index is generated. # html_domain_indices = True # If false, no index is generated. # html_use_index = True # If true, the index is split into individual pages for each letter. # html_split_index = False # If true, links to the reST sources are added to the pages. # html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. # html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. # html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. # html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). # html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'os_service_typesReleaseNotesdoc' # -- Options for LaTeX output --------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # 'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'os_service_typesReleaseNotes.tex', u'os_service_types Release Notes Documentation', u'OpenStack Foundation', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. # latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. # latex_use_parts = False # If true, show page references after internal links. # latex_show_pagerefs = False # If true, show URL addresses after external links. # latex_show_urls = False # Documents to append as an appendix to all manuals. # latex_appendices = [] # If false, no module index is generated. # latex_domain_indices = True # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'os_service_typesrereleasenotes', u'os_service_types Release Notes Documentation', [u'OpenStack Developers'], 1) ] # If true, show URL addresses after external links. # man_show_urls = False # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'os_service_types ReleaseNotes', u'os_service_types Release Notes Documentation', u'OpenStack Developers', 'os_service_typesReleaseNotes', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. # texinfo_appendices = [] # If false, no module index is generated. # texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. # texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. # texinfo_no_detailmenu = False # -- Options for Internationalization output ------------------------------ locale_dirs = ['locale/'] os-service-types-1.1.0/releasenotes/source/unreleased.rst0000664000175000017500000000016013145333204024725 0ustar jenkinsjenkins00000000000000============================== Current Series Release Notes ============================== .. release-notes:: os-service-types-1.1.0/releasenotes/source/pike.rst0000664000175000017500000000021713145333204023531 0ustar jenkinsjenkins00000000000000=================================== Pike Series Release Notes =================================== .. release-notes:: :branch: stable/pike os-service-types-1.1.0/releasenotes/source/_templates/0000775000175000017500000000000013145333404024206 5ustar jenkinsjenkins00000000000000os-service-types-1.1.0/releasenotes/source/_templates/.placeholder0000664000175000017500000000000013145333204026455 0ustar jenkinsjenkins00000000000000