Skip to content

Commit 7d6f46f

Browse files
committed
refactor(service): users/auth: user admission test stubs
1 parent d742293 commit 7d6f46f

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { expect } from 'chai'
2+
3+
describe('ingress use cases', function() {
4+
5+
describe('admitting users', function() {
6+
7+
describe('without an existing account', function() {
8+
9+
it('creates a new account bound to the admitting idp', async function() {
10+
expect.fail('todo')
11+
})
12+
13+
it('applies enrollment policies to the new account', async function() {
14+
expect.fail('todo')
15+
})
16+
17+
it('generates an admission token', async function() {
18+
expect.fail('todo')
19+
})
20+
21+
it('fails if the enrollment policy requires account approval', async function() {
22+
expect.fail('todo')
23+
})
24+
25+
it('fails if the idp is disabled', async function() {
26+
expect.fail('todo')
27+
})
28+
})
29+
30+
describe('with an existing account', function() {
31+
32+
it('generates an admission token', async function() {
33+
expect.fail('todo')
34+
})
35+
36+
it('fails without a matching idp binding', async function() {
37+
expect.fail('todo')
38+
})
39+
40+
it('fails if the idp is disabled', async function() {
41+
expect.fail('todo')
42+
})
43+
44+
it('fails if the account is disabled', async function() {
45+
expect.fail('todo')
46+
})
47+
})
48+
})
49+
})

0 commit comments

Comments
 (0)