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