Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
ee0b4539
Unverified
Commit
ee0b4539
authored
Nov 25, 2019
by
Andreas Braun
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #659
parents
a42e3479
944e7292
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
147 additions
and
70 deletions
+147
-70
cluster_replset.json
mongo-orchestration/sharded_clusters/cluster_replset.json
+20
-4
DocumentationExamplesTest.php
tests/DocumentationExamplesTest.php
+4
-0
FunctionalTestCase.php
tests/FunctionalTestCase.php
+0
-3
WatchFunctionalTest.php
tests/Operation/WatchFunctionalTest.php
+123
-63
No files found.
mongo-orchestration/sharded_clusters/cluster_replset.json
View file @
ee0b4539
...
...
@@ -50,7 +50,11 @@
"journal"
:
true
,
"logappend"
:
true
,
"port"
:
4400
,
"bind_ip_all"
:
true
"bind_ip_all"
:
true
,
"setParameter"
:
{
"periodicNoopIntervalSecs"
:
1
,
"writePeriodicNoops"
:
true
}
}
},
{
"procParams"
:
{
"dbpath"
:
"/tmp/SHARDED-RS/SHARD1/4401"
,
...
...
@@ -59,7 +63,11 @@
"journal"
:
true
,
"logappend"
:
true
,
"port"
:
4401
,
"bind_ip_all"
:
true
"bind_ip_all"
:
true
,
"setParameter"
:
{
"periodicNoopIntervalSecs"
:
1
,
"writePeriodicNoops"
:
true
}
}
}
]
}
...
...
@@ -76,7 +84,11 @@
"journal"
:
true
,
"logappend"
:
true
,
"port"
:
4410
,
"bind_ip_all"
:
true
"bind_ip_all"
:
true
,
"setParameter"
:
{
"periodicNoopIntervalSecs"
:
1
,
"writePeriodicNoops"
:
true
}
}
},
{
"procParams"
:
{
"dbpath"
:
"/tmp/SHARDED-RS/SHARD2/4411"
,
...
...
@@ -85,7 +97,11 @@
"journal"
:
true
,
"logappend"
:
true
,
"port"
:
4411
,
"bind_ip_all"
:
true
"bind_ip_all"
:
true
,
"setParameter"
:
{
"periodicNoopIntervalSecs"
:
1
,
"writePeriodicNoops"
:
true
}
}
}
]
}
...
...
tests/DocumentationExamplesTest.php
View file @
ee0b4539
...
...
@@ -935,6 +935,10 @@ class DocumentationExamplesTest extends FunctionalTestCase
{
$this
->
skipIfChangeStreamIsNotSupported
();
if
(
$this
->
isShardedCluster
())
{
$this
->
markTestSkipped
(
'Test does not apply on sharded clusters: need more than a single getMore call on the change stream.'
);
}
$db
=
new
Database
(
$this
->
manager
,
$this
->
getDatabaseName
());
$db
->
dropCollection
(
'inventory'
);
$db
->
createCollection
(
'inventory'
);
...
...
tests/FunctionalTestCase.php
View file @
ee0b4539
...
...
@@ -336,9 +336,6 @@ abstract class FunctionalTestCase extends TestCase
if
(
!
$this
->
isShardedClusterUsingReplicasets
())
{
$this
->
markTestSkipped
(
'$changeStream is only supported with replicasets'
);
}
// Temporarily skip tests because of an issue with change streams in the driver
$this
->
markTestSkipped
(
'$changeStreams currently don\'t on replica sets'
);
break
;
case
Server
::
TYPE_RS_PRIMARY
:
...
...
tests/Operation/WatchFunctionalTest.php
View file @
ee0b4539
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment