Skip to content

Commit

Permalink
Fixed tests and error logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nshankar13 committed Jul 21, 2021
1 parent 6e7b9a9 commit 21cc218
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __validate_scoring_fe_settings(self, configuration_settings, configuration_p
if feIsNodePort and feIsInternalLoadBalancer:
raise MutuallyExclusiveArgumentError(
"Specify either privateEndpointNodeport=true or privateEndpointILB=true, but not both.")
elif feIsNodePort:
if feIsNodePort:
configuration_settings['scoringFe.serviceType.nodePort'] = feIsNodePort
elif feIsInternalLoadBalancer:
configuration_settings['scoringFe.serviceType.internalLoadBalancer'] = feIsInternalLoadBalancer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from azure.cli.core.azclierror import InvalidArgumentValueError, RequiredArgumentMissingError
from azure.cli.core.commands.client_factory import get_subscription_id

from pyhelm.chartbuilder import ChartBuilder
from pyhelm.repo import VersionError
from packaging import version
import yaml
import requests
Expand Down Expand Up @@ -102,6 +100,7 @@ def Update(self, extension, auto_upgrade_minor_version, release_train, version):
version=version
)


def _validate_tested_distro(cmd, cluster_resource_group_name, cluster_name, extension_version):

field_unavailable_error = '\"testedDistros\" field unavailable for version {0} of microsoft.openservicemesh, ' \
Expand Down Expand Up @@ -133,6 +132,7 @@ def _validate_tested_distro(cmd, cluster_resource_group_name, cluster_name, exte
logger.warning('Untested kubernetes distro for microsoft.openservicemesh, Kubernetes distro is %s',
cluster_distro)


def _get_tested_distros(chart_version):

chart_url = 'https://raw.githubusercontent.com/Azure/osm-azure/' \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# pylint: disable=line-too-long

import os
from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, record_only)
from azure.cli.testsdk import (ScenarioTest, record_only)


TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
Expand Down

0 comments on commit 21cc218

Please sign in to comment.