Skip to content

Commit a316274

Browse files
committed
Move Copy-ApiVersion.Tests.ps1 out of folder (adjust paths so they are accurate)
1 parent 34a7d4b commit a316274

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eng/scripts/Tests/Copy-ApiVersion/Copy-ApiVersion.Tests.ps1 renamed to eng/scripts/Tests/Copy-ApiVersion.Tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Import-Module Pester
22

33
BeforeAll {
4-
. "$PSScriptRoot\..\..\Copy-ApiVersion-Functions.ps1"
4+
. "$PSScriptRoot\..\Copy-ApiVersion-Functions.ps1"
55
}
66

77
Describe "Copy-ApiVersion regex tests" {
@@ -11,25 +11,25 @@ Describe "Copy-ApiVersion regex tests" {
1111
version = "2024-01-01-preview"
1212
provider = "Microsoft.AgFoodPlatform"
1313
versionStatus = "preview"
14-
specsDir = '..\..\..\..\..\specification\agrifood\resource-manager\Microsoft.AgFoodPlatform\preview\2023-06-01-preview'
14+
specsDir = '..\..\..\..\specification\agrifood\resource-manager\Microsoft.AgFoodPlatform\preview\2023-06-01-preview'
1515
},
1616
@{
1717
version = "2024-01-01"
1818
provider = "Microsoft.Compute\ComputeRP"
1919
versionStatus = "stable"
20-
specsDir = '..\..\..\..\..\specification\compute\resource-manager\Microsoft.Compute\ComputeRP\stable\2023-09-01'
20+
specsDir = '..\..\..\..\specification\compute\resource-manager\Microsoft.Compute\ComputeRP\stable\2023-09-01'
2121
},
2222
@{
2323
version = "7.6-preview.1"
2424
provider = "Microsoft.KeyVault"
2525
versionStatus = "preview"
26-
specsDir = '..\..\..\..\..\specification\keyvault\data-plane\Microsoft.KeyVault\preview\7.6-preview.1'
26+
specsDir = '..\..\..\..\specification\keyvault\data-plane\Microsoft.KeyVault\preview\7.6-preview.1'
2727
},
2828
@{
2929
version = "7.5"
3030
provider = "Microsoft.Compute\ComputeRP"
3131
versionStatus = "stable"
32-
specsDir = '..\..\..\..\..\specification\keyvault\data-plane\Microsoft.KeyVault\stable\7.5'
32+
specsDir = '..\..\..\..\specification\keyvault\data-plane\Microsoft.KeyVault\stable\7.5'
3333
}
3434
) {
3535
param($version, $provider, $versionStatus, $specsDir)
@@ -48,12 +48,12 @@ Describe "Copy-ApiVersion regex tests" {
4848
# TODO: This is fragile. The tests stop working when a service team updates their readme.md. We should instead take fixed copies or something.
4949
It "Default version gets updated" -TestCases @(
5050
@{
51-
inputReadme = '..\..\..\..\..\specification\compute\resource-manager\readme.md'
51+
inputReadme = '..\..\..\..\specification\compute\resource-manager\readme.md'
5252
apiVersion = "2024-01-01"
5353
versionStatus = "stable"
5454
},
5555
@{
56-
inputReadme = '..\..\..\..\..\specification\keyvault\data-plane\readme.md'
56+
inputReadme = '..\..\..\..\specification\keyvault\data-plane\readme.md'
5757
apiVersion = "7.6-preview.1"
5858
versionStatus = "preview"
5959
}

0 commit comments

Comments
 (0)