Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 44bb10f

Browse files
committed
tests: move CI tests to a less crowded zone
1 parent eed9dc2 commit 44bb10f

9 files changed

Lines changed: 41 additions & 41 deletions

File tree

__snapshots__/cluster.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[
1919
id: 'my-cluster',
2020
options: {
2121
nodes: 2,
22-
location: 'us-central1-b',
22+
location: 'us-central2-d',
2323
},
2424
},
2525
output: {
@@ -29,7 +29,7 @@ exports[
2929
reqOpts: {
3030
cluster: {
3131
name: 'projects/grape-spaceship-123/instances/i/clusters/my-cluster',
32-
location: 'us-central1-b',
32+
location: 'us-central2-d',
3333
serveNodes: 2,
3434
},
3535
updateMask: {
@@ -49,7 +49,7 @@ exports[
4949
options: {
5050
nodes: 2,
5151
storage: 'ssd',
52-
location: 'us-central1-b',
52+
location: 'us-central2-d',
5353
},
5454
},
5555
output: {
@@ -59,7 +59,7 @@ exports[
5959
reqOpts: {
6060
cluster: {
6161
name: 'projects/grape-spaceship-123/instances/i/clusters/my-cluster',
62-
location: 'us-central1-b',
62+
location: 'us-central2-d',
6363
serveNodes: 2,
6464
storage: 'ssd',
6565
},
@@ -80,7 +80,7 @@ exports[
8080
options: {
8181
nodes: 2,
8282
key: 'kms-key-name',
83-
location: 'us-central1-b',
83+
location: 'us-central2-d',
8484
},
8585
},
8686
output: {
@@ -90,7 +90,7 @@ exports[
9090
reqOpts: {
9191
cluster: {
9292
name: 'projects/grape-spaceship-123/instances/i/clusters/my-cluster',
93-
location: 'us-central1-b',
93+
location: 'us-central2-d',
9494
serveNodes: 2,
9595
key: 'kms-key-name',
9696
},
@@ -113,7 +113,7 @@ exports[
113113
encryption: {
114114
kmsKeyName: 'kms-key-name',
115115
},
116-
location: 'us-central1-b',
116+
location: 'us-central2-d',
117117
},
118118
},
119119
output: {
@@ -123,7 +123,7 @@ exports[
123123
reqOpts: {
124124
cluster: {
125125
name: 'projects/grape-spaceship-123/instances/i/clusters/my-cluster',
126-
location: 'us-central1-b',
126+
location: 'us-central2-d',
127127
serveNodes: 2,
128128
encryption: {
129129
kmsKeyName: 'kms-key-name',
@@ -147,7 +147,7 @@ exports[
147147
minServeNodes: 2,
148148
maxServeNodes: 3,
149149
cpuUtilizationPercent: 50,
150-
location: 'us-central1-b',
150+
location: 'us-central2-d',
151151
},
152152
},
153153
output: {
@@ -157,7 +157,7 @@ exports[
157157
reqOpts: {
158158
cluster: {
159159
name: 'projects/grape-spaceship-123/instances/i/clusters/my-cluster',
160-
location: 'us-central1-b',
160+
location: 'us-central2-d',
161161
clusterConfig: {
162162
clusterAutoscalingConfig: {
163163
autoscalingTargets: {

__snapshots__/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[
2020
options: {
2121
clusters: {
2222
nodes: 2,
23-
location: 'us-central1-b',
23+
location: 'us-central2-d',
2424
id: 'my-cluster',
2525
},
2626
},
@@ -37,7 +37,7 @@ exports[
3737
},
3838
clusters: {
3939
'my-cluster': {
40-
location: 'projects/test-project/locations/us-central1-b',
40+
location: 'projects/test-project/locations/us-central2-d',
4141
serveNodes: 2,
4242
defaultStorageType: 0,
4343
},
@@ -56,7 +56,7 @@ exports[
5656
clusters: {
5757
nodes: 2,
5858
storage: 'ssd',
59-
location: 'us-central1-b',
59+
location: 'us-central2-d',
6060
id: 'my-cluster',
6161
},
6262
},
@@ -73,7 +73,7 @@ exports[
7373
},
7474
clusters: {
7575
'my-cluster': {
76-
location: 'projects/test-project/locations/us-central1-b',
76+
location: 'projects/test-project/locations/us-central2-d',
7777
serveNodes: 2,
7878
defaultStorageType: 1,
7979
},
@@ -92,7 +92,7 @@ exports[
9292
clusters: {
9393
nodes: 2,
9494
key: 'kms-key-name',
95-
location: 'us-central1-b',
95+
location: 'us-central2-d',
9696
id: 'my-cluster',
9797
},
9898
},
@@ -109,7 +109,7 @@ exports[
109109
},
110110
clusters: {
111111
'my-cluster': {
112-
location: 'projects/test-project/locations/us-central1-b',
112+
location: 'projects/test-project/locations/us-central2-d',
113113
serveNodes: 2,
114114
defaultStorageType: 0,
115115
encryptionConfig: {
@@ -133,7 +133,7 @@ exports[
133133
encryption: {
134134
kmsKeyName: 'kms-key-name',
135135
},
136-
location: 'us-central1-b',
136+
location: 'us-central2-d',
137137
id: 'my-cluster',
138138
},
139139
},
@@ -150,7 +150,7 @@ exports[
150150
},
151151
clusters: {
152152
'my-cluster': {
153-
location: 'projects/test-project/locations/us-central1-b',
153+
location: 'projects/test-project/locations/us-central2-d',
154154
serveNodes: 2,
155155
defaultStorageType: 0,
156156
encryptionConfig: {
@@ -173,7 +173,7 @@ exports[
173173
minServeNodes: 2,
174174
maxServeNodes: 3,
175175
cpuUtilizationPercent: 50,
176-
location: 'us-central1-b',
176+
location: 'us-central2-d',
177177
id: 'my-cluster',
178178
},
179179
},
@@ -190,7 +190,7 @@ exports[
190190
},
191191
clusters: {
192192
'my-cluster': {
193-
location: 'projects/test-project/locations/us-central1-b',
193+
location: 'projects/test-project/locations/us-central2-d',
194194
clusterConfig: {
195195
clusterAutoscalingConfig: {
196196
autoscalingTargets: {

__snapshots__/instance.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[
1919
id: 'my-cluster',
2020
options: {
2121
nodes: 2,
22-
location: 'us-central1-b',
22+
location: 'us-central2-d',
2323
},
2424
},
2525
output: {
@@ -30,7 +30,7 @@ exports[
3030
parent: 'projects/my-project/instances/my-instance',
3131
clusterId: 'my-cluster',
3232
cluster: {
33-
location: 'projects/my-project/locations/us-central1-b',
33+
location: 'projects/my-project/locations/us-central2-d',
3434
serveNodes: 2,
3535
},
3636
},
@@ -46,7 +46,7 @@ exports[
4646
options: {
4747
nodes: 2,
4848
storage: 'ssd',
49-
location: 'us-central1-b',
49+
location: 'us-central2-d',
5050
},
5151
},
5252
output: {
@@ -57,7 +57,7 @@ exports[
5757
parent: 'projects/my-project/instances/my-instance',
5858
clusterId: 'my-cluster',
5959
cluster: {
60-
location: 'projects/my-project/locations/us-central1-b',
60+
location: 'projects/my-project/locations/us-central2-d',
6161
serveNodes: 2,
6262
defaultStorageType: 1,
6363
},
@@ -74,7 +74,7 @@ exports[
7474
options: {
7575
nodes: 2,
7676
key: 'kms-key-name',
77-
location: 'us-central1-b',
77+
location: 'us-central2-d',
7878
},
7979
},
8080
output: {
@@ -85,7 +85,7 @@ exports[
8585
parent: 'projects/my-project/instances/my-instance',
8686
clusterId: 'my-cluster',
8787
cluster: {
88-
location: 'projects/my-project/locations/us-central1-b',
88+
location: 'projects/my-project/locations/us-central2-d',
8989
serveNodes: 2,
9090
encryptionConfig: {
9191
kmsKeyName: 'kms-key-name',
@@ -106,7 +106,7 @@ exports[
106106
encryption: {
107107
kmsKeyName: 'kms-key-name',
108108
},
109-
location: 'us-central1-b',
109+
location: 'us-central2-d',
110110
},
111111
},
112112
output: {
@@ -117,7 +117,7 @@ exports[
117117
parent: 'projects/my-project/instances/my-instance',
118118
clusterId: 'my-cluster',
119119
cluster: {
120-
location: 'projects/my-project/locations/us-central1-b',
120+
location: 'projects/my-project/locations/us-central2-d',
121121
serveNodes: 2,
122122
encryptionConfig: {
123123
kmsKeyName: 'kms-key-name',
@@ -137,7 +137,7 @@ exports[
137137
minServeNodes: 2,
138138
maxServeNodes: 3,
139139
cpuUtilizationPercent: 50,
140-
location: 'us-central1-b',
140+
location: 'us-central2-d',
141141
},
142142
},
143143
output: {
@@ -148,7 +148,7 @@ exports[
148148
parent: 'projects/my-project/instances/my-instance',
149149
clusterId: 'my-cluster',
150150
cluster: {
151-
location: 'projects/my-project/locations/us-central1-b',
151+
location: 'projects/my-project/locations/us-central2-d',
152152
clusterConfig: {
153153
clusterAutoscalingConfig: {
154154
autoscalingTargets: {

system-test/app-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('📦 App Profile', () => {
4141
// Creates an instance with clusters
4242
const instanceClusters = [
4343
'us-east1-c',
44-
'us-central1-b',
44+
'us-central2-d',
4545
'us-west1-b',
4646
].map(location => {
4747
return {

system-test/bigtable.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('Bigtable', () => {
299299

300300
// eslint-disable-next-line @typescript-eslint/no-unused-vars
301301
const [_, operation] = await cluster.create({
302-
location: 'us-central1-b',
302+
location: 'us-central2-d',
303303
nodes: 3,
304304
key: kmsKeyName,
305305
});
@@ -315,7 +315,7 @@ describe('Bigtable', () => {
315315
try {
316316
// eslint-disable-next-line @typescript-eslint/no-unused-vars
317317
const [_, operation] = await cluster.create({
318-
location: 'us-central1-b',
318+
location: 'us-central2-d',
319319
nodes: 3,
320320
});
321321
await operation.promise();
@@ -1759,7 +1759,7 @@ describe('Bigtable', () => {
17591759
const [, operation] = await INSTANCE.cluster(
17601760
destinationClusterId,
17611761
).create({
1762-
location: 'us-central1-b',
1762+
location: 'us-central2-d',
17631763
nodes: 3,
17641764
});
17651765
await operation.promise();

test/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe('Bigtable/Cluster', () => {
117117
});
118118

119119
describe('getLocation_', () => {
120-
const LOCATION = 'us-central1-b';
120+
const LOCATION = 'us-central2-d';
121121

122122
it('should format the location name', () => {
123123
const expected = `projects/${PROJECT_ID}/locations/${LOCATION}`;

test/constants/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export const createClusterOptionsList: CreateClusterOptions[] = [
2424
maxServeNodes: 3,
2525
cpuUtilizationPercent: 50,
2626
},
27-
].map(option => Object.assign(option, {location: 'us-central1-b'}));
27+
].map(option => Object.assign(option, {location: 'us-central2-d'}));

test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ describe('Bigtable', () => {
381381
const INSTANCE_ID = 'my-instance';
382382
const CLUSTER = {
383383
id: 'my-cluster',
384-
location: 'us-central1-b',
384+
location: 'us-central2-d',
385385
nodes: 3,
386386
storage: 'ssd',
387387
};
@@ -662,7 +662,7 @@ describe('Bigtable', () => {
662662
clusters: [
663663
{
664664
nodes: 3,
665-
location: 'us-central1-b',
665+
location: 'us-central2-d',
666666
storage: 'ssd',
667667
},
668668
],

test/instance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,14 @@ describe('Bigtable/Instance', () => {
400400
assert.strictEqual(config.reqOpts.clusterId, CLUSTER_ID);
401401
assert.strictEqual(
402402
config.reqOpts.cluster.location,
403-
'projects/my-project/locations/us-central1-b',
403+
'projects/my-project/locations/us-central2-d',
404404
);
405405
assert.strictEqual(config.gaxOpts, undefined);
406406
done();
407407
};
408408
instance.createCluster(
409409
CLUSTER_ID,
410-
{nodes: 2, location: 'us-central1-b'},
410+
{nodes: 2, location: 'us-central2-d'},
411411
assert.ifError,
412412
);
413413
});
@@ -447,7 +447,7 @@ describe('Bigtable/Instance', () => {
447447

448448
it('should respect the location option', done => {
449449
const options = {
450-
location: 'us-central1-b',
450+
location: 'us-central2-d',
451451
nodes: 2,
452452
} as CreateClusterOptions;
453453
const fakeLocation = Cluster.getLocation_(

0 commit comments

Comments
 (0)