Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/app/provisioning-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createRouterTransport, type Transport } from '@connectrpc/connect';
import { beforeEach, describe, expect, it } from 'vitest';
import { ProvisioningService } from '../gen/provisioning/v1/provisioning_connect';
import {
APIKey,
CloudConfig,
GetNetworkListResponse,
GetSmartMachineStatusResponse,
Expand Down Expand Up @@ -41,10 +42,15 @@ const testSmartMachineStatus = new GetSmartMachineStatusResponse({
const type = 'type';
const ssid = 'ssid';
const psk = 'psk';
const apiKey = new APIKey({
id: 'api_key_id',
key: 'api_key_value',
});
const cloud = new CloudConfig({
id: 'id',
secret: 'secret',
appAddress: 'app_address',
apiKey,
});

let setNetworkCredentialsReq: SetNetworkCredentialsRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/app/provisioning-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ export class ProvisioningClient {
}
}

export { CloudConfig } from '../gen/provisioning/v1/provisioning_pb';
export { APIKey, CloudConfig } from '../gen/provisioning/v1/provisioning_pb';