Skip to content

Commit 6a057fe

Browse files
pcomandeo-mongo
authored andcommitted
RUBY-2678 Rename SDAM specs
1 parent 4a07934 commit 6a057fe

File tree

31 files changed

+203
-189
lines changed

31 files changed

+203
-189
lines changed

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotMasterNoSlaveOk.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotPrimaryNoSecondaryOk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion greater NotMasterNoSlaveOk error
2+
description: Non-stale topologyVersion greater NotPrimaryNoSecondaryOk error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion greater NotMasterNoSlaveOk error marks server Unknown
33+
- description: Non-stale topologyVersion greater NotPrimaryNoSecondaryOk error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterNoSlaveOk
41+
errmsg: NotPrimaryNoSecondaryOk
4142
code: 13435
4243
topologyVersion:
4344
processId:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotMasterOrSecondary.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotPrimaryOrSecondary.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion greater NotMasterOrSecondary error
2+
description: Non-stale topologyVersion greater NotPrimaryOrSecondary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion greater NotMasterOrSecondary error marks server Unknown
33+
- description: Non-stale topologyVersion greater NotPrimaryOrSecondary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterOrSecondary
41+
errmsg: NotPrimaryOrSecondary
4142
code: 13436
4243
topologyVersion:
4344
processId:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotMaster.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotWritablePrimary.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion greater NotMaster error
2+
description: Non-stale topologyVersion greater NotWritablePrimary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion greater NotMaster error marks server Unknown
33+
- description: Non-stale topologyVersion greater NotWritablePrimary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMaster
41+
errmsg: NotWritablePrimary
4142
code: 10107
4243
topologyVersion:
4344
processId:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotMasterNoSlaveOk.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotPrimaryNoSecondaryOk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion missing NotMasterNoSlaveOk error
2+
description: Non-stale topologyVersion missing NotPrimaryNoSecondaryOk error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion missing NotMasterNoSlaveOk error marks server Unknown
33+
- description: Non-stale topologyVersion missing NotPrimaryNoSecondaryOk error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterNoSlaveOk
41+
errmsg: NotPrimaryNoSecondaryOk
4142
code: 13435
4243
outcome:
4344
servers:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotMasterOrSecondary.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotPrimaryOrSecondary.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion missing NotMasterOrSecondary error
2+
description: Non-stale topologyVersion missing NotPrimaryOrSecondary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion missing NotMasterOrSecondary error marks server Unknown
33+
- description: Non-stale topologyVersion missing NotPrimaryOrSecondary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterOrSecondary
41+
errmsg: NotPrimaryOrSecondary
4142
code: 13436
4243
outcome:
4344
servers:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotMaster.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotWritablePrimary.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion missing NotMaster error
2+
description: Non-stale topologyVersion missing NotWritablePrimary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion missing NotMaster error marks server Unknown
33+
- description: Non-stale topologyVersion missing NotWritablePrimary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMaster
41+
errmsg: NotWritablePrimary
4142
code: 10107
4243
outcome:
4344
servers:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotMasterNoSlaveOk.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotPrimaryNoSecondaryOk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion proccessId changed NotMasterNoSlaveOk error
2+
description: Non-stale topologyVersion proccessId changed NotPrimaryNoSecondaryOk error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion proccessId changed NotMasterNoSlaveOk error marks server Unknown
33+
- description: Non-stale topologyVersion proccessId changed NotPrimaryNoSecondaryOk error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterNoSlaveOk
41+
errmsg: NotPrimaryNoSecondaryOk
4142
code: 13435
4243
topologyVersion:
4344
processId:
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion proccessId changed NotMasterOrSecondary error
2+
description: Non-stale topologyVersion proccessId changed NotPrimaryOrSecondary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion proccessId changed NotMasterOrSecondary error marks server Unknown
33+
- description: Non-stale topologyVersion proccessId changed NotPrimaryOrSecondary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMasterOrSecondary
41+
errmsg: NotPrimaryOrSecondary
4142
code: 13436
4243
topologyVersion:
4344
processId:

spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotMaster.yml renamed to spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotWritablePrimary.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Non-stale topologyVersion proccessId changed NotMaster error
2+
description: Non-stale topologyVersion proccessId changed NotWritablePrimary error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -29,15 +30,15 @@ phases:
2930
logicalSessionTimeoutMinutes: null
3031
setName: rs
3132

32-
- description: Non-stale topologyVersion proccessId changed NotMaster error marks server Unknown
33+
- description: Non-stale topologyVersion proccessId changed NotWritablePrimary error marks server Unknown
3334
applicationErrors:
3435
- address: a:27017
3536
when: afterHandshakeCompletes
3637
maxWireVersion: 9
3738
type: command
3839
response:
3940
ok: 0
40-
errmsg: NotMaster
41+
errmsg: NotWritablePrimary
4142
code: 10107
4243
topologyVersion:
4344
processId:

spec/spec_tests/data/sdam/errors/post-42-NotMasterNoSlaveOk.yml renamed to spec/spec_tests/data/sdam/errors/post-42-NotPrimaryNoSecondaryOk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Autogenerated tests for SDAM error handling, see generate-error-tests.py
2-
description: Post-4.2 NotMasterNoSlaveOk error
2+
description: Post-4.2 NotPrimaryNoSecondaryOk error
33
uri: mongodb://a/?replicaSet=rs
44
phases:
55
- description: Primary A is discovered
66
responses:
77
- - a:27017
88
- ok: 1
9-
ismaster: true
9+
helloOk: true
10+
isWritablePrimary: true
1011
hosts:
1112
- a:27017
1213
setName: rs
@@ -24,15 +25,15 @@ phases:
2425
logicalSessionTimeoutMinutes: null
2526
setName: rs
2627

27-
- description: Post-4.2 NotMasterNoSlaveOk error marks server Unknown
28+
- description: Post-4.2 NotPrimaryNoSecondaryOk error marks server Unknown
2829
applicationErrors:
2930
- address: a:27017
3031
when: afterHandshakeCompletes
3132
maxWireVersion: 8
3233
type: command
3334
response:
3435
ok: 0
35-
errmsg: NotMasterNoSlaveOk
36+
errmsg: NotPrimaryNoSecondaryOk
3637
code: 13435
3738
outcome:
3839
servers:

0 commit comments

Comments
 (0)