Skip to content

Commit 2e391d9

Browse files
committed
Decrease timeout time, give unique cluster name
1 parent b8de113 commit 2e391d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration_tests/cluster_management/test_hp_cluster_creation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ def wait_for_stack_complete(stack_name, region, timeout_minutes=45):
9999
# Global variables to share data between tests
100100
STACK_NAME = None
101101
CREATE_TIME = None
102+
UNIQUE_TIMESTAMP = int(time.time() * 1000)
102103

103104
@pytest.fixture(scope="module")
104105
def runner():
105106
return CliRunner()
106107

107108
@pytest.fixture(scope="module")
108109
def cluster_name():
109-
return "hyperpod-cluster"
110+
return f"hyperpod-{UNIQUE_TIMESTAMP}-cluster-integ-test"
110111

111112
@pytest.fixture(scope="module")
112113
def create_time():
@@ -137,7 +138,8 @@ def test_configure_cluster(runner, cluster_name):
137138
# Configuration mapping for cleaner code
138139
config_options = {
139140
"stage": "prod",
140-
"resource-name-prefix": f"hyperpod-cli-integ-test-{int(time.time())}",
141+
"resource-name-prefix": f"hyperpod-cli-integ-test-{UNIQUE_TIMESTAMP}",
142+
"hyperpod-cluster-name": cluster_name,
141143
"create-vpc-stack": "true",
142144
"create-security-group-stack": "true",
143145
"create-eks-cluster-stack": "true",

0 commit comments

Comments
 (0)