Skip to content

Commit 9668673

Browse files
committed
fix(acs-client): unit tests
1 parent 92d21a4 commit 9668673

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/acs-client/test/acs.spec.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ describe('testing acs-client', () => {
233233
let subject = {
234234
id: 'test_user_id',
235235
scope: 'targetScope',
236+
token: 'unauthenticated_token',
236237
unauthenticated: true,
237238
meta: {
238239
owners: []
@@ -301,6 +302,7 @@ describe('testing acs-client', () => {
301302
let subject = {
302303
id: 'test_user_id',
303304
scope: 'targetScope',
305+
token: 'invalid',
304306
role_associations: [
305307
{
306308
role: 'test-role'
@@ -334,6 +336,7 @@ describe('testing acs-client', () => {
334336
let subject = {
335337
id: 'test_user_id',
336338
scope: 'targetScope',
339+
token: 'valid_token',
337340
role_associations: [
338341
{
339342
role: 'test-role',
@@ -392,6 +395,7 @@ describe('testing acs-client', () => {
392395
let subject = {
393396
id: 'test_user_id',
394397
scope: 'targetSubScope',
398+
token: 'valid_token',
395399
role_associations: [
396400
{
397401
role: 'test-role',
@@ -456,6 +460,7 @@ describe('testing acs-client', () => {
456460
let subject = {
457461
id: 'test_user_id',
458462
scope: 'targetSubScope',
463+
token: 'invalid_token',
459464
role_associations: [
460465
{
461466
role: 'test-role',

packages/acs-client/test/acs_multiple_entities.spec.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ let subject = {
9898
id: 'test_user_id',
9999
name: 'test_user',
100100
scope: 'targetScope',
101+
token: 'valid_token',
101102
role_associations: [
102103
{
103104
role: 'test-role',

0 commit comments

Comments
 (0)