Skip to content

Commit 3928e22

Browse files
authored
test: enable video-intelligence tests (#2981)
* test: enable video-intelligence tests * remove v1p2beta1 test
1 parent f93be79 commit 3928e22

16 files changed

+15
-64
lines changed

video-intelligence/system-test/analyze-face-detection-gcs.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-face-detection-gcs.js';
2424
const gcsUri = 'gs://cloud-samples-data/video/googlework_short.mp4';
2525

26-
describe.skip('analyzing faces in video', () => {
26+
describe('analyzing faces in video', () => {
2727
it('should identify faces in a file in Google Storage', async () => {
2828
const output = execSync(`${cmd} ${gcsUri}`);
2929
assert.match(output, /Face detected:/);

video-intelligence/system-test/analyze-face-detection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-face-detection.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('analyzing faces in video', () => {
26+
describe('analyzing faces in video', () => {
2727
it('should identify faces in a local file', async () => {
2828
const output = execSync(`${cmd} ${file}`);
2929
assert.match(output, /Face detected:/);

video-intelligence/system-test/analyze-person-detection-gcs.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-person-detection-gcs.js';
2424
const gcsUri = 'gs://cloud-samples-data/video/googlework_short.mp4';
2525

26-
describe.skip('analyzing people in video', () => {
26+
describe('analyzing people in video', () => {
2727
it('should identify people in a file in Google Storage', async () => {
2828
const output = execSync(`${cmd} ${gcsUri}`);
2929
assert.match(output, /Landmark/);

video-intelligence/system-test/analyze-person-detection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-person-detection.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('analyzing people in video', () => {
26+
describe('analyzing people in video', () => {
2727
it('should identify people in a local file', async () => {
2828
const output = execSync(`${cmd} ${file}`);
2929
assert.match(output, /Landmark/);

video-intelligence/system-test/analyze-streaming-annotation-to-storage.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const project = process.env.GCLOUD_PROJECT;
2424
const file = 'resources/googlework_short.mp4';
2525
const outputUri = 'gs://' + project + '/VIDEO_STREAMING_OUTPUT';
2626

27-
describe.skip('streaming annotation to storage', () => {
27+
describe('streaming annotation to storage', () => {
2828
it('should store the annotation results in GCS', async () => {
2929
const output = execSync(`${cmd} ${file} ${outputUri}`);
3030
assert.match(output, /The annotation is stored at:/);

video-intelligence/system-test/analyze-streaming-automl-classification.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const modelId = 'VCN3094808572840640512';
2525
const project = process.env.GCLOUD_PROJECT;
2626
const file = 'resources/googlework_short.mp4';
2727

28-
describe.skip('streaming automl classification', function () {
28+
describe('streaming automl classification', function () {
2929
this.retries(3);
3030
it('should classify the action in the streaming video', async () => {
3131
const output = execSync(`${cmd} ${file} ${project} ${modelId}`);

video-intelligence/system-test/analyze-streaming-automl-object-tracking.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const modelId = 'VOT409893536788381696';
2525
const project = process.env.GCLOUD_PROJECT;
2626
const file = 'resources/googlework_short.mp4';
2727

28-
describe.skip('streaming automl object tracking', function () {
28+
describe('streaming automl object tracking', function () {
2929
this.retries(3);
3030
it('should track an object in a streaming video', async () => {
3131
const output = execSync(`${cmd} ${file} ${project} ${modelId}`);

video-intelligence/system-test/analyze-streaming-labels.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-streaming-labels.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('streaming label', function () {
26+
describe('streaming label', function () {
2727
this.retries(3);
2828
it('should analyze labels in a streaming video', async () => {
2929
const output = execSync(`${cmd} ${file}`);

video-intelligence/system-test/analyze-streaming-object.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-streaming-object.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('streaming object', () => {
26+
describe('streaming object', () => {
2727
it('should track an object in a streaming video', async () => {
2828
const output = execSync(`${cmd} ${file}`);
2929
assert.match(output, /cat/);

video-intelligence/system-test/analyze-streaming-safe-search.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2222
const cmd = 'node analyze-streaming-safe-search.js';
2323
const file = 'resources/googlework_short.mp4';
2424

25-
describe.skip('streaming safe search', function () {
25+
describe('streaming safe search', function () {
2626
this.retries(3);
2727
it('should analyze explicit content in a streaming video', async () => {
2828
const output = execSync(`${cmd} ${file}`);

video-intelligence/system-test/analyze-streaming-shot-change.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-streaming-shot-change.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('streaming shot change', function () {
26+
describe('streaming shot change', function () {
2727
this.retries(3);
2828
it('should analyze shot changes in a streaming video', async () => {
2929
const output = execSync(`${cmd} ${file}`);

video-intelligence/system-test/analyze.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const file2 = 'resources/googlework_short.mp4';
2929
const possibleTexts =
3030
/Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;
3131

32-
describe.skip('analyze samples', () => {
32+
describe('analyze samples', () => {
3333
// analyze_labels_local
3434
it('should analyze labels in a local file', async () => {
3535
const output = execSync(`${cmd} labels-file ${file}`);

video-intelligence/system-test/analyze.v1p2beta1.test.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

video-intelligence/system-test/detect_logo.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node detect_logo.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe.skip('analyzing logos in video', () => {
26+
describe('analyzing logos in video', () => {
2727
it('should detect a logo in a local file', async () => {
2828
const output = execSync(`${cmd} ${file}`);
2929
assert.match(output, /Entity Id/);

video-intelligence/system-test/detect_logo_gcs.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node detect_logo_gcs.js';
2424
const file = 'gs://cloud-samples-data/video/googlework_short.mp4';
2525

26-
describe.skip('analyzing logos in video on gcs', () => {
26+
describe('analyzing logos in video on gcs', () => {
2727
it('should detect a logo in a gcs file', async () => {
2828
const output = execSync(`${cmd} ${file}`);
2929
assert.match(output, /Entity Id/);

video-intelligence/system-test/quickstart.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2424
const cmd = 'node quickstart.js';
2525
const cwd = path.join(__dirname, '..');
2626

27-
describe.skip('quickstart samples', () => {
27+
describe('quickstart samples', () => {
2828
it('should analyze a hardcoded video', async () => {
2929
const stdout = execSync(cmd, {cwd});
3030
assert.match(stdout, /medium sized cats/);

0 commit comments

Comments
 (0)