-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_test.py
More file actions
47 lines (39 loc) · 1.1 KB
/
setup_test.py
File metadata and controls
47 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
from io import TextIOWrapper
from pathlib import Path
from typing import Optional, cast
import click
SCRIPT_DIR = Path(os.path.dirname(os.path.realpath(__file__)))
if __name__ == "__main__":
sys.path.append(str(SCRIPT_DIR.parents[3]))
if isinstance(sys.stdout, TextIOWrapper):
cast(TextIOWrapper, sys.stdout).reconfigure(encoding="utf-8")
from jenkins.pipelines.shared.setup_test import setup_test
@click.command()
@click.argument("cbl_version")
@click.argument("dataset_version")
@click.argument("sgw_version")
@click.option(
"--private_key",
help="The private key to use for the SSH connection (if not default)",
)
def cli_entry(
cbl_version: str,
dataset_version: str,
sgw_version: str,
private_key: Optional[str],
) -> None:
setup_test(
cbl_version,
dataset_version,
sgw_version,
SCRIPT_DIR / "topology_single_host.json",
SCRIPT_DIR / "config_java_webservice.json",
"jak_webservice",
private_key,
)
if __name__ == "__main__":
cli_entry()