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
public class ParallelTest01 | |
{ | |
[Fact] | |
public async Task Test1() | |
{ | |
await Task.Delay(TimeSpan.FromSeconds(5)); | |
Assert.True(true); | |
} | |
[Fact] |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "go", | |
"request": "launch", |
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
func WaitUntilServiceExternalIPsAvailable(t *testing.T, options *k8s.KubectlOptions, serviceName string, retries int, sleepBetweenRetries time.Duration) { | |
statusMsg := fmt.Sprintf("Wait for service %s to be provisioned.", serviceName) | |
message := retry.DoWithRetry( | |
t, | |
statusMsg, | |
retries, | |
sleepBetweenRetries, | |
func() (string, error) { | |
service, err := k8s.GetServiceE(t, options, serviceName) | |
if err != nil { |
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
: | |
terraform.InitAndApply(t, terraformOptions) | |
var ActualCount int32 = 0 | |
cluster, err := GetManagedCluster(expectedResourceGroupName, expectedClusterName) // Custom helper method | |
assert.Nil(t, err) | |
ActualCount = *(*cluster.ManagedClusterProperties.AgentPoolProfiles)[0].Count | |
// Write assert | |
assert.Equal(t, int32(expectedAagentCount), ActualCount) | |
: |
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
resources: | |
pipelines: | |
- pipeline: parent | |
source: Parent.CI | |
trigger: | |
branches: | |
- master | |
trigger: none |
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
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
jobs: | |
- job: main | |
steps: | |
- script: echo "##vso[task.setvariable variable=FOO;isOutput=true]Bar" |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to local process", | |
"type": "go", | |
"request": "attach", | |
"mode": "local", | |
"processId": 87235 | |
}, |
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
"terminal.integrated.env.osx": { | |
"AZDO_ORG_SERVICE_URL":"https://dev.azure.com/<YOUR_ORG>", | |
"AZDO_PERSONAL_ACCESS_TOKEN":"<YOUR_AZDO_PAT>", | |
"AZDO_GITHUB_SERVICE_CONNECTION_PAT":"<YOUR_GITHUB_PAT>", | |
"AZDO_TEST_AAD_USER_EMAIL": "<EMAIL_FOR_TEST>" | |
}, |
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
DEV_ROOT=/Users/ushio/dev/go | |
GOPATH=/Users/ushio/dev/go | |
AZDO_ORG_SERVICE_URL="https://dev.azure.com/<YOUR ORGANIZATION>" | |
AZDO_PERSONAL_ACCESS_TOKEN="<YOUR_AZDO_PERSONAL_ACCESS_TOKEN>" | |
AZDO_GITHUB_SERVICE_CONNECTION_PAT="<YOUR_GITHUB_SERVICE_CONNECTION>" | |
AZDO_TEST_AAD_USER_EMAIL=<YOUR_E_MAILS> | |
TF_ACC=1 |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Acceptance test", | |
"type": "go", | |
"request": "launch", | |
"mode": "test", | |
"program": "${workspaceRoot}/azuredevops/resource_project_test.go", | |
"args": [ |