Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should access the metadata service on GCB', async () => {
try {
const result = await gcbuild.build({
sourcePath: path.join(
__dirname,
'../../system-test/fixtures/cloudbuild'
),
});
console.log(result.log);
assert.ok(/isAvailable: true/.test(result.log));
assert.ok(
result.log.includes('"default":{"aliases":["default"],"email"')
);
} catch (e) {
console.error(e.log);
throw e;
}
});
});