Upgrade to Sendgrid 4.4.5
Closes gh-20268
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user