diff --git a/scripts/devops_tasks/test_run_samples.py b/scripts/devops_tasks/test_run_samples.py index 4b31c526fba5..c7d1bb7cdbc5 100644 --- a/scripts/devops_tasks/test_run_samples.py +++ b/scripts/devops_tasks/test_run_samples.py @@ -25,8 +25,7 @@ "__init__.py", "consume_cloud_events_from_eventhub.py", "consume_cloud_events_from_service_bus_queue.py", - "consume_cloud_events_from_storage_queue.py", - "cs2_publish_custom_events_to_a_domain_topic.py"] + "consume_cloud_events_from_storage_queue.py"] } diff --git a/sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_events_to_a_domain_topic.py b/sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_events_to_a_domain_topic.py index 81ca6f8bb06a..b97e03435278 100644 --- a/sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_events_to_a_domain_topic.py +++ b/sdk/eventgrid/azure-eventgrid/samples/champion_scenarios/cs2_publish_custom_events_to_a_domain_topic.py @@ -18,8 +18,8 @@ from azure.eventgrid import EventGridPublisherClient, EventGridEvent from azure.core.credentials import AzureKeyCredential -domain_key = os.environ["EG_ACCESS_KEY"] -domain_hostname = os.environ["EG_TOPIC_HOSTNAME"] +domain_key = os.environ["EG_DOMAIN_ACCESS_KEY"] +domain_hostname = os.environ["EG_DOMAIN_TOPIC_HOSTNAME"] credential = AzureKeyCredential(domain_key) client = EventGridPublisherClient(domain_hostname, credential) diff --git a/sdk/eventgrid/tests.yml b/sdk/eventgrid/tests.yml index c7f21b4c7839..023cd81888a4 100644 --- a/sdk/eventgrid/tests.yml +++ b/sdk/eventgrid/tests.yml @@ -17,6 +17,8 @@ jobs: CLOUD_TOPIC_HOSTNAME: $(python-sdk-test-eg-cloud-topic-hostname) DOMAIN_ACCESS_KEY: $(python-sdk-test-eg-domain-access-key) DOMAIN_TOPIC_HOSTNAME: $(python-sdk-test-eg-domain-topic-hostname) + EG_DOMAIN_ACCESS_KEY: $(python-sdk-test-domain-access-key-eg) + EG_DOMAIN_TOPIC_HOSTNAME: $(python-sdk-test-domain-topic-hostname-eg) DOMAIN_NAME: $(python-sdk-test-eg-domain-name) CUSTOM_SCHEMA_ACCESS_KEY: $(python-sdk-test-eg-custom-schema-access-key) CUSTOM_SCHEMA_TOPIC_HOSTNAME: $(python-sdk-test-custom-schema-topic-hostname)