Skip to content

Commit faaf9a7

Browse files
committed
Upgrade to SendGrid 4.4.4
Closes gh-20092
1 parent b8ccfba commit faaf9a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfigurationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ void close() {
5252
void expectedSendGridBeanCreatedApiKey() {
5353
loadContext("spring.sendgrid.api-key:SG.SECRET-API-KEY");
5454
SendGrid sendGrid = this.context.getBean(SendGrid.class);
55-
assertThat(sendGrid).extracting("apiKey").isEqualTo("SG.SECRET-API-KEY");
55+
assertThat(sendGrid.getRequestHeaders().get("Authorization")).isEqualTo("Bearer SG.SECRET-API-KEY");
5656
}
5757

5858
@Test
@@ -66,7 +66,7 @@ void autoConfigurationNotFiredWhenPropertiesNotSet() {
6666
void autoConfigurationNotFiredWhenBeanAlreadyCreated() {
6767
loadContext(ManualSendGridConfiguration.class, "spring.sendgrid.api-key:SG.SECRET-API-KEY");
6868
SendGrid sendGrid = this.context.getBean(SendGrid.class);
69-
assertThat(sendGrid).extracting("apiKey").isEqualTo("SG.CUSTOM_API_KEY");
69+
assertThat(sendGrid.getRequestHeaders().get("Authorization")).isEqualTo("Bearer SG.CUSTOM_API_KEY");
7070
}
7171

7272
@Test

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ bom {
15331533
]
15341534
}
15351535
}
1536-
library("SendGrid", "4.4.1") {
1536+
library("SendGrid", "4.4.4") {
15371537
group("com.sendgrid") {
15381538
modules = [
15391539
"sendgrid-java"

0 commit comments

Comments
 (0)