Skip to content

Commit 00362f1

Browse files
Increment version to 3.3.0-SNAPSHOT (#1574)
* Increment version to 3.3.0-SNAPSHOT Signed-off-by: opensearch-ci-bot <[email protected]> * Consume custom attributes Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: opensearch-ci-bot <[email protected]> Signed-off-by: Craig Perkins <[email protected]> Co-authored-by: opensearch-ci-bot <[email protected]>
1 parent 96a5ca2 commit 00362f1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import org.opensearch.gradle.testclusters.OpenSearchCluster
2020

2121
buildscript {
2222
ext {
23-
opensearch_version = System.getProperty("opensearch.version", "3.2.0-SNAPSHOT")
23+
opensearch_version = System.getProperty("opensearch.version", "3.3.0-SNAPSHOT")
2424
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
2525
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
2626
version_tokens = opensearch_version.tokenize('-')

src/test/java/org/opensearch/securityanalytics/TestHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ public static User randomUser() {
852852
OpenSearchRestTestCase.randomAlphaOfLength(10)
853853
),
854854
List.of(OpenSearchRestTestCase.randomAlphaOfLength(10), AccessRoles.ALL_ACCESS_ROLE),
855-
List.of("test_attr=test")
855+
Map.of("test_attr", "test")
856856
);
857857
}
858858

src/test/java/org/opensearch/securityanalytics/model/WriteableTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void testDetectorAsAStream() throws IOException {
3535
public void testDetector() throws IOException { // an edge case of detector serialization that failed testDetectorAsAStream() intermittently
3636
String detectorString = "{\"type\":\"detector\",\"name\":\"MczAuRCrve\",\"detector_type\":\"test_windows\"," +
3737
"\"user\":{\"name\":\"QhKrfthgxw\",\"backend_roles\":[\"uYvGLCPhfX\",\"fOLkcRxMWR\"],\"roles\"" +
38-
":[\"YuucNpVzTm\",\"all_access\"],\"custom_attribute_names\":[\"test_attr=test\"]," +
38+
":[\"YuucNpVzTm\",\"all_access\"],\"custom_attributes\":{\"test_attr\":\"test\"}," +
3939
"\"user_requested_tenant\":null},\"threat_intel_enabled\":false,\"enabled\":false,\"enabled_time\"" +
4040
":null,\"schedule\":{\"period\":{\"interval\":5,\"unit\":\"MINUTES\"}},\"inputs\":[{\"detector_input\"" +
4141
":{\"description\":\"\",\"indices\":[],\"custom_rules\":[],\"pre_packaged_rules\":[]}}],\"triggers\"" +

src/test/java/org/opensearch/securityanalytics/model/XContentTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public void testDetectorParsingWithNoName() {
4747
" \"zEMpObrYPM\",\n" +
4848
" \"all_access\"\n" +
4949
" ],\n" +
50-
" \"custom_attribute_names\": [\n" +
51-
" \"test_attr=test\"\n" +
52-
" ],\n" +
50+
" \"custom_attributes\": {\n" +
51+
" \"test_attr\":\"test\"\n" +
52+
" },\n" +
5353
" \"user_requested_tenant\": null\n" +
5454
" },\n" +
5555
" \"enabled\": false,\n" +
@@ -119,9 +119,9 @@ public void testDetectorParsingWithNoSchedule() {
119119
" \"zEMpObrYPM\",\n" +
120120
" \"all_access\"\n" +
121121
" ],\n" +
122-
" \"custom_attribute_names\": [\n" +
123-
" \"test_attr=test\"\n" +
124-
" ],\n" +
122+
" \"custom_attributes\": {\n" +
123+
" \"test_attr\":\"test\"\n" +
124+
" },\n" +
125125
" \"user_requested_tenant\": null\n" +
126126
" },\n" +
127127
" \"enabled\": false,\n" +

0 commit comments

Comments
 (0)