Skip to content

Commit e4f440e

Browse files
author
pintaoz
committed
update tests
1 parent 26f8f82 commit e4f440e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

hyperpod-cluster-stack-template/hyperpod_cluster_stack_template/v1_0/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ClusterStackBase(BaseModel):
5151
file_system_type_version: Optional[float] = Field(2.15, description="File system type version for the FSx file system")
5252
storage_capacity: Optional[int] = Field(1200, description="Storage capacity for the FSx file system in GiB")
5353
fsx_file_system_id: Optional[str] = Field("", description="Existing FSx file system ID")
54-
template_version: str = Field("1", description="Version number of cluster creation template")
54+
template_version: Optional[str] = Field("1", description="Version number of cluster creation template")
5555

5656
@field_validator('kubernetes_version', mode='before')
5757
@classmethod

test/integration_tests/cluster_management/test_hp_cluster_creation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ def test_configure_cluster(runner, cluster_name):
148148
"create-sagemaker-iam-role-stack": "true",
149149
"create-hyperpod-cluster-stack": "true",
150150
"create-helm-chart-stack": "true",
151-
"create-fsx-stack": "false"
151+
"create-fsx-stack": "false",
152+
"template-version": "1"
152153
}
153154

154155
# Build CLI arguments
@@ -170,7 +171,8 @@ def test_configure_cluster(runner, cluster_name):
170171
"create_sagemaker_iam_role_stack": True,
171172
"create_hyperpod_cluster_stack": True,
172173
"create_helm_chart_stack": True,
173-
"create_fsx_stack": False
174+
"create_fsx_stack": False,
175+
"template-version": "1"
174176
}
175177
assert_config_values("./", expected_config)
176178

0 commit comments

Comments
 (0)