Added testservice
This commit is contained in:
parent
f5bdf81d2d
commit
83ecc3ec19
13
otc_metadata/data/documents/testservice-umn.yaml
Normal file
13
otc_metadata/data/documents/testservice-umn.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
hc_location: usermanual/testservice
|
||||||
|
html_location: docs/testservice/umn
|
||||||
|
link: /testservice/umn/
|
||||||
|
rst_location: umn/source
|
||||||
|
service_type: testservice
|
||||||
|
title: User Guide
|
||||||
|
type: umn
|
||||||
|
cloud_environments:
|
||||||
|
- name: eu_de
|
||||||
|
visibility: public
|
||||||
|
pdf_visibility: public
|
||||||
|
pdf_enabled: true
|
13
otc_metadata/data/repositories/testservice.yaml
Normal file
13
otc_metadata/data/repositories/testservice.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
service_type: testservice
|
||||||
|
repositories:
|
||||||
|
- environment: public
|
||||||
|
repo: opentelekomcloud-docs/testservice
|
||||||
|
type: github
|
||||||
|
cloud_environments:
|
||||||
|
- eu_de
|
||||||
|
- environment: internal
|
||||||
|
repo: docs/testservice
|
||||||
|
type: gitea
|
||||||
|
cloud_environments:
|
||||||
|
- eu_de
|
12
otc_metadata/data/services/testservice.yaml
Normal file
12
otc_metadata/data/services/testservice.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
environment: public
|
||||||
|
is_global: false
|
||||||
|
service_category: security-services
|
||||||
|
service_title: Test Service
|
||||||
|
service_type: testservice
|
||||||
|
service_uri: testservice
|
||||||
|
cloud_environments:
|
||||||
|
- name: eu_de
|
||||||
|
teams:
|
||||||
|
- name: docs-security-services-rw
|
||||||
|
permission: write
|
@ -350,9 +350,11 @@ 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"]
|
||||||
|
@ -149,13 +149,15 @@ def main():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
services = []
|
|
||||||
if args.service_type:
|
if args.service_type:
|
||||||
services = [data.get_service_with_repo_by_service_type(service_type=args.service_type)]
|
services = [data.get_service_with_repo_by_service_type(service_type=args.service_type)]
|
||||||
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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -461,10 +461,11 @@ def main():
|
|||||||
+ " without updating service-based-view"
|
+ " without updating service-based-view"
|
||||||
)
|
)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if args.service_type:
|
if args.service_type:
|
||||||
services = [data.service_dict.get(args.service_type)]
|
services = [data.get_service_with_repo_by_service_type(service_type=args.service_type)]
|
||||||
else:
|
else:
|
||||||
services = data.all_services
|
services = data.services_with_repos()
|
||||||
|
|
||||||
if args.token:
|
if args.token:
|
||||||
api_session.headers.update({"Authorization": f"token {args.token}"})
|
api_session.headers.update({"Authorization": f"token {args.token}"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user