From bd4f7bff40319f3d891c6dd0ed669b8339ccfe18 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 23 Apr 2020 11:13:00 -0700 Subject: [PATCH] feat: Update public client library for Cloud Monitoring to introduce new Uptime check feature. Uptime HTTP(S) checks can now be GET or POST (#425) --- monitoring/snippets/test/alerts.test.js | 10 +++++----- monitoring/snippets/test/metrics.test.js | 10 +++++----- monitoring/snippets/test/quickstart.test.js | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/monitoring/snippets/test/alerts.test.js b/monitoring/snippets/test/alerts.test.js index 69bcd427ea..8662322df4 100644 --- a/monitoring/snippets/test/alerts.test.js +++ b/monitoring/snippets/test/alerts.test.js @@ -175,7 +175,7 @@ describe('alerts', () => { await deleteChannels(); }); - it('should replace notification channels', async function() { + it('should replace notification channels', async function () { this.retries(8); await delay(this.test); const stdout = execSync(`${cmd} replace ${policyOneName} ${channelName}`); @@ -183,7 +183,7 @@ describe('alerts', () => { assert.include(stdout, policyOneName); }); - it('should disable policies', async function() { + it('should disable policies', async function () { this.retries(8); await delay(this.test); const stdout = execSync( @@ -194,7 +194,7 @@ describe('alerts', () => { assert.include(stdout, policyTwoName); }); - it('should enable policies', async function() { + it('should enable policies', async function () { this.retries(8); await delay(this.test); const stdout = execSync( @@ -213,7 +213,7 @@ describe('alerts', () => { assert.include(stdout, 'second'); }); - it('should backup all policies', async function() { + it('should backup all policies', async function () { this.retries(8); await delay(this.test); const output = execSync(`${cmd} backup ${projectId}`); @@ -222,7 +222,7 @@ describe('alerts', () => { await client.deleteAlertPolicy({name: policyOneName}); }); - it('should restore policies', async function() { + it('should restore policies', async function () { this.retries(8); await delay(this.test); const output = execSync(`${cmd} restore ${projectId}`); diff --git a/monitoring/snippets/test/metrics.test.js b/monitoring/snippets/test/metrics.test.js index e184921feb..60b09b944d 100644 --- a/monitoring/snippets/test/metrics.test.js +++ b/monitoring/snippets/test/metrics.test.js @@ -43,7 +43,7 @@ const delay = async test => { }); }; describe('metrics', async () => { - it('should create a metric descriptors', async function() { + it('should create a metric descriptors', async function () { this.retries(8); await delay(this.test); const output = execSync(`${cmd} create`); @@ -51,7 +51,7 @@ describe('metrics', async () => { assert.include(output, `Type: ${customMetricId}`); }); - it('should list metric descriptors, including the new custom one', async function() { + it('should list metric descriptors, including the new custom one', async function () { this.retries(8); await delay(this.test); const output = execSync(`${cmd} list`); @@ -64,14 +64,14 @@ describe('metrics', async () => { assert.include(output, `Type: ${customMetricId}`); }); - it('should write time series data', async function() { + it('should write time series data', async function () { this.retries(5); await delay(this.test); const output = execSync(`${cmd} write`); assert.include(output, 'Done writing time series data.'); }); - it('should delete a metric descriptor', async function() { + it('should delete a metric descriptor', async function () { this.retries(5); await delay(this.test); const output = execSync(`${cmd} delete ${customMetricId}`); @@ -139,7 +139,7 @@ describe('metrics', async () => { }); }); - it('should read time series data aggregated', async function() { + it('should read time series data aggregated', async function () { this.retries(5); await delay(this.test); const [timeSeries] = await client.listTimeSeries({ diff --git a/monitoring/snippets/test/quickstart.test.js b/monitoring/snippets/test/quickstart.test.js index 5ffed8283f..20258cc46c 100644 --- a/monitoring/snippets/test/quickstart.test.js +++ b/monitoring/snippets/test/quickstart.test.js @@ -33,7 +33,7 @@ const delay = async test => { }); }; describe('quickstart', () => { - it('should run the quickstart', async function() { + it('should run the quickstart', async function () { this.retries(8); await delay(this.test); // delay the start of the test, if this is a retry. const result = execSync('node quickstart');