Skip to content

Commit 6a94619

Browse files
GODRIVER-3445 Cont. working on submodule integration
1 parent 195f791 commit 6a94619

File tree

4 files changed

+700
-384
lines changed

4 files changed

+700
-384
lines changed

internal/integration/unified/unified_spec_runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func runTestDirectory(t *testing.T, directoryPath string, expectValidFail bool)
9090

9191
// runTestFile runs the tests in the given file, with expectValidFail determining whether the tests should expect to pass or fail
9292
func runTestFile(t *testing.T, filepath string, expectValidFail bool, opts ...*Options) {
93+
spectest.CheckSkip(t)
9394
content, err := ioutil.ReadFile(filepath)
9495
assert.Nil(t, err, "ReadFile error for file %q: %v", filepath, err)
9596

internal/integration/unified/unified_spec_test.go

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ import (
1616

1717
var (
1818
passDirectories = []string{
19-
//
20-
//"load-balancers",
21-
//
22-
spectest.TestPath(3, "unified-test-format", "valid-pass"),
19+
2320
spectest.TestPath(3, "versioned-api"),
24-
//spectest.TestPath(3, "crud", "unified"),
25-
//spectest.TestPath(3, "change-streams", "unified"),
21+
spectest.TestPath(3, "unified-test-format", "valid-pass"),
22+
spectest.TestPath(3, "crud", "unified"),
23+
spectest.TestPath(3, "change-streams", "unified"),
24+
25+
// TODO:
26+
//"load-balancers",
2627
//spectest.TestPath(3, "transactions", "unified"),
2728
//spectest.TestPath(3, "collection-management"),
2829
//spectest.TestPath(3, "command-logging-and-monitoring", "monitoring"),
@@ -32,23 +33,21 @@ var (
3233
//spectest.TestPath(3, "sessions"),
3334
//spectest.TestPath(3, "retryable-reads", "unified"),
3435
//spectest.TestPath(3, "retryable-writes", "unified"),
35-
//"client-side-encryption/unified",
36-
//"client-side-operations-timeout",
37-
//"gridfs",
38-
//"server-selection/logging",
39-
//"server-discovery-and-monitoring/unified",
40-
//"run-command",
41-
//"index-management",
36+
37+
spectest.TestPath(3, "client-side-encryption", "unified"),
38+
spectest.TestPath(3, "client-side-operations-timeout"),
39+
spectest.TestPath(3, "gridfs"),
40+
spectest.TestPath(3, "server-selection", "logging"),
41+
spectest.TestPath(3, "server-discovery-and-monitoring", "unified"),
42+
spectest.TestPath(3, "run-command", "unified"),
43+
spectest.TestPath(3, "index-management"),
4244
}
4345
failDirectories = []string{
46+
// TODO:
4447
//"unified-test-format/valid-fail",
4548
}
4649
)
4750

48-
//const (
49-
// dataDirectory = "../../../testdata"
50-
//)
51-
5251
func TestUnifiedSpec(t *testing.T) {
5352
// Ensure the cluster is in a clean state before test execution begins.
5453
if err := terminateOpenSessions(context.Background()); err != nil {

0 commit comments

Comments
 (0)