Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
24d252e3
Commit
24d252e3
authored
May 17, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Couchbase Client 3.1.5
Closes gh-26531
parent
78f70440
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
CouchbaseAutoConfigurationTests.java
...oconfigure/couchbase/CouchbaseAutoConfigurationTests.java
+3
-3
build.gradle
spring-boot-project/spring-boot-dependencies/build.gradle
+1
-1
SampleCouchbaseApplicationTests.java
...etest/data/couchbase/SampleCouchbaseApplicationTests.java
+3
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationTests.java
View file @
24d252e3
...
@@ -79,8 +79,8 @@ class CouchbaseAutoConfigurationTests {
...
@@ -79,8 +79,8 @@ class CouchbaseAutoConfigurationTests {
context
.
getBean
(
ObjectMapper
.
class
).
getRegisteredModuleIds
());
context
.
getBean
(
ObjectMapper
.
class
).
getRegisteredModuleIds
());
expectedModuleIds
.
add
(
new
JsonValueModule
().
getTypeId
());
expectedModuleIds
.
add
(
new
JsonValueModule
().
getTypeId
());
JsonSerializer
serializer
=
env
.
jsonSerializer
();
JsonSerializer
serializer
=
env
.
jsonSerializer
();
assertThat
(
serializer
).
isInstanceOf
(
JacksonJsonSerializer
.
class
).
extracting
(
"mapper"
)
assertThat
(
serializer
).
extracting
(
"wrapped"
).
isInstanceOf
(
JacksonJsonSerializer
.
class
)
.
asInstanceOf
(
InstanceOfAssertFactories
.
type
(
ObjectMapper
.
class
))
.
extracting
(
"mapper"
).
asInstanceOf
(
InstanceOfAssertFactories
.
type
(
ObjectMapper
.
class
))
.
extracting
(
ObjectMapper:
:
getRegisteredModuleIds
).
isEqualTo
(
expectedModuleIds
);
.
extracting
(
ObjectMapper:
:
getRegisteredModuleIds
).
isEqualTo
(
expectedModuleIds
);
});
});
}
}
...
@@ -95,7 +95,7 @@ class CouchbaseAutoConfigurationTests {
...
@@ -95,7 +95,7 @@ class CouchbaseAutoConfigurationTests {
.
withPropertyValues
(
"spring.couchbase.connection-string=localhost"
).
run
((
context
)
->
{
.
withPropertyValues
(
"spring.couchbase.connection-string=localhost"
).
run
((
context
)
->
{
ClusterEnvironment
env
=
context
.
getBean
(
ClusterEnvironment
.
class
);
ClusterEnvironment
env
=
context
.
getBean
(
ClusterEnvironment
.
class
);
JsonSerializer
serializer
=
env
.
jsonSerializer
();
JsonSerializer
serializer
=
env
.
jsonSerializer
();
assertThat
(
serializer
).
isSameAs
(
customJsonSerializer
);
assertThat
(
serializer
).
extracting
(
"wrapped"
).
isSameAs
(
customJsonSerializer
);
});
});
}
}
...
...
spring-boot-project/spring-boot-dependencies/build.gradle
View file @
24d252e3
...
@@ -215,7 +215,7 @@ bom {
...
@@ -215,7 +215,7 @@ bom {
]
]
}
}
}
}
library
(
"Couchbase Client"
,
"3.1.
4
"
)
{
library
(
"Couchbase Client"
,
"3.1.
5
"
)
{
group
(
"com.couchbase.client"
)
{
group
(
"com.couchbase.client"
)
{
modules
=
[
modules
=
[
"java-client"
"java-client"
...
...
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-couchbase/src/test/java/smoketest/data/couchbase/SampleCouchbaseApplicationTests.java
View file @
24d252e3
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
package
smoketest
.
data
.
couchbase
;
package
smoketest
.
data
.
couchbase
;
import
com.couchbase.client.core.error.
FeatureNotAvailable
Exception
;
import
com.couchbase.client.core.error.
AmbiguousTimeout
Exception
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.extension.ExtendWith
;
import
org.junit.jupiter.api.extension.ExtendWith
;
...
@@ -46,10 +46,10 @@ class SampleCouchbaseApplicationTests {
...
@@ -46,10 +46,10 @@ class SampleCouchbaseApplicationTests {
private
boolean
serverNotRunning
(
RuntimeException
ex
)
{
private
boolean
serverNotRunning
(
RuntimeException
ex
)
{
NestedCheckedException
nested
=
new
NestedCheckedException
(
"failed"
,
ex
)
{
NestedCheckedException
nested
=
new
NestedCheckedException
(
"failed"
,
ex
)
{
};
};
if
(
nested
.
contains
(
FeatureNotAvailable
Exception
.
class
))
{
if
(
nested
.
contains
(
AmbiguousTimeout
Exception
.
class
))
{
Throwable
root
=
nested
.
getRootCause
();
Throwable
root
=
nested
.
getRootCause
();
// This is not ideal, we should have a better way to know what is going on
// This is not ideal, we should have a better way to know what is going on
if
(
root
.
getMessage
().
contains
(
"
The cluster does not support cluster-level queries
"
))
{
if
(
root
.
getMessage
().
contains
(
"
QueryRequest, Reason: TIMEOUT
"
))
{
return
true
;
return
true
;
}
}
}
}
...
...
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