-
Notifications
You must be signed in to change notification settings - Fork 1.6k
adbs list hot fix for customer #9705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -605,6 +605,10 @@ def _build_schema_on_200(cls): | |
| whitelisted_ips = cls._schema_on_200.value.Element.properties.whitelisted_ips | ||
| whitelisted_ips.Element = AAZStrType() | ||
|
|
||
| cls._schema_on_200.value.Element.properties.data_base_type = AAZStrType( | ||
| serialized_name="dataBaseType", | ||
| ) | ||
|
|
||
| disc_clone = cls._schema_on_200.value.Element.properties.discriminate_by("data_base_type", "Clone") | ||
| disc_clone.is_reconnect_clone_enabled = AAZBoolType( | ||
| serialized_name="isReconnectCloneEnabled", | ||
|
|
@@ -1207,6 +1211,10 @@ def _build_schema_on_200(cls): | |
| whitelisted_ips = cls._schema_on_200.value.Element.properties.whitelisted_ips | ||
| whitelisted_ips.Element = AAZStrType() | ||
|
|
||
| cls._schema_on_200.value.Element.properties.data_base_type = AAZStrType( | ||
| serialized_name="dataBaseType", | ||
| ) | ||
|
|
||
| disc_clone = cls._schema_on_200.value.Element.properties.discriminate_by("data_base_type", "Clone") | ||
|
Comment on lines
+1214
to
1218
|
||
| disc_clone.is_reconnect_clone_enabled = AAZBoolType( | ||
| serialized_name="isReconnectCloneEnabled", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,9 @@ def test_oracledatabase_adbs(self, resource_group): | |
| self.cmd('az oracle-database database-system-shape list --location eastus ') | ||
| self.cmd('az oracle-database dns-private-zone list --location eastus ') | ||
| self.cmd('az oracle-database dns-private-view list --location eastus ') | ||
| # Regression coverage for INDIGO-26148: list commands must not fail on dataBaseType discriminator. | ||
| self.cmd('az oracle-database autonomous-database list ') | ||
| self.cmd('az oracle-database autonomous-database list --resource-group PowerShellTestRg ') | ||
| self.cmd('az oracle-database autonomous-database create --location eastus ' | ||
|
||
| '--autonomousdatabasename ADBScliTest ' | ||
| '--resource-group PowerShellTestRg ' | ||
|
|
@@ -36,4 +39,4 @@ def test_oracledatabase_adbs(self, resource_group): | |
| '--vnet-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet --regular --no-wait ') | ||
| self.cmd('az oracle-database autonomous-database delete ' | ||
| '--autonomousdatabasename ADBScli ' | ||
| '--resource-group PowerShellTestRg --yes --no-wait ') | ||
| '--resource-group PowerShellTestRg --yes --no-wait ') | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file path (
aaz/latest/.../_list.py) typically contains generated code. If this is generated in your repo, a manual patch here risks being overwritten on the next generation run. Prefer fixing the upstream source (Swagger/spec, codegen template, or AAZ generation config) sodataBaseTypeis emitted as a modeled property beforediscriminate_by(...), then regenerate to keep the change durable.