Skip to content

Commit 794012a

Browse files
committed
Revert "Revert "Use cosmotech-api-common 0.1.36, add redis-om-spring dep remove autoconfigure RedisModulesConfiguration""
This reverts commit 1ca3e8f.
1 parent 1ca3e8f commit 794012a

File tree

3 files changed

+87
-11
lines changed

3 files changed

+87
-11
lines changed

api/src/integrationTest/resources/application-test.yml

Lines changed: 83 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,91 @@ management:
66
endpoints:
77
enabled-by-default: false
88

9-
#csm:
10-
# platform:
11-
# # TODO ASO : use a dedicated 'test' value, with specific test implementations for services
12-
# vendor: azure
13-
# azure:
14-
# cosmos:
15-
# # Base64
16-
# key: "ZmFrZS1rZXkK"
17-
# uri: "https://faketestaccount.documents.azure.com:443/"
189
csm:
1910
platform:
11+
azure:
12+
appIdUri: "http://dev.api.cosmotech.com"
13+
credentials:
14+
# Deprecated - use csm.platform.azure.credentials.core.tenantId instead
15+
tenantId: ""
16+
# Deprecated - use csm.platform.azure.credentials.core.clientId instead
17+
clientId: ""
18+
# Deprecated - use csm.platform.azure.credentials.core.clientSecret instead
19+
clientSecret: ""
20+
# Deprecated - use csm.platform.azure.credentials.core.aadPodIdBinding instead
21+
aadPodIdBinding: "phoenix-pod-identity"
22+
core:
23+
tenantId: "${csm.platform.azure.credentials.tenantId}"
24+
clientId: "${csm.platform.azure.credentials.clientId}"
25+
clientSecret: "${csm.platform.azure.credentials.clientSecret}"
26+
aadPodIdBinding: "${csm.platform.azure.credentials.aadPodIdBinding}"
27+
customer:
28+
tenantId: null
29+
clientId: null
30+
clientSecret: null
31+
storage:
32+
baseUri: ""
33+
resourceUri: ""
34+
# Storage account name length should be between 3 and 24 and use numbers and lower-case letters only
35+
account-name: "storageaccountname"
36+
# Fill storage account access key copied from portal
37+
account-key: "[storage-account-access-key]"
38+
# Fill storage endpoint URL copied from portal
39+
blob-endpoint: "https://${csm.platform.azure.storage.account-name}.blob.core.windows.net"
40+
connection-string: "DefaultEndpointsProtocol=https;AccountName=${csm.platform.azure.storage.account-name};AccountKey=${csm.platform.azure.storage.account-key};EndpointSuffix=core.windows.net"
41+
containerRegistries:
42+
core: ghcr.io
43+
solutions: ""
44+
eventBus:
45+
baseUri: ""
46+
# One of 'tenant_client_credentials' or 'shared_access_policy'.
47+
# Due to PROD-8071, shared_access_policy is needed when the platform is deployed in a tenant
48+
# different from the core Platform one. This is applicable to managed applications
49+
# provisioned via the Azure Marketplace
50+
authentication:
51+
strategy: tenant_client_credentials
52+
sharedAccessPolicy:
53+
namespace:
54+
name: RootManageSharedAccessKey
55+
key: null
56+
dataWarehouseCluster:
57+
baseUri: ""
58+
options:
59+
ingestionUri: ""
60+
keyVault:
61+
analytics:
62+
resourceUri: ""
63+
instrumentationKey: ""
64+
connectionString: "InstrumentationKey=${csm.platform.azure.analytics.instrumentationKey};IngestionEndpoint=https://francecentral-0.in.applicationinsights.azure.com/"
65+
cosmos:
66+
connectionMode: ""
67+
consistencyLevel: ""
68+
core-database:
69+
name: phoenix-core
70+
connectors:
71+
container: connectors
72+
organizations:
73+
container: organizations
74+
users:
75+
container: users
76+
key: "azurecosmosdbkey"
77+
populateQueryMetrics: true
78+
uri: "https://azurecosmosdbkey.documents.azure.com:443/"
79+
data-ingestion:
80+
# Number of seconds to wait after a scenario run workflow end time, before
81+
# starting to check ADX for data ingestion state.
82+
# See https://bit.ly/3FXshzE for the rationale
83+
waiting-time-before-ingestion-seconds: 15
84+
# number of minutes after a scenario run workflow end time during which an ingestion failure
85+
# detected is considered linked to the current scenario run
86+
ingestion-observation-window-to-be-considered-a-failure-minutes: 5
87+
# number of seconds to wait after the checking the scenario validation ingestion status
88+
sleeping-time-before-querying-scenario-validation-status-seconds: 5
89+
# number of retry to query the scenario validation status
90+
max-retry-authorized: 5
91+
state:
92+
# the timeout in second before considering no data in probes measures and control plane is an issue
93+
no-data-time-out-seconds: 60
2094
metrics:
2195
enabled: false
2296
identityProvider :

api/src/main/kotlin/com/cosmotech/api/CsmApiApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
// Licensed under the MIT license.
33
package com.cosmotech.api
44

5+
import com.redis.om.spring.RedisModulesConfiguration
56
import org.springframework.boot.autoconfigure.SpringBootApplication
67
import org.springframework.boot.runApplication
78
import org.springframework.context.annotation.ComponentScan
89
import org.springframework.context.annotation.FilterType
910
import org.springframework.scheduling.annotation.EnableScheduling
1011

11-
@SpringBootApplication
12+
@SpringBootApplication(exclude = [RedisModulesConfiguration::class])
1213
@EnableScheduling
1314
@ComponentScan(
1415
basePackages = ["com.cosmotech"],

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ group = "com.cosmotech"
3939
version = scmVersion.version
4040

4141
val kotlinJvmTarget = 17
42-
val cosmotechApiCommonVersion = "0.1.34-SNAPSHOT"
42+
val cosmotechApiCommonVersion = "0.1.36-SNAPSHOT"
4343
val cosmotechApiAzureVersion = "0.1.8-SNAPSHOT"
4444
val cosmotechApiCosmosDBVersion = "0.1.0-SNAPSHOT"
4545
val azureSpringBootBomVersion = "3.14.0"
@@ -214,6 +214,7 @@ subprojects {
214214

215215
implementation("redis.clients:jedis:${jedisVersion}")
216216
implementation("com.redislabs:jredistimeseries:${jredistimeseriesVersion}")
217+
implementation("com.redis.om:redis-om-spring:0.6.3")
217218

218219
testImplementation(kotlin("test"))
219220
testImplementation(platform("org.junit:junit-bom:5.9.2"))

0 commit comments

Comments
 (0)