Skip to content

Conversation

@VidyaKukke
Copy link
Contributor

Do not send identity for global system-topic
az eventgrid system-topic --name --location global --topic-type --source --resource-group

Added tests for some of the features introduced in 2020-10-15-preview

  1. az evenrgrid system-topic create/update identity
  2. az eventgrid event-subscription --advanced-filters
  3. az eventgrid event-subscription --enabled-advanced-filtering-on-array

storage_system_topic_name_regional = self.create_random_name(prefix='cli', length=40)
policy_system_topic_name_global = 'policy-system-topic-name-global'

storage_account = '/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.Storage/storageAccounts/clistgaccount'
Copy link
Member

@evelyn-ys evelyn-ys Apr 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use @StorageAccountPreparer() to create a new storage account with random name instead of fixed storage account?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some requirements on the storageaccount so we have one setup for all our tests specifically. i'm reusing that.

identity=None):

identity_info = _get_identity_info(identity)
identity_info = _get_identity_info_only_if_not_none(identity)
Copy link
Member

@evelyn-ys evelyn-ys Apr 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does domain_create_or_update need the same change(L253)?

def cli_domain_create_or_update(
client,
resource_group_name,
domain_name,
location=None,
tags=None,
input_schema=EVENTGRID_SCHEMA,
input_mapping_fields=None,
input_mapping_default_values=None,
public_network_access=None,
inbound_ip_rules=None,
sku=SKU_BASIC,
identity=None):
final_input_schema, input_schema_mapping = _get_input_schema_and_mapping(
input_schema,
input_mapping_fields,
input_mapping_default_values)
sku_name = _get_sku(sku)
sku_info = ResourceSku(name=sku_name)
identity_info = None
identity_info = _get_identity_info(identity)
domain_info = Domain(
location=location,
tags=tags,
input_schema=final_input_schema,
input_schema_mapping=input_schema_mapping,
public_network_access=public_network_access,
inbound_ip_rules=inbound_ip_rules,
sku=sku_info,
identity=identity_info)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. this change is needed under some system-topics which are global.

@evelyn-ys evelyn-ys merged commit 32eefbf into dev Apr 28, 2021
@jiasli jiasli deleted the vkukke/eventgrid branch August 5, 2021 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants