diff --git a/packages/google-cloud-oslogin/synth.metadata b/packages/google-cloud-oslogin/synth.metadata index a0e09c9d694a..0a49541b3bab 100644 --- a/packages/google-cloud-oslogin/synth.metadata +++ b/packages/google-cloud-oslogin/synth.metadata @@ -3,23 +3,15 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-os-login.git", - "sha": "7f6a0a74e526e7cc8f2283874915e231546c4ad2" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", - "internalRef": "307114445" + "remote": "git@github.com:googleapis/nodejs-os-login.git", + "sha": "59a874f2ad586f54b994e0ee8ed3c7920eb15126" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d" + "sha": "ab883569eb0257bbf16a6d825fd018b3adde3912" } } ], diff --git a/packages/google-cloud-oslogin/test/gapic_os_login_service_v1.ts b/packages/google-cloud-oslogin/test/gapic_os_login_service_v1.ts index e6844dbe64d6..44b07553ad73 100644 --- a/packages/google-cloud-oslogin/test/gapic_os_login_service_v1.ts +++ b/packages/google-cloud-oslogin/test/gapic_os_login_service_v1.ts @@ -238,9 +238,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deletePosixAccount(request); - }, expectedError); + await assert.rejects(client.deletePosixAccount(request), expectedError); assert( (client.innerApiCalls.deletePosixAccount as SinonStub) .getCall(0) @@ -354,9 +352,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deleteSshPublicKey(request); - }, expectedError); + await assert.rejects(client.deleteSshPublicKey(request), expectedError); assert( (client.innerApiCalls.deleteSshPublicKey as SinonStub) .getCall(0) @@ -468,9 +464,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getLoginProfile(request); - }, expectedError); + await assert.rejects(client.getLoginProfile(request), expectedError); assert( (client.innerApiCalls.getLoginProfile as SinonStub) .getCall(0) @@ -582,9 +576,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getSshPublicKey(request); - }, expectedError); + await assert.rejects(client.getSshPublicKey(request), expectedError); assert( (client.innerApiCalls.getSshPublicKey as SinonStub) .getCall(0) @@ -698,9 +690,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.importSshPublicKey(request); - }, expectedError); + await assert.rejects(client.importSshPublicKey(request), expectedError); assert( (client.innerApiCalls.importSshPublicKey as SinonStub) .getCall(0) @@ -814,9 +804,7 @@ describe('v1.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.updateSshPublicKey(request); - }, expectedError); + await assert.rejects(client.updateSshPublicKey(request), expectedError); assert( (client.innerApiCalls.updateSshPublicKey as SinonStub) .getCall(0) diff --git a/packages/google-cloud-oslogin/test/gapic_os_login_service_v1beta.ts b/packages/google-cloud-oslogin/test/gapic_os_login_service_v1beta.ts index 53e0454bdfb6..a7f31f0e2b42 100644 --- a/packages/google-cloud-oslogin/test/gapic_os_login_service_v1beta.ts +++ b/packages/google-cloud-oslogin/test/gapic_os_login_service_v1beta.ts @@ -238,9 +238,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deletePosixAccount(request); - }, expectedError); + await assert.rejects(client.deletePosixAccount(request), expectedError); assert( (client.innerApiCalls.deletePosixAccount as SinonStub) .getCall(0) @@ -354,9 +352,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deleteSshPublicKey(request); - }, expectedError); + await assert.rejects(client.deleteSshPublicKey(request), expectedError); assert( (client.innerApiCalls.deleteSshPublicKey as SinonStub) .getCall(0) @@ -468,9 +464,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getLoginProfile(request); - }, expectedError); + await assert.rejects(client.getLoginProfile(request), expectedError); assert( (client.innerApiCalls.getLoginProfile as SinonStub) .getCall(0) @@ -582,9 +576,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getSshPublicKey(request); - }, expectedError); + await assert.rejects(client.getSshPublicKey(request), expectedError); assert( (client.innerApiCalls.getSshPublicKey as SinonStub) .getCall(0) @@ -698,9 +690,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.importSshPublicKey(request); - }, expectedError); + await assert.rejects(client.importSshPublicKey(request), expectedError); assert( (client.innerApiCalls.importSshPublicKey as SinonStub) .getCall(0) @@ -814,9 +804,7 @@ describe('v1beta.OsLoginServiceClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.updateSshPublicKey(request); - }, expectedError); + await assert.rejects(client.updateSshPublicKey(request), expectedError); assert( (client.innerApiCalls.updateSshPublicKey as SinonStub) .getCall(0)