all tests
This commit is contained in:
parent
9939182054
commit
de25ca69cb
45
.github/workflows/ci.yml
vendored
45
.github/workflows/ci.yml
vendored
@ -299,7 +299,12 @@ jobs:
|
|||||||
|
|
||||||
- run: mkdir -p /tmp/corso-testlog
|
- run: mkdir -p /tmp/corso-testlog
|
||||||
|
|
||||||
- name: one test
|
- name: all tests
|
||||||
|
env:
|
||||||
|
# Set these to a bad value so we don't accidentally fall back to
|
||||||
|
# something elsewhere.
|
||||||
|
CORSO_M365_TEST_USER_ID: "foo"
|
||||||
|
CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@ -311,45 +316,9 @@ jobs:
|
|||||||
-failfast \
|
-failfast \
|
||||||
-p 1 \
|
-p 1 \
|
||||||
-timeout 20m \
|
-timeout 20m \
|
||||||
-run '^TestSharePointBackupUnitSuite/TestPopulateListsCollections_incremental$' ./internal/m365/collection/site \
|
./... \
|
||||||
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
|
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
|
||||||
|
|
||||||
# Run the second test
|
|
||||||
go test \
|
|
||||||
-tags testing \
|
|
||||||
-failfast \
|
|
||||||
-p 1 \
|
|
||||||
-timeout 20m \
|
|
||||||
-run '^TestSharePointBackupUnitSuite/TestCollectLists$' ./internal/m365/collection/site \
|
|
||||||
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
|
|
||||||
|
|
||||||
# Run the third test
|
|
||||||
go test \
|
|
||||||
-tags testing \
|
|
||||||
-failfast \
|
|
||||||
-p 1 \
|
|
||||||
-timeout 20m \
|
|
||||||
-run '^TestExportUnitSuite/TestStreamItems$' ./internal/m365/collection/site \
|
|
||||||
2>&1 | tee -a /tmp/corso-testlog/gotest-unit.log
|
|
||||||
|
|
||||||
# - name: all tests
|
|
||||||
# env:
|
|
||||||
# # Set these to a bad value so we don't accidentally fall back to
|
|
||||||
# # something elsewhere.
|
|
||||||
# CORSO_M365_TEST_USER_ID: "foo"
|
|
||||||
# CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
|
||||||
# run: |
|
|
||||||
# set -euo pipefail
|
|
||||||
|
|
||||||
# # Run the first test
|
|
||||||
# go test \
|
|
||||||
# -tags testing \
|
|
||||||
# -failfast \
|
|
||||||
# -p 1 \
|
|
||||||
# -timeout 20m \
|
|
||||||
# ./... \
|
|
||||||
# 2>&1 | tee -a ./testlog/gotest-unit.log
|
|
||||||
|
|
||||||
# run the tests
|
# run the tests
|
||||||
# - name: Unit Tests
|
# - name: Unit Tests
|
||||||
# env:
|
# env:
|
||||||
|
|||||||
@ -721,23 +721,3 @@ func (suite *PathUnitSuite) TestArePathsEquivalent() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *PathUnitSuite) Test_Stuff() {
|
|
||||||
t := suite.T()
|
|
||||||
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
path1 string
|
|
||||||
path2 string
|
|
||||||
}{
|
|
||||||
{
|
|
||||||
name: "same linux normal path",
|
|
||||||
path1: "/path/to/dir",
|
|
||||||
path2: "/path/to/dir",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, test := range tests {
|
|
||||||
assert.Equal(t, test.path1, test.path2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user