Compare commits

...

49 Commits

Author SHA1 Message Date
03ecab9755 Rename tox target for pdf build
All checks were successful
gl/check check status: success (03ecab9755562d7f4efc3c3b914b787c73a48eb8)
zuul jobs require target to be called pdf-docs instead of docs-pdf
2023-03-23 12:37:25 +01:00
ec59663c39 Include pdf filenames into zuul config
Zuul jobs expect to know PDF filenames to be fetching from artifacts.
Best way is to include them into the project config while managing zuul
config.
2023-03-23 12:37:25 +01:00
b52b0bb5e0 Change html_link for PFS and Perms Guide
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-03-13 14:42:24 +00:00
ccfbd0c235 dli_repo
Reviewed-by: Gode, Sebastian <sebastian.gode@telekom.de>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-03-10 12:43:56 +00:00
28baf2213e Update 'tools-requirements.txt'
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@telekom.de>
Co-committed-by: Gode, Sebastian <sebastian.gode@telekom.de>
2023-03-10 11:39:44 +00:00
6779395a19 pfs_folder_fix
Reviewed-by: Gode, Sebastian <sebastian.gode@telekom.de>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-03-08 11:47:21 +00:00
4e34a4fa80 adding new documentation type for OBS
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-22 08:56:11 +00:00
c037ca9a53 Fixed spelling of MapReduce Service
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@telekom.de>
Co-committed-by: Gode, Sebastian <sebastian.gode@telekom.de>
2023-02-21 10:46:34 +00:00
8de5c8ba57 add get_service_with_docs_by_service_type()
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-02-21 10:44:51 +00:00
e06e27d0e0 add PLAS title
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-02-21 08:41:44 +00:00
148e88184e change Cloud Container Service to Engine
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-02-21 07:21:58 +00:00
dd76d849f0 disabling visibility of ddm and cci services
Reviewed-by: vladimirhasko <vladimirhasko@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-15 23:29:42 +00:00
8d34f223e9 adding cci service metadata
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-14 10:06:15 +00:00
2e4ab3ec77 adding metadata for new repository
Reviewed-by: vladimirhasko <vladimirhasko@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-14 00:32:53 +00:00
3fc3610cb5 added new ddm service, obs pfs document, modelarts sdk document metadata
Reviewed-by: Kvrivishvili, Iustina <iustina.kvrivishvili@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-10 10:23:12 +00:00
83b42c8053 adding swift metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-01 07:41:04 +00:00
eb996cfbfc Replacing shutil copytree by dirsync
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-30 07:52:19 +00:00
ccd8ac5fcb adding link for dws tool guide
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-23 12:44:02 +00:00
c5b22fe720 fixing natgw old hc location
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-23 11:40:48 +00:00
9c7a933e0c smg fix
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-19 18:55:13 +00:00
d04569f7ca Secure Mail Gateway addon
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-19 13:55:53 +00:00
aa1dccf219 include public images in ims docs
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-19 08:52:02 +00:00
78e982b20c removing DAS service
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 17:22:20 +00:00
6c4bcbd6db removing cdn from metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 16:00:18 +00:00
e380347dd0 adding mycredential document metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 13:46:31 +00:00
b02b97f5c3 added new documentation entry
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-13 15:06:35 +00:00
07b3c97d7d Update tox template
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-09 08:27:08 +00:00
641ec7ddd2 update gitcontrol repo template
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-03 09:17:55 +00:00
7eff19f3cd update tox.ini template
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-03 09:03:19 +00:00
ba65aca9eb Update 'zuul.yaml'
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-02 18:56:58 +00:00
e0dc83ddc4 Merge pull request 'removing pdf from DDS API and DWS UMN as causing the jobs failing' (#10) from pdf_skip into main
Reviewed-on: #10
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
2022-12-12 12:41:49 +00:00
6c49cd3160 removing pdf from DDS API and DWS UMN as causing the jobs failing 2022-12-11 16:27:20 +00:00
d506f9847e Merge pull request 'Changing OBS dev guide to OBS tool guide' (#9) from obs_fix into main
Reviewed-on: #9
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
2022-12-07 09:45:34 +00:00
f10f322623 Changing OBS dev guide to OBS tool guide 2022-12-07 09:40:07 +00:00
6005764f97 Merge pull request 'fixing hc_location parameter for dedicated waf' (#8) from dwaf_fixes into main
Reviewed-on: #8
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
2022-12-06 08:32:52 +00:00
a204f6c0ea fixing hc_location parameter for dedicated waf 2022-12-05 21:01:56 +00:00
5531b12800 do not create PR when no changes required 2022-11-23 13:49:51 +01:00
7c55f348e8 update data and templates 2022-11-23 11:22:03 +01:00
b5439711d6 Merge pull request 'Fixing the titles for Gauss DB to match the names from current HC' (#7) from fixing_gaussdb_titles into main
Reviewed-on: #7
2022-11-23 09:47:52 +00:00
9b52dba4e8 fixing space issues 2022-11-23 09:31:03 +00:00
a7b654ddc8 Fixing the titles for Gauss DB to match the names from current HC 2022-11-23 09:20:36 +00:00
d784756fb2 rename dev to dev-guide link 2022-11-16 13:04:42 +01:00
7cbdf09617 change doc link 2022-11-09 17:26:54 +01:00
a4dd457062 update scripts for latest templates 2022-11-09 17:14:49 +01:00
338c58e5fa sync metadata 2022-11-08 14:40:58 +01:00
a18ca7e2a4 finetune repos 2022-10-27 17:22:05 +02:00
0f9f4cf295 add drs api metadata 2022-10-25 13:52:38 +00:00
7631f90891 add hc_location data 2022-10-19 12:05:01 +02:00
26947ef227 add update_zuul_config script 2022-09-28 12:14:57 +02:00
25 changed files with 1342 additions and 619 deletions

View File

@ -1,3 +1,3 @@
[DEFAULT] [DEFAULT]
test_path=./otc-metadata/tests test_path=./otc_metadata/tests/
top_dir=./ top_dir=./

View File

@ -28,6 +28,7 @@ def read_data(filename):
with open(filepath, 'r') as fd: with open(filepath, 'r') as fd:
return yaml.safe_load(fd) return yaml.safe_load(fd)
def rewrite_data(filename, data): def rewrite_data(filename, data):
"""Rewrites data formatting it """Rewrites data formatting it

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ import copy
import otc_metadata.data import otc_metadata.data
__all__ = ['Docs'] __all__ = ['Service']
BUILTIN_DATA = otc_metadata.data.read_data('docs.yaml') BUILTIN_DATA = otc_metadata.data.read_data('docs.yaml')

File diff suppressed because it is too large Load Diff

View File

@ -27,12 +27,12 @@ otcdocs_auto_version = False
project = '{{ project }}' project = '{{ project }}'
otcdocs_repo_name = '{{ repo_name }}' otcdocs_repo_name = '{{ repo_name }}'
# Those variables are required for edit/bug links # Those variables are required for edit/bug links
{% if git_fqdn -%} {%- if git_fqdn %}
otcdocs_git_fqdn = '{{ git_fqdn }}' otcdocs_git_fqdn = '{{ git_fqdn }}'
{% endif %} {%- endif %}
{% if git_type -%} {%- if git_type %}
otcdocs_git_type = '{{ git_type }}' otcdocs_git_type = '{{ git_type }}'
{% endif %} {%- endif %}
# If extensions (or modules to document with autodoc) are in another directory, # 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 # add these directories to sys.path here. If the directory is relative to the
@ -42,6 +42,9 @@ sys.path.insert(0, os.path.abspath('../'))
sys.path.insert(0, os.path.abspath('./')) sys.path.insert(0, os.path.abspath('./'))
# -- General configuration ---------------------------------------------------- # -- General configuration ----------------------------------------------------
# https://docutils.sourceforge.io/docs/user/smartquotes.html - it does not
# what it is expected
smartquotes = False
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
@ -79,6 +82,15 @@ html_theme = 'otcdocs'
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
# documentation. # documentation.
html_theme_options = { html_theme_options = {
{%- if html_options is defined -%}
{%- for (k, v) in html_options.items() %}
{%- if v is boolean %}
"{{ k }}": {{ v }},
{%- else %}
"{{ k }}": "{{ v }}",
{%- endif %}
{%- endfor %}
{%- endif %}
} }
# The name for this set of Sphinx documents. If None, it defaults to # The name for this set of Sphinx documents. If None, it defaults to
@ -92,12 +104,16 @@ html_title = "{{ title }}"
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ['_static']
# Do not include sources into the rendered results
html_copy_source = False
# -- Options for PDF output -------------------------------------------------- # -- Options for PDF output --------------------------------------------------
latex_documents = [ latex_documents = [
{% if pdf_name is defined -%} {%- if pdf_name is defined %}
('index', ('index',
'{{ pdf_name }}.tex', '{{ pdf_name }}.tex',
u'{{ title }}', u'{{ title }}',
u'OpenTelekomCloud', 'manual'), u'OpenTelekomCloud', 'manual'),
{% endif -%} {% endif -%}
] ]

View File

@ -0,0 +1,4 @@
sphinx>=2.0.0,!=2.1.0 # BSD
otcdocstheme # Apache-2.0
# releasenotes
reno>=3.1.0 # Apache-2.0

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +0,0 @@
# -*- 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.
from unittest import TestCase
class TestCase(TestCase):
"""Test case base class for all unit tests."""

View File

@ -19,10 +19,10 @@ test_otc-metadata
Tests for `otc-metadata` module. Tests for `otc-metadata` module.
""" """
from otc-metadata.tests import base from unittest import TestCase
class TestOtc-metadata(base.TestCase): class TestOtcMetadata(TestCase):
def test_something(self): def test_something(self):
pass pass

View File

@ -1,11 +1,11 @@
[metadata] [metadata]
name = otc-metadata name = otc-metadata
summary = Metadata about OTC for Ecosystem summary = Metadata about OTC for Ecosystem
description-file = description_file =
README.rst README.rst
author = Open Telekom Cloud author = Open Telekom Cloud
home-page = https://open.telekom.cloud/ home_page = https://open.telekom.cloud/
python-requires = >=3.6 python_requires = >=3.6
classifier = classifier =
Environment :: OpenStack Environment :: OpenStack
Intended Audience :: Information Technology Intended Audience :: Information Technology

View File

@ -11,7 +11,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools import setuptools
setuptools.setup( setuptools.setup(

View File

@ -2,9 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking>=3.0,<3.1 # Apache-2.0 stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
coverage>=4.0,!=4.4 # Apache-2.0 flake8
python-subunit>=0.0.18 # Apache-2.0/BSD
stestr>=1.0.0 # Apache-2.0
testtools>=1.4.0 # MIT

View File

@ -1,2 +1,6 @@
GitPython GitPython
ruamel ruamel.yaml
requests
jinja2
dirsync
cookiecutter

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import copy import re
import otc_metadata.services import otc_metadata.services
from ruamel.yaml import YAML from ruamel.yaml import YAML
@ -6,15 +6,17 @@ from ruamel.yaml import YAML
data = otc_metadata.services.Services() data = otc_metadata.services.Services()
new_data = data._service_data new_data = data._service_data
services = data.service_dict # services = data.service_dict
for srv in new_data["services"]:
srv["teams"] = [
{"name": f"docs-{srv['service_category']}-rw", "permission": "write"}
]
for doc in new_data["documents"]:
hc_location = None
link = doc.get("link")
if link:
print(f"Parsing {link}")
# (p1, p2) = link.split("/")
doc["link"] = re.sub(r"/(.*)/(.*)/", r"/\2/\1/", link)
_yaml = YAML() _yaml = YAML()
_yaml.indent(mapping=2, sequence=4, offset=2) _yaml.indent(mapping=2, sequence=4, offset=2)
with open('new.yaml', 'w') as fd: with open("new.yaml", "w") as fd:
_yaml.dump(new_data, fd) _yaml.dump(new_data, fd)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -13,9 +13,11 @@ def main():
_yaml = YAML() _yaml = YAML()
_yaml.indent(mapping=2, sequence=4, offset=2) _yaml.indent(mapping=2, sequence=4, offset=2)
filepath = sys.stdout sys.stdout.write(
sys.stdout.write('# Auto-generated by otc_metadata.generate_docexports.data\n') "# Auto-generated by otc_metadata.generate_docexports.data\n"
_yaml.dump(data.docs_html_by_category('internal'), sys.stdout) )
_yaml.dump(data.docs_html_by_category("internal"), sys.stdout)
if __name__ == '__main__':
if __name__ == "__main__":
main() main()

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
import copy # import copy
import otc_metadata.services import otc_metadata.services
from ruamel.yaml import YAML # from ruamel.yaml import YAML
data = otc_metadata.services.Services() data = otc_metadata.services.Services()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

34
tox.ini
View File

@ -1,56 +1,26 @@
[tox] [tox]
minversion = 3.2.0 minversion = 3.2.0
envlist = py39,pep8 envlist = py3,pep8
skipsdist = True
ignore_basepython_conflict = true ignore_basepython_conflict = true
[testenv] [testenv]
basepython = python3 basepython = python3
usedevelop = True usedevelop = True
setenv = setenv =
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs} commands = stestr run {posargs}
[testenv:lower-constraints]
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8] [testenv:pep8]
commands = flake8 {posargs} commands = flake8 {posargs}
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
[testenv:cover]
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source otc_metadata --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
deps = {[testenv:docs]deps}
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] [flake8]
# E123, E125 skipped as they are invalid PEP-8. # E123, E125 skipped as they are invalid PEP-8.
show-source = True show-source = True
ignore = E123,E125 ignore = E123,E125,W503
builtins = _ builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

View File

@ -1,19 +1,11 @@
- project: - project:
merge-mode: squash-merge merge-mode: squash-merge
default-branch: master default-branch: main
templates:
- publish-to-pypi
- publish-otc-docs-hc-pti
- release-notes-jobs
check: check:
jobs: jobs:
- otc-tox-pep8 - otc-tox-pep8
- otc-tox-py38
- otc-tox-py39 - otc-tox-py39
- tox-functional
gate: gate:
jobs: jobs:
- otc-tox-pep8 - otc-tox-pep8
- otc-tox-py38 - otc-tox-py39
- otc-tox-py39
- tox-functional