forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue for KubernetesConfigutation (Azure#24900)
- Loading branch information
1 parent
b6625af
commit 4a59790
Showing
26 changed files
with
309 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...KubernetesConfiguration.Autorest/test/Get-AzKubernetesConfigFluxOperationStatus.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'Get-AzKubernetesConfigFluxOperationStatus')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzKubernetesConfigFluxOperationStatus.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'Get-AzKubernetesConfigFluxOperationStatus' { | ||
It 'Get' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'GetViaIdentity' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...nfiguration/KubernetesConfiguration.Autorest/test/Get-AzKubernetesConfiguration.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'Get-AzKubernetesConfiguration')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzKubernetesConfiguration.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'Get-AzKubernetesConfiguration' { | ||
It 'List' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'Get' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'GetViaIdentity' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...uration/KubernetesConfiguration.Autorest/test/Get-AzKubernetesConfigurationFlux.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'Get-AzKubernetesConfigurationFlux')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzKubernetesConfigurationFlux.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'Get-AzKubernetesConfigurationFlux' { | ||
It 'List' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'Get' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'GetViaIdentity' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...esConfiguration/KubernetesConfiguration.Autorest/test/Get-AzKubernetesExtension.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'Get-AzKubernetesExtension')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzKubernetesExtension.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'Get-AzKubernetesExtension' { | ||
It 'List' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'Get' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
|
||
It 'GetViaIdentity' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...nfiguration/KubernetesConfiguration.Autorest/test/New-AzKubernetesConfiguration.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'New-AzKubernetesConfiguration')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzKubernetesConfiguration.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'New-AzKubernetesConfiguration' { | ||
It 'CreateExpanded' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...uration/KubernetesConfiguration.Autorest/test/New-AzKubernetesConfigurationFlux.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'New-AzKubernetesConfigurationFlux')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzKubernetesConfigurationFlux.Recording.json' | ||
$currentPath = $PSScriptRoot | ||
while(-not $mockingPath) { | ||
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File | ||
$currentPath = Split-Path -Path $currentPath -Parent | ||
} | ||
. ($mockingPath | Select-Object -First 1).FullName | ||
} | ||
|
||
Describe 'New-AzKubernetesConfigurationFlux' { | ||
It 'CreateExpanded' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
Oops, something went wrong.