Skip to content

Commit

Permalink
Updating the integration test recording
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaraddi committed Apr 25, 2024
1 parent 25c1f2c commit 5a4ef2b
Show file tree
Hide file tree
Showing 2 changed files with 1,042 additions and 447 deletions.
10 changes: 5 additions & 5 deletions src/aosm/azext_aosm/definition_folder/reader/bicep_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def _base_Resources_exist(

if isinstance(config, NFDCommonParametersConfig):
try:
command_context.aosm_client.nfDefinitionGroups.get(
command_context.aosm_client.network_function_definition_groups.get(
resource_group_name=config.publisherResourceGroupName,
publisher_name=config.publisherName,
nf_name=config.nfDefinitionGroup,
network_function_definition_group_name=config.nfDefinitionGroup,
)
base_resources_exist = True
except azure_exceptions.ResourceNotFoundError:
Expand All @@ -211,10 +211,10 @@ def _base_Resources_exist(

if isinstance(config, NSDCommonParametersConfig):
try:
command_context.aosm_client.nsDesignGroups.get(
command_context.aosm_client.network_service_design_groups.get(
resource_group_name=config.publisherResourceGroupName,
publisher_name=config.publisherName,
nsd_name=config.nsDesignGroup,
network_service_design_group_name=config.nsDesignGroup,
)
base_resources_exist = True
except azure_exceptions.ResourceNotFoundError:
Expand Down Expand Up @@ -242,7 +242,7 @@ def deploy(
base_resources_exist = self._base_Resources_exist(
config=config, command_context=command_context
)
if base_resources_exist.PUBLISHER and base_resources_exist.ARTIFACT_STORE:
if base_resources_exist.BASE_RESOURCES_EXIST:
logger.info("Base resources already exist; skipping deployment.")
return

Expand Down
Loading

0 comments on commit 5a4ef2b

Please sign in to comment.