Added testservice

This commit is contained in:
Gode, Sebastian 2025-04-15 09:37:52 +00:00
parent 83ecc3ec19
commit 9c9d7ed695
5 changed files with 147 additions and 126 deletions

View File

@ -0,0 +1,13 @@
---
hc_location: usermanual/testservice
html_location: docs/testservice/api-ref
link: /testservice/api-ref/
rst_location: api-ref/source
service_type: testservice
title: User Guide
type: api-ref
cloud_environments:
- name: swiss
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -350,11 +350,9 @@ class Services(object):
res = dict() res = dict()
res = {} res = {}
services = self.all_services services = self.all_services
print(services)
for service in services: for service in services:
if service["service_type"] == service_type: if service["service_type"] == service_type:
res = service res = service
print(res)
for repositories in self.all_repositories: for repositories in self.all_repositories:
if repositories["service_type"] == service["service_type"]: if repositories["service_type"] == service["service_type"]:
res["repositories"] = repositories["repositories"] res["repositories"] = repositories["repositories"]

View File

@ -64,11 +64,9 @@ commands =
wget -O {toxinidir}/_templates/longtable.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/longtable.tex.jinja wget -O {toxinidir}/_templates/longtable.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/longtable.tex.jinja
wget -O {toxinidir}/_templates/tabular.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabular.tex.jinja wget -O {toxinidir}/_templates/tabular.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabular.tex.jinja
wget -O {toxinidir}/_templates/tabulary.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabulary.tex.jinja wget -O {toxinidir}/_templates/tabulary.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabulary.tex.jinja
{%- for doc in docs %}
{%- if doc.pdf_enabled %} {%- if doc.pdf_enabled %}
{[testenv:{{ doc.type }}-pdf-docs]commands} {[testenv:{{ doc.type }}-pdf-docs]commands}
{%- endif %} {%- endif %}
{%- endfor %}
{% endif %} {% endif %}
{% for doc in docs -%} {% for doc in docs -%}

View File

@ -103,6 +103,7 @@ def create_repo(repo, repo_dir, service):
git_repo = Repo(repo_dir) git_repo = Repo(repo_dir)
git_repo.create_remote("origin", repo_url) git_repo.create_remote("origin", repo_url)
git_repo.remotes.origin.fetch() git_repo.remotes.origin.fetch()
git_repo.git.branch("-m", "main")
git_repo.git.push("--set-upstream", "origin", "main") git_repo.git.push("--set-upstream", "origin", "main")
@ -155,9 +156,7 @@ def main():
else: else:
services = data.services_with_repos() services = data.services_with_repos()
print(services)
for service in services: for service in services:
print(service)
process_repositories(args, service) process_repositories(args, service)

File diff suppressed because it is too large Load Diff