1
0
forked from baron/baron-sso

네이버 계정 정합성 맞춤

This commit is contained in:
2026-06-15 19:54:09 +09:00
parent 8e9d015443
commit 4d468cd39f
97 changed files with 5837 additions and 2031 deletions

View File

@@ -203,6 +203,49 @@ void main() {
},
);
test('createUser는 내부 도메인 personal 정책 오류를 한국어 안내로 표시한다', () async {
client.enqueueJson({
'error':
'internal email domain cannot be assigned to personal tenant: user@hanmaceng.co.kr',
}, statusCode: 400);
await expectLater(
AuthProxyService.createUser(
loginId: 'user@hanmaceng.co.kr',
adminPassword: 'admin-pass',
email: 'user@hanmaceng.co.kr',
),
throwsA(
isA<Exception>().having(
(error) => error.toString(),
'message',
contains('대표소속을 회사 또는 조직 소속으로 지정해 주세요'),
),
),
);
});
test('updateUserDetails는 내부 도메인 personal 정책 오류를 한국어 안내로 표시한다', () async {
client.enqueueJson({
'error': '내부 도메인 사용자는 개인 소속으로 생성하거나 변경할 수 없습니다: user@brsw.kr',
}, statusCode: 400);
await expectLater(
AuthProxyService.updateUserDetails(
adminPassword: 'admin-pass',
loginId: 'user@brsw.kr',
email: 'user@brsw.kr',
),
throwsA(
isA<Exception>().having(
(error) => error.toString(),
'message',
contains('대표소속을 회사 또는 조직 소속으로 지정해 주세요'),
),
),
);
});
test('sendLog는 민감 정보를 제거한 client log를 전송한다', () async {
client.enqueueJson({'ok': true});