mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Update actor
to use PineDeferred
type
This commit is contained in:
parent
a8ff13aeba
commit
7073e709ea
@ -51,7 +51,7 @@ export default class APIKeyListCmd extends Command {
|
||||
await getApplication(getBalenaSdk(), options.fleet, {
|
||||
$select: 'actor',
|
||||
})
|
||||
).actor
|
||||
).actor.__id
|
||||
: await getBalenaSdk().auth.getActorId();
|
||||
const keys = await getBalenaSdk().pine.get({
|
||||
resource: 'api_key',
|
||||
|
@ -416,11 +416,11 @@ export class BalenaAPIMock extends NockMock {
|
||||
* Mocks balena-release call
|
||||
*/
|
||||
public expectGetUser(opts: ScopeOpts = {}) {
|
||||
this.optGet(/^\/v6\/user/, opts).reply(200, {
|
||||
this.optGet(/^\/v7\/user/, opts).reply(200, {
|
||||
d: [
|
||||
{
|
||||
id: 99999,
|
||||
actor: 1234567,
|
||||
actor: { __id: 1234567 },
|
||||
username: 'gh_user',
|
||||
created_at: '2018-08-19T13:55:04.485Z',
|
||||
__metadata: {
|
||||
|
@ -23,7 +23,7 @@
|
||||
}
|
||||
],
|
||||
"depends_on__application": null,
|
||||
"actor": 3423895,
|
||||
"actor": { "__id": 3423895 },
|
||||
"app_name": "testApp",
|
||||
"slug": "gh_user/testApp",
|
||||
"should_be__running_release": [
|
||||
|
@ -23,7 +23,7 @@
|
||||
}
|
||||
],
|
||||
"depends_on__application": null,
|
||||
"actor": 3423895,
|
||||
"actor": { "__id": 3423895 },
|
||||
"app_name": "testApp",
|
||||
"slug": "gh_user/testApp",
|
||||
"should_be__running_release": [
|
||||
|
Loading…
Reference in New Issue
Block a user