Skip to content

Commit 2855f71

Browse files
committed
Revert "Revert "Disable apigateway stack deployment""
This reverts commit e032cd1.
1 parent 93ecfab commit 2855f71

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ads/opctl/operator/lowcode/feature_store_marketplace/cmd.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
from typing import Dict
88

99
import click
10+
from ads.opctl.operator.lowcode.feature_store_marketplace.models.apigw_config import (
11+
APIGatewayConfig,
12+
)
13+
1014
from ads.opctl.operator.lowcode.feature_store_marketplace.operator_utils import (
1115
get_latest_listing_version,
12-
get_api_gw_details,
1316
get_db_details,
1417
)
1518

@@ -61,7 +64,9 @@ def init(**kwargs: Dict) -> dict:
6164
"Version of feature store stack to install",
6265
default=get_latest_listing_version(compartment_id),
6366
)
64-
api_gw_config = get_api_gw_details(compartment_id)
67+
# api_gw_config = get_api_gw_details(compartment_id)
68+
api_gw_config = APIGatewayConfig()
69+
api_gw_config.enabled = False
6570
yaml_dict: Dict = YamlGenerator(
6671
schema=_load_yaml_from_uri(__file__.replace("cmd.py", "schema.yaml"))
6772
).generate_example_dict(

tests/unitary/with_extras/operator/feature-store/test_operator_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def test_create_new_stack(requests_mock: Mock, auth_mock: Mock, client_factory:
140140
def validate_stack_details(
141141
stack_details: oci.resource_manager.models.CreateStackDetails,
142142
):
143-
source_details: oci.resource_manager.models.CreateZipUploadConfigSourceDetails = (
143+
import oci.resource_manager.models as models
144+
145+
source_details: models.CreateZipUploadConfigSourceDetails = (
144146
stack_details.config_source
145147
)
146148
assert (

0 commit comments

Comments
 (0)