Skip to content

Commit ab81ff8

Browse files
committed
Revert "TUN-6010: Add component tests for --edge-ip-version"
This reverts commit 978e01f.
1 parent f2339a7 commit ab81ff8

File tree

4 files changed

+7
-279
lines changed

4 files changed

+7
-279
lines changed

component-tests/cli.py

Lines changed: 0 additions & 95 deletions
This file was deleted.

component-tests/test_edge_discovery.py

Lines changed: 0 additions & 165 deletions
This file was deleted.

component-tests/test_service.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
import os
33
import pathlib
4+
import platform
45
import subprocess
56
from contextlib import contextmanager
67
from pathlib import Path
@@ -9,7 +10,12 @@
910

1011
import test_logging
1112
from conftest import CfdModes
12-
from util import select_platform, start_cloudflared, wait_tunnel_ready, write_config
13+
from util import start_cloudflared, wait_tunnel_ready, write_config
14+
15+
16+
def select_platform(plat):
17+
return pytest.mark.skipif(
18+
platform.system() != plat, reason=f"Only runs on {plat}")
1319

1420

1521
def default_config_dir():

component-tests/util.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import logging
22
import os
3-
import platform
43
import subprocess
54
from contextlib import contextmanager
65
from time import sleep
76

8-
import pytest
9-
107
import requests
118
import yaml
129
from retrying import retry
@@ -15,10 +12,6 @@
1512

1613
LOGGER = logging.getLogger(__name__)
1714

18-
def select_platform(plat):
19-
return pytest.mark.skipif(
20-
platform.system() != plat, reason=f"Only runs on {plat}")
21-
2215

2316
def write_config(directory, config):
2417
config_path = directory / "config.yml"
@@ -118,17 +111,6 @@ def check_tunnel_not_connected():
118111
LOGGER.warning(f"Failed to connect to {url}, error: {e}")
119112

120113

121-
def get_tunnel_connector_id():
122-
url = f'http://localhost:{METRICS_PORT}/ready'
123-
124-
try:
125-
resp = requests.get(url, timeout=1)
126-
return resp.json()["connectorId"]
127-
# cloudflared might already terminated
128-
except requests.exceptions.ConnectionError as e:
129-
LOGGER.warning(f"Failed to connect to {url}, error: {e}")
130-
131-
132114
# In some cases we don't need to check response status, such as when sending batch requests to generate logs
133115
def send_requests(url, count, require_ok=True):
134116
errors = 0

0 commit comments

Comments
 (0)