-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
src/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbsoper.py::OracleDatabaseAdbsGetScenario::test_oracledatabase_adbsget
[gw0] [100%] FAILED src/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbsoper.py::OracleDatabaseAdbsGetScenario::test_oracledatabase_adbsget
======================================================================================================= FAILURES ========================================================================================================
_______________________________________________________________________________ OracleDatabaseAdbsGetScenario.test_oracledatabase_adbsget _______________________________________________________________________________
[gw0] darwin -- Python 3.14.0 /Users/mkidane/venv/venvcli/bin/python3.14
self = <azure.cli.testsdk.base.ExecutionResult object at 0x110756a50>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x1103f47d0>
command = 'oracle-database autonomous-database show --name ADBScli1 --resource-group PowerShellTestRg '
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../azure-cli/src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../venv/venvcli/lib/python3.14/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/__init__.py:130: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = AAZUnknownFieldError("Model 'AAZObjectType' has no field named 'data_base_type'")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception AAZUnknownFieldError during execution and fails the command.
../azure-cli/src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azext_oracle_database.tests.latest.test_oracle_database_adbsoper.OracleDatabaseAdbsGetScenario testMethod=test_oracledatabase_adbsget>
resource_group = 'cli_test_odba_rg000001'
@AllowLargeResponse(size_kb=10240)
@ResourceGroupPreparer(name_prefix='cli_test_odba_rg')
def test_oracledatabase_adbsget(self, resource_group):
subscription_id = self.get_subscription_id()
> self.cmd('az oracle-database autonomous-database show --name ADBScli1 --resource-group PowerShellTestRg ')
src/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbsoper.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../azure-cli/src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../azure-cli/src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
../azure-cli/src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
../../venv/venvcli/lib/python3.14/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/commands/__init__.py:666: in execute
raise ex
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/commands/__init__.py:734: in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/commands/__init__.py:703: in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/aaz/_command.py:155: in __call__
return self._handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_show.py:33: in _handler
self._execute_operations()
src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_show.py:65: in _execute_operations
self.AutonomousDatabasesGet(ctx=self.ctx)()
src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_show.py:87: in __call__
return self.on_200(session)
^^^^^^^^^^^^^^^^^^^^
src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_show.py:145: in on_200
self.ctx.set_var(
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/aaz/_command_ctx.py:83: in set_var
self._vars_schema[name] = schema_builder()
^^^^^^^^^^^^^^^^
src/oracle-database/azext_oracle_database/aaz/latest/oracle_database/autonomous_database/_show.py:610: in _build_schema_on_200
disc_clone = cls._schema_on_200.properties.discriminate_by("data_base_type", "Clone")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.cli.core.aaz._field_type.AAZObjectType object at 0x110d7e490>
key = 'data_base_type', data = 'Clone', schema = None
def discriminate_by(self, key, data, schema=None):
name = self.get_attr_name(key)
if name not in self._fields:
> raise AAZUnknownFieldError(self, key)
E azure.cli.core.aaz.exceptions.AAZUnknownFieldError: "Model 'AAZObjectType' has no field named 'data_base_type'"
../../venv/venvcli/lib/python3.14/site-packages/azure/cli/core/aaz/_field_type.py:295: AAZUnknownFieldError
----------------------------------------------------------- generated xml file: /Users/mkidane/.azdev/env_config/Users/mkidane/venv/venvcli/test_results.xml ------------------------------------------------------------
================================================================================================ short test summary info ================================================================================================
FAILED src/oracle-database/azext_oracle_database/tests/latest/test_oracle_database_adbsoper.py::OracleDatabaseAdbsGetScenario::test_oracledatabase_adbsget - self = <azure.cli.testsdk.base.ExecutionResult object at 0x110756a50>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================================

Metadata
Metadata
Assignees
Labels
No labels