-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[conluz-70] Configured SSL. Created keystore. Added www.omie.es certi…
…ficate in the keystore
- Loading branch information
1 parent
d00b12b
commit 4a3e029
Showing
6 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIGSDCCBTCgAwIBAgIMNT+FkkXiTXv1T542MA0GCSqGSIb3DQEBCwUAMFMxCzAJ | ||
BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSkwJwYDVQQDEyBH | ||
bG9iYWxTaWduIEdDQyBSMyBEViBUTFMgQ0EgMjAyMDAeFw0yNDA0MTcxMzQ3MTJa | ||
Fw0yNTAxMDUwOTIwNDZaMBYxFDASBgNVBAMTC3d3dy5vbWllLmVzMIIBIjANBgkq | ||
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArVj5hEwfrJXG9xfG3otAFli93JzghTBl | ||
t9OmIYe5+2WpazHu6IWMpbWWqHtQhFvK5Szq3dUEKFY8NQbczIo4bAAuFMz0EPHd | ||
3DIO2Z0MnTKW0AYzwzcvrCubU3CbzIV2Fsnymrj3t/KalO9SCJlJj0JsEcNyehu/ | ||
MpplXe/1Surej5O6ymQ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AHYAfVkeEuF4 | ||
KnscYWd8Xv340IdcFKBOlZ65Ay/ZDowuebgAAAGO7E/BbgAABAMARzBFAiAmvr+E | ||
LWB0qZJd7ONutHsbO2WTyoX5bJJS+0ZEfkBhKgIhAIoAXFn1ozyUVAeqZCDH/j6B | ||
zJ3g2x722Rd1qJ7A4zwrAHcATnWjJ1yaEMM4W2zU3z9S6x3w4I4bjWnAsfpksWKa | ||
Od8AAAGO7E/BWAAABAMASDBGAiEAtVom3RSoJWHD0lxogzPkdPzKl5jjQ0wmKj/2 | ||
uTZcQTUCIQDg4bBW4aYFqOvyrVmdCrwxwYhPkPiEPhLU6pWmbaGBvjANBgkqhkiG | ||
9w0BAQsFAAOCAQEAQ2EUXBa4f6HNKYWDsb5x4HPzJDnCTbaqE0N7Ba13FZBKG5Ei | ||
Yz9BDUyeRHxZOg+KP/ZG4H/Bft4yfyF7b0RMht9i77w04pKpLDBWDDO35aOR2K+C | ||
NJe7ngwTrtF5hqWrswcWFzR5Yao4JqZ2OxK81ChCN6DIKngSsYR1ftPw8dIcgVkr | ||
EPXlOqZrJWsmuZYVH46NNYcAY1BWOr1P+r6/h7a4C7sxOrCpe0q8UP9WKX+RIzmj | ||
HQZwxdwNuqWTj+PAMBBi1ioh06YgFINKtYbr5vckNxvCENGkamZhN2ealJ4goC8z | ||
EOZMdqe2HJkGAsBoMAm9hiJtMS/E2hv9qW57pg== | ||
-----END CERTIFICATE----- |
38 changes: 38 additions & 0 deletions
38
...oenergia/conluz/infrastructure/price/omie/sync/GetPriceRepositoryRestIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.lucoenergia.conluz.infrastructure.price.omie.sync; | ||
|
||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
import org.lucoenergia.conluz.domain.price.PriceByHour; | ||
import org.lucoenergia.conluz.infrastructure.price.omie.get.GetPriceRepositoryRest; | ||
import org.lucoenergia.conluz.infrastructure.shared.BaseIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
import java.time.LocalDate; | ||
import java.time.OffsetDateTime; | ||
import java.time.ZoneOffset; | ||
import java.time.format.DateTimeFormatter; | ||
import java.util.List; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
//@Disabled("These tests should not be included in a CI pipeline because connects with www.omie.es.") | ||
class GetPriceRepositoryRestIntegrationTest extends BaseIntegrationTest { | ||
|
||
@Autowired | ||
private GetPriceRepositoryRest repository; | ||
|
||
@Test | ||
void syncDailyPrices_successfulResponseWithNumberOne() { | ||
|
||
// Assemble | ||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd"); | ||
LocalDate date = LocalDate.parse("20230528", formatter); | ||
OffsetDateTime dateTime = date.atStartOfDay().atOffset(ZoneOffset.UTC); | ||
|
||
// Act | ||
List<PriceByHour> prices = repository.getPricesByDay(dateTime); | ||
|
||
// Assert | ||
assertEquals(24, prices.size()); | ||
} | ||
} |