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
faaf9a7e
Commit
faaf9a7e
authored
Feb 07, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to SendGrid 4.4.4
Closes gh-20092
parent
b8ccfbaf
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
build.gradle
spring-boot-project/spring-boot-dependencies/build.gradle
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfigurationTests.java
View file @
faaf9a7e
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -52,7 +52,7 @@ class SendGridAutoConfigurationTests {
...
@@ -52,7 +52,7 @@ class SendGridAutoConfigurationTests {
void
expectedSendGridBeanCreatedApiKey
()
{
void
expectedSendGridBeanCreatedApiKey
()
{
loadContext
(
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
loadContext
(
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
SendGrid
sendGrid
=
this
.
context
.
getBean
(
SendGrid
.
class
);
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
@Test
...
@@ -66,7 +66,7 @@ class SendGridAutoConfigurationTests {
...
@@ -66,7 +66,7 @@ class SendGridAutoConfigurationTests {
void
autoConfigurationNotFiredWhenBeanAlreadyCreated
()
{
void
autoConfigurationNotFiredWhenBeanAlreadyCreated
()
{
loadContext
(
ManualSendGridConfiguration
.
class
,
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
loadContext
(
ManualSendGridConfiguration
.
class
,
"spring.sendgrid.api-key:SG.SECRET-API-KEY"
);
SendGrid
sendGrid
=
this
.
context
.
getBean
(
SendGrid
.
class
);
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
@Test
...
...
spring-boot-project/spring-boot-dependencies/build.gradle
View file @
faaf9a7e
...
@@ -1533,7 +1533,7 @@ bom {
...
@@ -1533,7 +1533,7 @@ bom {
]
]
}
}
}
}
library
(
"SendGrid"
,
"4.4.
1
"
)
{
library
(
"SendGrid"
,
"4.4.
4
"
)
{
group
(
"com.sendgrid"
)
{
group
(
"com.sendgrid"
)
{
modules
=
[
modules
=
[
"sendgrid-java"
"sendgrid-java"
...
...
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