Skip to content

Commit cba91b7

Browse files
Replace testdata with submodules
1 parent 250192f commit cba91b7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "specifications"]
2-
path = specifications
3-
url = git@github.com:mongodb/specifications.git
2+
path = testdata
3+
url = https://github.com/mongodb/specifications

testdata

Submodule testdata added at 7891688

x/mongo/driver/auth/auth_spec_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type testContainer struct {
3838
}
3939

4040
// Note a test supporting the deprecated gssapiServiceName property was removed from data/auth/auth_tests.json
41-
const authTestsDir = "../../../../testdata/auth/"
41+
const authTestsDir = "../../../../testdata/source/auth/tests/legacy"
4242

4343
func runTestsInFile(t *testing.T, dirname string, filename string) {
4444
filepath := path.Join(dirname, filename)
@@ -111,6 +111,7 @@ func mapInterfaceToString(m map[string]interface{}) map[string]string {
111111
// Test case for all connection string spec tests.
112112
func TestAuthSpec(t *testing.T) {
113113
for _, file := range spectest.FindJSONFilesInDir(t, authTestsDir) {
114+
fmt.Println("file", file)
114115
runTestsInFile(t, authTestsDir, file)
115116
}
116117
}

x/mongo/driver/connstring/connstring_spec_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ type testContainer struct {
4747
Tests []testCase
4848
}
4949

50-
const connstringTestsDir = "../../../../testdata/connection-string/"
51-
const urioptionsTestDir = "../../../../testdata/uri-options/"
50+
const connstringTestsDir = "../../../../testdata/source/connection-string/"
51+
const urioptionsTestDir = "../../../../testdata/source/uri-options/"
5252

5353
func (h *host) toString() string {
5454
switch h.Type {

0 commit comments

Comments
 (0)