Skip to content

Commit 675f389

Browse files
committed
- disables tutorial mode for integration tests
Signed-off-by: Vincent Biret <[email protected]>
1 parent 90f3ed5 commit 675f389

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

it/compare-generation.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function New-TemporaryDirectory {
2626
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
2727
$rootPath = Join-Path -Path $scriptPath -ChildPath ".."
2828

29+
$Env:KIOTA_TUTORIAL_ENABLED = "false"
2930
$executableName = "kiota"
3031
if ($IsWindows) {
3132
$executableName = "kiota.exe"

it/generate-code.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ $additionalArgumentCmd = Join-Path -Path $scriptPath -ChildPath "get-additional-
2121
$additionalArguments = Invoke-Expression "$additionalArgumentCmd -descriptionUrl $descriptionUrl -language $language"
2222
$rootPath = Join-Path -Path $scriptPath -ChildPath ".."
2323

24+
$Env:KIOTA_TUTORIAL_ENABLED = "false"
2425
$executableName = "kiota"
2526
if ($IsWindows) {
2627
$executableName = "kiota.exe"
2728
}
2829

29-
switch ($dev)
30-
{
30+
switch ($dev) {
3131
$true {
3232
Write-Warning "Using kiota in dev mode"
3333
$kiotaExec = Join-Path -Path $rootPath -ChildPath "src" -AdditionalChildPath "kiota", "bin", "Debug", "net7.0", $executableName
@@ -46,9 +46,11 @@ if (Test-Path $targetOpenapiPath) {
4646

4747
if ($descriptionUrl.StartsWith("./")) {
4848
Copy-Item -Path $descriptionUrl -Destination $targetOpenapiPath -Force
49-
} elseif ($descriptionUrl.StartsWith("http")) {
49+
}
50+
elseif ($descriptionUrl.StartsWith("http")) {
5051
Invoke-WebRequest -Uri $descriptionUrl -OutFile $targetOpenapiPath
51-
} else {
52+
}
53+
else {
5254
Start-Process "$kiotaExec" -ArgumentList "download ${descriptionUrl} --clean-output --output $targetOpenapiPath" -Wait -NoNewWindow
5355
}
5456

0 commit comments

Comments
 (0)