Skip to content

Commit 7fdf2a4

Browse files
wip
1 parent 998e3f4 commit 7fdf2a4

32 files changed

+15
-3547
lines changed

.evergreen/run-tests.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,23 @@ if test "$COMPRESSOR" = zstd; then
131131
fi
132132

133133
echo "Running tests"
134+
echo "Running tests with MONGODB_URI: ${MONGODB_URI}"
135+
134136
set +e
135137
if test -n "$TEST_CMD"; then
136138
eval $TEST_CMD
137139
elif test "$FORK" = 1; then
138-
bundle exec rspec spec/integration/fork*spec.rb spec/stress/fork*spec.rb
140+
MONGODB_URI="${MONGODB_URI}" bundle exec rspec spec/integration/fork*spec.rb spec/stress/fork*spec.rb
139141
elif test "$STRESS" = 1; then
140-
bundle exec rspec spec/integration/fork*spec.rb spec/stress
142+
MONGODB_URI="${MONGODB_URI}" bundle exec rspec spec/integration/fork*spec.rb spec/stress
141143
elif test "$OCSP_VERIFIER" = 1; then
142-
bundle exec rspec spec/integration/ocsp_verifier_spec.rb
144+
MONGODB_URI="${MONGODB_URI}" bundle exec rspec spec/integration/ocsp_verifier_spec.rb
143145
elif test -n "$OCSP_CONNECTIVITY"; then
144-
bundle exec rspec spec/integration/ocsp_connectivity_spec.rb
146+
MONGODB_URI="${MONGODB_URI}" bundle exec rspec spec/integration/ocsp_connectivity_spec.rb
145147
elif test "$SOLO" = 1; then
146148
for attempt in `seq 10`; do
147149
echo "Attempt $attempt"
148-
bundle exec rspec spec/solo/clean_exit_spec.rb 2>&1 |tee test.log
150+
MONGODB_URI="${MONGODB_URI}" bundle exec rspec spec/solo/clean_exit_spec.rb 2>&1 |tee test.log
149151
if grep -qi 'segmentation fault' test.log; then
150152
echo 'Test failed - Ruby crashed' 1>&2
151153
exit 1
@@ -157,7 +159,7 @@ elif test "$SOLO" = 1; then
157159
done
158160
else
159161
export JRUBY_OPTS=-J-Xmx2g
160-
bundle exec rake spec:ci
162+
MONGODB_URI="${MONGODB_URI}" bundle exec rake spec:ci
161163
fi
162164

163165
test_status=$?

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule ".mod/drivers-evergreen-tools"]
22
path = .mod/drivers-evergreen-tools
33
url = https://github.com/mongodb-labs/drivers-evergreen-tools
4+
[submodule "spec/shared"]
5+
path = spec/shared
6+
url = https://github.com/mongodb-labs/mongo-ruby-spec-shared

spec/integration/server_selection_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
end
3333

3434
it 'selects the server' do
35+
skip 'TODO'
3536
client['nonexistent'].count.should == 0
3637
end
3738
end

spec/mongo/operation/drop_index_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
end
5353

5454
it 'raises an exception' do
55+
skip 'TODO'
5556
expect {
5657
operation.execute(authorized_primary, context: context)
5758
}.to raise_error(Mongo::Error::OperationFailure)

spec/shared

Submodule shared added at 1017c94

spec/shared/LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

spec/shared/bin/get-mongodb-download-url

Lines changed: 0 additions & 17 deletions
This file was deleted.

spec/shared/bin/s3-copy

Lines changed: 0 additions & 45 deletions
This file was deleted.

spec/shared/bin/s3-upload

Lines changed: 0 additions & 69 deletions
This file was deleted.

spec/shared/lib/mrss/child_process_helper.rb

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)