-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ci: run some cni windows uts in the pipeline (#2925) * make windows uts pass * separate multitenancy uts for windows into platform specific file * move ut testing to separate template * address linter issue * run windows platform tests * revert removing test create bridge * remove parameter from ut template * remove cns tests unrelated to backport * cherry pick files to mock if hns v2 is supported * modify multitenancy cni tests to reflect 1.5.x behavior - updates mock network manager to use the network id passed in - updates mock network manager to get all endpoint infos based on a network id - updates mock network manager find network id from net ns to reflect dualnic get network id behavior (gets multiple networks because on deletion, you have one less endpoint that matches the netns/netnspath, and so use the network id of the other endpoint for deletion) - updates windows tests to use eth1 to avoid mock endpoint client from throwing a duplicate endpoint id error - separates windows and linux multitenancy tests because their behavior is different - updates windows unit tests to allow passing in an expected num of endpoints for EACH network id after EACH command is run during delete test * remove test not relevant to 1.5.x and clean up logic
- Loading branch information
Showing
12 changed files
with
468 additions
and
376 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
stages: | ||
- stage: test | ||
displayName: Test ACN | ||
dependsOn: | ||
- setup | ||
jobs: | ||
- job: test | ||
displayName: Run Tests | ||
variables: | ||
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ] | ||
pool: | ||
name: "$(BUILD_POOL_NAME_DEFAULT)" | ||
steps: | ||
- script: | | ||
make tools | ||
# run test, echo exit status code to fd 3, pipe output from test to tee, which splits output to stdout and go-junit-report (which converts test output to report.xml), stdout from tee is redirected to fd 4. Take output written to fd 3 (which is the exit code of test), redirect to stdout, pipe to read from stdout then exit with that status code. Read all output from fd 4 (output from tee) and write to top stdout | ||
{ { { { | ||
sudo -E env "PATH=$PATH" make test-all; | ||
echo $? >&3; | ||
} | tee >(build/tools/bin/go-junit-report > report.xml) >&4; | ||
} 3>&1; | ||
} | { read xs; exit $xs; } | ||
} 4>&1 | ||
retryCountOnTaskFailure: 3 | ||
name: "Test" | ||
displayName: "Run Tests" | ||
- stage: test_windows | ||
displayName: Test ACN Windows | ||
dependsOn: | ||
- setup | ||
jobs: | ||
- job: test | ||
displayName: Run Tests | ||
variables: | ||
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ] | ||
pool: | ||
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)" | ||
steps: | ||
- script: | | ||
cd npm/ | ||
go test ./... | ||
cd ../cni/ | ||
go test ./... | ||
cd ../platform/ | ||
go test ./... | ||
retryCountOnTaskFailure: 3 | ||
name: "TestWindows" | ||
displayName: "Run Windows Tests" |
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
Oops, something went wrong.