Add improved output formatting and new manual test workflows
- Added blank lines before specific print statements in E2E test scripts for better readability. - Enabled `workflow_dispatch` in `.github/workflows/build.yml` to allow manual triggering of workflows. - Added separate jobs for running Docker Compose and Kubernetes E2E tests in CI pipeline.
This commit is contained in:
parent
f463020e3e
commit
0a400b976c
3 changed files with 54 additions and 1 deletions
|
|
@ -436,6 +436,7 @@ class KubernetesFixture:
|
|||
|
||||
def apply(self):
|
||||
"""Apply Kubernetes manifest"""
|
||||
print() # Newline for better test output formatting
|
||||
# Create namespace if it doesn't exist
|
||||
if self.namespace != "default":
|
||||
subprocess.run(
|
||||
|
|
@ -592,6 +593,7 @@ def k8s_jwt_validator_secret(kind_cluster) -> Generator[dict, None, None]:
|
|||
jwt_pubkey_content = f.read()
|
||||
|
||||
# Create JWT secrets using kubectl
|
||||
print() # Newline for better test output formatting
|
||||
print(" → Creating JWT secret 'jwt-pubkey-secret'...")
|
||||
subprocess.run(
|
||||
[kubectl_cmd, "delete", "secret", "jwt-pubkey-secret", "-n", "default",
|
||||
|
|
@ -671,6 +673,7 @@ def k8s_cloudflare(kind_cluster, kind_cmd) -> Generator[str, None, None]:
|
|||
|
||||
# Build header-echo server image locally
|
||||
header_echo_dir = BASE_DIR / "fixtures" / "header-echo"
|
||||
print() # Newline for better test output formatting
|
||||
print(" → Building header-echo-server:test image...")
|
||||
subprocess.run(
|
||||
["docker", "build", "-t", "header-echo-server:test", str(header_echo_dir)],
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ def wait_for_pods_ready(
|
|||
if all_running:
|
||||
if verbose:
|
||||
label_info = f" (label: {label_selector})" if label_selector else ""
|
||||
print(f"✓ All pods running in '{namespace}'{label_info}")
|
||||
print(f" ✓ All pods running in '{namespace}'{label_info}")
|
||||
return True
|
||||
|
||||
time.sleep(2)
|
||||
|
|
@ -159,6 +159,7 @@ def create_tls_secret_from_pem(kubectl_cmd: str, secret_name: str, namespace: st
|
|||
namespace: Namespace to create the secret in
|
||||
pem_file: Path to the PEM file containing both certificate and key
|
||||
"""
|
||||
print() # Newline for better test output formatting
|
||||
print(f" → Creating TLS secret '{secret_name}' from {pem_file.name}...")
|
||||
|
||||
# Read the PEM file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue