Skip to content

Commit 61207ff

Browse files
committed
MSSQL, DTS fixes
1 parent fa2bd87 commit 61207ff

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

test/e2e/Apps/BasicPython/host.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"extensionBundle": {
21-
"id": "Microsoft.Azure.Functions.ExtensionBundle",
22-
"version": "[4.*, 5.0.0)"
21+
"id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
22+
"version": "[4.29.0, 5.0.0)"
2323
}
2424
}

test/e2e/Tests/Fixtures/FixtureHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ internal static void AddDurableBackendEnvironmentVariables(Process funcProcess,
9494
{
9595
testLogger.LogWarning("Environment variable MSSQL_SA_PASSWORD not set, connection string to SQL emulator may fail");
9696
}
97-
funcProcess.StartInfo.EnvironmentVariables["SQLDB_Connection"] = $"Server=localhost,1433;Database=DurableDB;User Id=sa;Password={sqlPassword};";
97+
funcProcess.StartInfo.EnvironmentVariables["SQLDB_Connection"] = $"Server=localhost,1433;Database=DurableDB;User Id=sa;Password={sqlPassword};TrustServerCertificate=True;";
9898
funcProcess.StartInfo.EnvironmentVariables["AzureFunctionsJobHost__extensions__durableTask__storageProvider__type"] = "mssql";
9999
funcProcess.StartInfo.EnvironmentVariables["AzureFunctionsJobHost__extensions__durableTask__storageProvider__connectionStringName"] = "SQLDB_Connection";
100100
funcProcess.StartInfo.EnvironmentVariables["AzureFunctionsJobHost__extensions__durableTask__storageProvider__createDatabaseIfNotExists"] = "true";

test/e2e/Tests/build-e2e-test.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@ else
136136
if (!$SkipBuild)
137137
{
138138
EnsureValidPythonVersion
139+
Set-Location $E2EAppProjectDirectory
140+
141+
if (!(Test-Path $E2EAppVenvDirectory)) {
142+
Write-Host "Creating virtual environment for Python app"
143+
python3 -m venv ".venv"
144+
145+
Get-ChildItem | Format-Table -AutoSize
146+
147+
}
148+
else {
149+
Write-Host "Virtual environment already exists at $E2EAppVenvDirectory"
150+
}
151+
152+
Set-Location ".venv/Scripts"
153+
154+
.\activate
139155

140156
python3 -m pip install --upgrade pip
141157
python3 -m pip install -r (Join-Path $E2EAppProjectDirectory "requirements.txt") --upgrade

0 commit comments

Comments
 (0)