functions/LoadBalancer/SetupLoadBalancer.Tests.ps1

$filename = "SetupLoadBalancer.ps1"
$module = "dos-install-common-azure"

$mockConfig = @"
{
    "customerid": "test",
    "azure": {
        "subscription": "PlatformStaff-DevTest",
        "resourceGroup": "fabrickubernetes2",
        "location": "westus"
    },
    "ingress": {
        "external": {
            "type": "public"
        },
        "internal": {
            "type": "public"
        }
    },
    "dns": {
        "name": "hcut.healthcatalyst.net"
    }
}
"@
 | ConvertFrom-Json

if($local){
    $GITHUB_URL = "."
    # $GITHUB_URL = "https://raw.githubusercontent.com/HealthCatalyst/dos.install/master"
}
else {
    $GITHUB_URL = "https://raw.githubusercontent.com/HealthCatalyst/dos.install/master"
}

Describe "$filename Unit Tests" -Tags 'Unit' {
    It "TestMethod" {
    }
}

Describe "$filename Integration Tests" -Tags 'Integration' {
    It "Sets up Load Balancer" {
        SetupLoadBalancer -baseUrl $GITHUB_URL -config $mockConfig -local $true -Verbose
    }
}