Added testservice

This commit is contained in:
2025-04-15 09:09:41 +00:00
parent f5bdf81d2d
commit 83ecc3ec19
6 changed files with 46 additions and 3 deletions

View File

@ -149,13 +149,15 @@ def main():
args = parser.parse_args()
logging.basicConfig(level=logging.DEBUG)
services = []
if args.service_type:
services = [data.get_service_with_repo_by_service_type(service_type=args.service_type)]
else:
services = data.services_with_repos()
print(services)
for service in services:
print(service)
process_repositories(args, service)

View File

@ -461,10 +461,11 @@ def main():
+ " without updating service-based-view"
)
exit(1)
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:
services = data.all_services
services = data.services_with_repos()
if args.token:
api_session.headers.update({"Authorization": f"token {args.token}"})