// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.resourcemanager.samples;

import com.azure.resourcemanager.cdn.samples.ManageCdnWithCustomDomain;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class CdnSampleTests extends SamplesTestBase {

    @Test
    public void testManageCdnProfileWithCustomDomain() {
        Assertions.assertTrue(ManageCdnWithCustomDomain.runSample(azureResourceManager));
    }
}

@@ -286,73 +286,423 @@
 st;%0A
-%0Apublic class CdnSampleTests extends SamplesTestBase %7B%0A%0A    @Test
+import org.junit.jupiter.api.condition.DisabledOnOs;%0Aimport org.junit.jupiter.api.condition.OS;%0A%0Apublic class CdnSampleTests extends SamplesTestBase %7B%0A%0A    // Test is currently disabled on Linux as a Java API call within this test, source code and not test code,%0A    // results in an UnknownHostException.%0A    // https://github.com/Azure/azure-sdk-for-java/issues/30229%0A    @Test%0A    @DisabledOnOs(value = OS.LINUX)
 %0A   

Disable Failing CdnSampleTests (#30228)