[Developer] #576 clarify verification user names
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
<tbody>
|
||||
<tr th:each="row : ${matrix.users()}" th:attr="data-effective-id=${row.userId()}">
|
||||
<td>
|
||||
<strong th:text="${row.username()}">agent_hr</strong>
|
||||
<strong th:text="${row.username()}">이에이치알</strong>
|
||||
<div class="text-muted small" th:text="${row.empNo() + ' / ' + row.deptCode()}">E100 / HR</div>
|
||||
<span class="badge" th:classappend="${row.active()} ? ' text-bg-success' : ' text-bg-secondary'"
|
||||
th:text="${row.active()} ? 'ACTIVE APP USER' : 'INACTIVE APP USER'">ACTIVE</span>
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
<p class="form-hint">이 컨텍스트로 권한 규칙을 계산한 뒤 아래 VPD predicate와 effective SQL을 만들었습니다.</p>
|
||||
<dl class="mb-0">
|
||||
<div><dt>CB_AGENT_CTX.USER_ID</dt><dd th:text="${tokenContext.userId()}">103</dd></div>
|
||||
<div><dt>사용자</dt><dd th:text="${tokenContext.username()}">agent_all</dd></div>
|
||||
<div><dt>사용자</dt><dd th:text="${tokenContext.username()}">김어드민</dd></div>
|
||||
<div>
|
||||
<dt>직접 역할</dt>
|
||||
<dd th:text="${#lists.isEmpty(tokenContext.directRoles()) ? '없음' : #strings.listJoin(tokenContext.directRoles(), ', ')}">ALL_DOC_ROLE</dd>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<tbody>
|
||||
<tr th:each="user : ${users}">
|
||||
<td th:text="${user.userId()}">1</td>
|
||||
<td th:text="${user.username()}">agent_hr</td>
|
||||
<td th:text="${user.username()}">이에이치알</td>
|
||||
<td th:text="${user.empNo()}">E10234</td>
|
||||
<td th:text="${user.deptCode()}">HR</td>
|
||||
<td><span class="badge" th:classappend="${user.active()} ? ' text-bg-success' : ' text-bg-secondary'" th:text="${user.activeYn()}">Y</span></td>
|
||||
@@ -106,7 +106,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr th:each="mapping : ${userRoles}" th:attr="data-user-id=${mapping.userId()}">
|
||||
<td th:text="${mapping.username()}">agent_hr</td>
|
||||
<td th:text="${mapping.username()}">이에이치알</td>
|
||||
<td th:text="${mapping.roleName()}">HR_DEPT_ROLE</td>
|
||||
<td>
|
||||
<form method="post" action="/users/roles/delete" class="inline-form">
|
||||
|
||||
@@ -174,6 +174,20 @@ class GuidedFlowTemplateTest {
|
||||
.doesNotContain("SYS.ODCIVARCHAR2LIST('SPRING_BOOT', 'ORDS')");
|
||||
}
|
||||
|
||||
@Test
|
||||
void defaultVerificationUsersUseHumanNamesInsteadOfRoleLikeAgentNames() throws IOException {
|
||||
String seed = Files.readString(Path.of("sql/adb/17_agent_ords_security_local_vpd_setup.sql"));
|
||||
String users = template("users.html");
|
||||
String result = template("fragments/probe-result.html");
|
||||
|
||||
assertThat(seed)
|
||||
.contains("(101, '이에이치알'")
|
||||
.contains("(102, '박파이넨스'")
|
||||
.contains("(103, '김어드민'");
|
||||
assertThat(users).contains("이에이치알").doesNotContain(">agent_hr<");
|
||||
assertThat(result).contains("김어드민").doesNotContain(">agent_all<");
|
||||
}
|
||||
|
||||
@Test
|
||||
void vectorOrdsHandlerReadsBodyStreamOnlyOnce() throws IOException {
|
||||
String sql = Files.readString(Path.of("sql/adb/29_agent_ords_vector_search_ords.sql"));
|
||||
|
||||
Reference in New Issue
Block a user