functions/Stack/InstallStackInKubernetes.Tests.ps1
$filename = $($(Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.ps1","")) $here = Split-Path -Parent $MyInvocation.MyCommand.Path Describe "$filename Unit Tests" -Tags 'Unit' { It "TestMethod" { } } Describe "$filename Integration Tests" -Tags 'Integration' { It "Can Install FabricRealtime Stack" { $packageUrl = "$here\..\..\..\helm.realtime\fabricrealtime" $packageUrl | Should Exist $namespace="fabricrealtime" # Arrange CleanOutNamespace -namespace $namespace -Verbose DeleteAllSecretsInNamespace -namespace $namespace -Verbose SaveSecretValue -secretname "certhostname" -valueName "value" -value "mycerthostname" -namespace "$namespace" SaveSecretPassword -secretname "mysqlrootpassword" -value "mysqlrootpassword" -namespace "$namespace" SaveSecretPassword -secretname "mysqlpassword" -value "mysqlpassword" -namespace "$namespace" SaveSecretPassword -secretname "certpassword" -value "mycertpassword" -namespace "$namespace" SaveSecretPassword -secretname "rabbitmqmgmtuipassword" -value "myrabbitmqmgmtuipassword" -namespace "$namespace" # Act InstallStackInKubernetes ` -namespace $namespace ` -package "fabricrealtime" ` -packageUrl $packageUrl ` -Ssl $false ` -ExternalIP "104.42.148.128" ` -InternalIP "" ` -ExternalSubnet "" ` -InternalSubnet "" ` -IngressInternalType "public" ` -IngressExternalType "public" ` -Verbose } } |