chore(test): e2e: apply remote expecteddeploymentscales CRD #82
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / JUnit Test Report
failed
Nov 23, 2023 in 0s
32 tests run, 0 skipped, 1 failed.
Annotations
github-actions / JUnit Test Report
start_stop_test.test_stop_start_all
failed on setup with "subprocess.CalledProcessError: Command 'kubectl apply -f https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wiremind-crds/templates/expecteddeploymentscales.yaml' returned non-zero exit status 1."
Raw output
@pytest.fixture
def populate_cluster() -> Generator[None, None, None]:
> run_command(
"kubectl apply -f https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wiremind-crds/templates/expecteddeploymentscales.yaml",
)
src/wiremind_kubernetes/tests/e2e_tests/conftest.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
command = 'kubectl apply -f https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wiremind-crds/templates/expecteddeploymentscales.yaml'
return_result = False
line_callback = <bound method Logger.info of <Logger wiremind_kubernetes.utils (DEBUG)>>
kw_args = {}
interpreted_command = ['kubectl', 'apply', '-f', 'https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wiremind-crds/templates/expecteddeploymentscales.yaml']
process = <Popen: returncode: 1 args: ['kubectl', 'apply', '-f', 'https://raw.githubus...>
line = "error: error parsing https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wirem...ds/templates/expecteddeploymentscales.yaml: error converting YAML to JSON: yaml: line 7: could not find expected ':'\n"
def run_command(
command: Union[List, str], return_result: bool = False, line_callback: Union[Callable, None] = None, **kw_args: Any
) -> Tuple[str, str, int]:
"""
Run command, print stdout/stderr, check that command exited correctly, return stdout/err
"""
logger.debug(f"Running {command}")
if line_callback and return_result:
raise ValueError("line_callback and return_result parameters are mutually incompatible.")
if not line_callback:
line_callback = logger.info
interpreted_command: List[str]
if isinstance(command, str):
interpreted_command = shlex.split(command)
else:
interpreted_command = command
process = subprocess.Popen(
interpreted_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, **kw_args
)
if return_result:
out, err = process.communicate()
return (out, err, process.returncode)
if process.stdout:
for line in iter(process.stdout.readline, ""):
line_callback(line.strip())
process.wait()
if process.returncode:
> raise subprocess.CalledProcessError(process.returncode, command)
E subprocess.CalledProcessError: Command 'kubectl apply -f https://raw.githubusercontent.com/wiremind/wiremind-helm-charts/wiremind-crds-0.1.0/charts/wiremind-crds/templates/expecteddeploymentscales.yaml' returned non-zero exit status 1.
src/wiremind_kubernetes/utils.py:48: CalledProcessError
Loading