Skip to content

Commit 265280a

Browse files
authored
Merge pull request #57 from influxdata/copilot/list-databases-test-fix
Fix Cloud Serverless database operations using wrong HTTP client plane
2 parents 67083a2 + e533b0f commit 265280a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/services/database-management.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export class DatabaseManagementService {
404404
*/
405405
private async listDatabasesCloudServerless(): Promise<DatabaseInfo[]> {
406406
try {
407-
const httpClient = this.baseService.getInfluxHttpClient(true);
407+
const httpClient = this.baseService.getInfluxHttpClient(false);
408408

409409
const response = await httpClient.get<{ buckets?: any[] }>(
410410
"/api/v2/buckets",
@@ -488,7 +488,7 @@ export class DatabaseManagementService {
488488
config?: CloudServerlessBucketConfig,
489489
): Promise<boolean> {
490490
try {
491-
const httpClient = this.baseService.getInfluxHttpClient(true);
491+
const httpClient = this.baseService.getInfluxHttpClient(false);
492492

493493
const orgsResponse = await httpClient.get<{ orgs?: any[] }>(
494494
"/api/v2/orgs",
@@ -530,7 +530,7 @@ export class DatabaseManagementService {
530530
*/
531531
private async deleteDatabaseCloudServerless(name: string): Promise<boolean> {
532532
try {
533-
const httpClient = this.baseService.getInfluxHttpClient(true);
533+
const httpClient = this.baseService.getInfluxHttpClient(false);
534534

535535
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
536536
"/api/v2/buckets",
@@ -566,7 +566,7 @@ export class DatabaseManagementService {
566566
config: Partial<CloudServerlessBucketConfig>,
567567
): Promise<boolean> {
568568
try {
569-
const httpClient = this.baseService.getInfluxHttpClient(true);
569+
const httpClient = this.baseService.getInfluxHttpClient(false);
570570

571571
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
572572
"/api/v2/buckets",

src/services/serverless-schema-management.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class SchemaManagementService {
6969
this.validateSchemaOperationSupport();
7070

7171
try {
72-
const httpClient = this.baseService.getInfluxHttpClient(true);
72+
const httpClient = this.baseService.getInfluxHttpClient(false);
7373

7474
// First, get the bucket ID by name
7575
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
@@ -137,7 +137,7 @@ export class SchemaManagementService {
137137
this.validateSchemaOperationSupport();
138138

139139
try {
140-
const httpClient = this.baseService.getInfluxHttpClient(true);
140+
const httpClient = this.baseService.getInfluxHttpClient(false);
141141

142142
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
143143
"/api/v2/buckets",
@@ -221,7 +221,7 @@ export class SchemaManagementService {
221221
this.validateSchemaOperationSupport();
222222

223223
try {
224-
const httpClient = this.baseService.getInfluxHttpClient(true);
224+
const httpClient = this.baseService.getInfluxHttpClient(false);
225225

226226
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
227227
"/api/v2/buckets",
@@ -284,7 +284,7 @@ export class SchemaManagementService {
284284
this.validateSchemaOperationSupport();
285285

286286
try {
287-
const httpClient = this.baseService.getInfluxHttpClient(true);
287+
const httpClient = this.baseService.getInfluxHttpClient(false);
288288

289289
const bucketsResponse = await httpClient.get<{ buckets?: any[] }>(
290290
"/api/v2/buckets",

0 commit comments

Comments
 (0)