Skip to content

Commit 67d4035

Browse files
Merge pull request #150 from RedisInsight/fix/RI-2242_qa-redis-cloud
Fix/ Update URL to Redis Cloud API
2 parents 4b6f198 + 1e46868 commit 67d4035

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
migrationsRun: process.env.DB_MIGRATIONS ? process.env.DB_MIGRATIONS === 'true' : true,
4949
},
5050
redis_cloud: {
51-
url: process.env.REDIS_CLOUD_URL || 'https://qa-api.redislabs.com/v1/',
51+
url: process.env.REDIS_CLOUD_URL || 'https://api.qa.redislabs.com/v1',
5252
},
5353
redis_clients: {
5454
idleSyncInterval: parseInt(process.env.CLIENTS_IDLE_SYNC_INTERVAL, 10) || 1000 * 60 * 60, // 1hr

redisinsight/api/config/production.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export default {
1818
database: join(homedir, 'redisinsight.db'),
1919
},
2020
redis_cloud: {
21-
url: process.env.REDIS_CLOUD_URL || 'https://api.redislabs.com/v1/',
21+
url: process.env.REDIS_CLOUD_URL || 'https://api.redislabs.com/v1',
2222
},
2323
};

redisinsight/api/src/modules/shared/services/redis-cloud-business/redis-cloud-business.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class RedisCloudBusinessService {
5050
try {
5151
const {
5252
data: { account },
53-
}: AxiosResponse = await this.api.get(`${this.config.url}`, {
53+
}: AxiosResponse = await this.api.get(`${this.config.url}/`, {
5454
headers: this.getAuthHeaders(apiKey, apiSecretKey),
5555
});
5656
this.logger.log('Succeed to get RE cloud account.');

redisinsight/api/test/helpers/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const constants = {
7070

7171
// cloud
7272
TEST_CLOUD_RTE: process.env.TEST_CLOUD_RTE,
73-
TEST_CLOUD_API: process.env.REDIS_CLOUD_URL || process.env.TEST_CLOUD_API || 'https://qa-api.redislabs.com/v1',
73+
TEST_CLOUD_API: process.env.REDIS_CLOUD_URL || process.env.TEST_CLOUD_API || 'https://api.qa.redislabs.com/v1',
7474
TEST_CLOUD_API_KEY: process.env.TEST_CLOUD_API_KEY,
7575
TEST_CLOUD_API_SECRET_KEY: process.env.TEST_CLOUD_API_SECRET_KEY,
7676
TEST_CLOUD_SUBSCRIPTION_NAME: process.env.TEST_CLOUD_SUBSCRIPTION_NAME || 'ITests',

0 commit comments

Comments
 (0)