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
a7f3b801
Commit
a7f3b801
authored
Feb 21, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Sendgrid 4.4.5
Closes gh-20268
parent
d684277f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SendGridAutoConfigurationTests.java
...utoconfigure/sendgrid/SendGridAutoConfigurationTests.java
+3
-3
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfigurationTests.java
View file @
a7f3b801
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -52,7 +52,7 @@ class SendGridAutoConfigurationTests {
void
expectedSendGridBeanCreatedApiKey
()
{
loadContext
(
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
SendGrid
sendGrid
=
this
.
context
.
getBean
(
SendGrid
.
class
);
assertThat
(
sendGrid
).
extracting
(
"apiKey"
).
isEqualTo
(
"
SG.SECRET-API-KEY"
);
assertThat
(
sendGrid
.
getRequestHeaders
().
get
(
"Authorization"
)).
isEqualTo
(
"Bearer
SG.SECRET-API-KEY"
);
}
@Test
...
...
@@ -66,7 +66,7 @@ class SendGridAutoConfigurationTests {
void
autoConfigurationNotFiredWhenBeanAlreadyCreated
()
{
loadContext
(
ManualSendGridConfiguration
.
class
,
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
SendGrid
sendGrid
=
this
.
context
.
getBean
(
SendGrid
.
class
);
assertThat
(
sendGrid
).
extracting
(
"apiKey"
).
isEqualTo
(
"
SG.CUSTOM_API_KEY"
);
assertThat
(
sendGrid
.
getRequestHeaders
().
get
(
"Authorization"
)).
isEqualTo
(
"Bearer
SG.CUSTOM_API_KEY"
);
}
@Test
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
a7f3b801
...
...
@@ -180,7 +180,7 @@
<rxjava2.version>
2.2.17
</rxjava2.version>
<selenium.version>
3.141.59
</selenium.version>
<selenium-htmlunit.version>
2.36.0
</selenium-htmlunit.version>
<sendgrid.version>
4.4.
1
</sendgrid.version>
<sendgrid.version>
4.4.
5
</sendgrid.version>
<servlet-api.version>
4.0.1
</servlet-api.version>
<slf4j.version>
1.7.30
</slf4j.version>
<snakeyaml.version>
1.25
</snakeyaml.version>
...
...
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