Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move windows build to 1es hosted agents / disable upload to blob tests #3466

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
3 changes: 3 additions & 0 deletions e2e/test/iothub/FileUploadE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public async Task FileUpload_X509_SmallFile_Http()
[TestMethodWithRetry(Max = 3)]
[Timeout(TestTimeoutMilliseconds)]
[TestCategory("LongRunning")]
[Ignore()]
public async Task FileUpload_SmallFile_Http_GranularSteps()
{
string filename = await GetTestFileNameAsync(FileSizeSmall).ConfigureAwait(false);
Expand All @@ -110,6 +111,7 @@ public async Task FileUpload_SmallFile_Http_GranularSteps()
[TestMethodWithRetry(Max = 3)]
[Timeout(TestTimeoutMilliseconds)]
[TestCategory("LongRunning")]
[Ignore()]
public async Task FileUpload_SmallFile_Http_GranularSteps_x509()
{
string filename = await GetTestFileNameAsync(FileSizeSmall).ConfigureAwait(false);
Expand All @@ -123,6 +125,7 @@ public async Task FileUpload_SmallFile_Http_GranularSteps_x509()
[Timeout(TestTimeoutMilliseconds)]
[TestCategory("LongRunning")]
[TestCategory("Proxy")]
[Ignore()]
public async Task FileUpload_SmallFile_Http_GranularSteps_Proxy()
{
string filename = await GetTestFileNameAsync(FileSizeSmall).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class RegistryManagerExportDevicesTests : E2EMsTestBase
'\n',
};

[Ignore("Test infrastructure doesn't currently support this test")]
[TestMethodWithRetry(Max = 3)]
[Timeout(LongRunningTestTimeoutMilliseconds)]
[TestCategory("LongRunning")]
Expand Down
25 changes: 19 additions & 6 deletions vsts/vsts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ jobs:
SHOULD_RUN: ${{ eq(variables['testNet472'], 'True') }}
pool:
# If this is changed, don't forget to update supported_platforms.md in the root directory. That document outlines what OS we test on and should stay up to date.
vmImage: windows-2022
name: 'sdk-net--win-vs2022'
steps:
- task: PowerShell@2
displayName: 'Print vars'
Expand Down Expand Up @@ -377,13 +377,26 @@ jobs:
- task: CmdLine@2
displayName: 'Install .NET 4.7.2'
inputs:
script: 'choco install netfx-4.7.2-devpack'
script: 'choco install -y netfx-4.7.2-devpack'

- script: |
choco install -y squid
- task: Docker@2
displayName: "Login to ACR"
condition: eq(variables.SHOULD_RUN, 'True')
inputs:
command: "login"
containerRegistry: "Azure IoT ACR"

displayName: "Install Squid"
- task: Docker@1
displayName: "Start Test Proxy"
condition: eq(variables.SHOULD_RUN, 'True')
inputs:
containerregistrytype: "Container Registry"
command: "Run an image"
azureContainerRegistry: aziotacr.azurecr.io
imageName: aziotacr.azurecr.io/aziotbld/testproxy
containerName: "testproxy-instance"
ports: "127.0.0.1:8888:8888"
restartPolicy: unlessStopped

- powershell: ./vsts/start_tpm_windows.ps1
displayName: "Start TPM Simulator"
Expand Down Expand Up @@ -424,7 +437,7 @@ jobs:
E2E_IKEY: $(E2E-IKEY)

# Environment variables for the DevOps pipeline
PROXY_SERVER_ADDRESS: 127.0.0.1:3128
PROXY_SERVER_ADDRESS: 127.0.0.1:8888
TARGET_BRANCH: $(System.PullRequest.TargetBranch)
FRAMEWORK: $(FRAMEWORK)

Expand Down