Skip to content

Commit 897d6fd

Browse files
committed
stub public key to fix test
1 parent 6f649f4 commit 897d6fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/ec2/model.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ describe('Ec2ConnectClient', function () {
159159
describe('sendSshKeysToInstance', async function () {
160160
it('calls the sdk with the proper parameters', async function () {
161161
const sendCommandStub = sinon.stub(SsmClient.prototype, 'sendCommandAndWait')
162+
162163
sinon.stub(SshKeyPair, 'generateSshKeyPair')
164+
sinon.stub(SshKeyPair.prototype, 'getPublicKey').resolves('test-key')
165+
163166
const testSelection = {
164167
instanceId: 'test-id',
165168
region: 'test-region',

0 commit comments

Comments
 (0)