-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-5731: Fix atlas search tests failures #1775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -526,7 +526,7 @@ functions: | |
echo "Response Body: $response_body" | ||
echo "HTTP Status: $http_status" | ||
assume-ec2-role: | ||
assume-aws-test-secrets-role: | ||
- command: ec2.assume_role | ||
params: | ||
role_arn: ${aws_test_secrets_role} | ||
|
@@ -665,9 +665,12 @@ functions: | |
params: | ||
working_dir: mongo-csharp-driver | ||
include_expansions_in_env: | ||
- "ATLAS_SEARCH" | ||
- "AWS_ACCESS_KEY_ID" | ||
- "AWS_SECRET_ACCESS_KEY" | ||
- "AWS_SESSION_TOKEN" | ||
script: | | ||
${PREPARE_SHELL} | ||
. ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas-qa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I migrated test configuration from Evergreen project variables to AWS Secrets Manager |
||
evergreen/run-atlas-search-test.sh | ||
run-atlas-search-index-helpers-test: | ||
|
@@ -1250,7 +1253,7 @@ tasks: | |
|
||
- name: atlas-connectivity-tests | ||
commands: | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: run-atlas-connectivity-tests | ||
|
||
- name: test-gssapi | ||
|
@@ -1356,12 +1359,13 @@ tasks: | |
|
||
- name: atlas-data-lake-test | ||
commands: | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: bootstrap-mongohoused | ||
- func: run-atlas-data-lake-test | ||
|
||
- name: atlas-search-test | ||
commands: | ||
- func: assume-aws-test-secrets-role | ||
- func: run-atlas-search-test | ||
|
||
- name: atlas-search-index-helpers-test | ||
|
@@ -1419,7 +1423,7 @@ tasks: | |
${PREPARE_SHELL} | ||
dotnet build | ||
tar czf /tmp/mongo-csharp-driver.tgz tests/*.Tests/bin/Debug/net6.0/ ./evergreen/run-mongodb-oidc-env-tests.sh | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: run_oidc_k8s_tests | ||
vars: | ||
K8S_VARIANT: eks | ||
|
@@ -1824,7 +1828,7 @@ tasks: | |
- name: x509-auth-tests | ||
commands: | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: setup-x509-tests | ||
- func: run-x509-tests | ||
vars: | ||
|
@@ -2006,7 +2010,7 @@ task_groups: | |
- func: fix-absolute-paths | ||
- func: init-test-results | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
@@ -2052,7 +2056,7 @@ task_groups: | |
- func: fix-absolute-paths | ||
- func: init-test-results | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
@@ -2096,7 +2100,7 @@ task_groups: | |
- func: fix-absolute-paths | ||
- func: init-test-results | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
@@ -2128,7 +2132,7 @@ task_groups: | |
setup_group: | ||
- func: fetch-source | ||
- func: prepare-resources | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
@@ -2163,7 +2167,7 @@ task_groups: | |
- func: fix-absolute-paths | ||
- func: init-test-results | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
@@ -2191,7 +2195,7 @@ task_groups: | |
- func: prepare-resources | ||
- func: fix-absolute-paths | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: install-dotnet | ||
- command: subprocess.exec | ||
params: | ||
|
@@ -2222,7 +2226,7 @@ task_groups: | |
- func: prepare-resources | ||
- func: fix-absolute-paths | ||
- func: make-files-executable | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- func: install-dotnet | ||
- command: subprocess.exec | ||
params: | ||
|
@@ -2253,7 +2257,7 @@ task_groups: | |
- func: fix-absolute-paths | ||
- func: make-files-executable | ||
- func: install-dotnet | ||
- func: assume-ec2-role | ||
- func: assume-aws-test-secrets-role | ||
- command: subprocess.exec | ||
params: | ||
binary: bash | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ public AtlasSearchTests(ITestOutputHelper testOutputHelper) : base(testOutputHel | |
{ | ||
RequireEnvironment.Check().EnvironmentVariable("ATLAS_SEARCH_TESTS_ENABLED"); | ||
|
||
var atlasSearchUri = Environment.GetEnvironmentVariable("ATLAS_SEARCH"); | ||
var atlasSearchUri = Environment.GetEnvironmentVariable("ATLAS_SEARCH_URI"); | ||
Ensure.IsNotNullOrEmpty(atlasSearchUri, nameof(atlasSearchUri)); | ||
|
||
var mongoClientSettings = MongoClientSettings.FromConnectionString(atlasSearchUri); | ||
|
@@ -436,8 +436,8 @@ public void PhraseSynonym() | |
result[0].Title.Should().Be("The Great Race"); | ||
result[1].Title.Should().Be("The Cannonball Run"); | ||
result[2].Title.Should().Be("National Mechanics"); | ||
result[3].Title.Should().Be("Genevieve"); | ||
result[4].Title.Should().Be("Speedway Junky"); | ||
result[3].Title.Should().Be("Speedway Junky"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. some data changed in the sample data used for tests in the new cluster so I had to update this. |
||
result[4].Title.Should().Be("Jo pour Jonathan"); | ||
} | ||
|
||
[Fact] | ||
|
@@ -866,7 +866,7 @@ public class Movie | |
public class EmbeddedMovie : Movie | ||
{ | ||
[BsonElement("plot_embedding")] | ||
public double[] Embedding { get; set; } | ||
public BinaryVectorFloat32 Embedding { get; set; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
[BsonIgnoreExtraElements] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to a more descriptive name