Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
package com.gltkorea.icebang.config.security.endpoints;

public enum SecurityEndpoints {
PUBLIC("/", "/v0/auth/login", "/api/public/**", "/health", "/css/**", "/js/**", "/images/**"),
PUBLIC(
"/",
"/v0/auth/login",
"/api/public/**",
"/health",
"/css/**",
"/js/**",
"/images/**",
"/v0/organizations/**",
"/v0/auth/register"),

// 데이터 관리 관련 엔드포인트
DATA_ADMIN("/admin/**", "/api/admin/**", "/management/**", "/actuator/**"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
spring:
config:
activate:
on-profile: test-integration

# H2 인메모리 데이터베이스 설정 (Unit Test용)
datasource:
url: jdbc:h2:mem:testdb;MODE=MariaDB;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=TRUE
username: sa
password:
driver-class-name: org.h2.Driver
hikari:
connection-init-sql: "SET MODE MariaDB"
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
maximum-pool-size: 10
minimum-idle: 5
pool-name: HikariCP-MyBatis

# H2 웹 콘솔 활성화 (디버깅용)
h2:
console:
enabled: true

# JPA 설정 (H2용)
jpa:
hibernate:
ddl-auto: create-drop
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect

# SQL 스크립트 초기화 설정
sql:
init:
mode: always
schema-locations:
- classpath:sql/00-drop-h2.sql
- classpath:sql/01-schema.sql
encoding: UTF-8

mybatis:
mapper-locations: classpath:mybatis/mapper/**/*.xml
type-aliases-package: com.gltkorea.icebang.dto
configuration:
map-underscore-to-camel-case: true

logging:
config: classpath:log4j2-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<insert id="insertUserOrganization" parameterType="com.gltkorea.icebang.domain.auth.dto.RegisterDto" useGeneratedKeys="true" keyProperty="userOrgId">
INSERT INTO user_organization (user_id, organization_id, department_id, position_id, status)
VALUES (#{id}, #{organizationId}, #{departmentId}, #{positionId}, #{status});
VALUES (#{id}, #{orgId}, #{deptId}, #{positionId}, #{status});
</insert>

<insert id="insertUserRoles" parameterType="com.gltkorea.icebang.domain.auth.dto.RegisterDto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SELECT
id,
name as organizationName
FROM organizations
FROM organization
ORDER BY name
</select>

Expand All @@ -18,7 +18,7 @@
SELECT
id,
name
FROM departments
FROM department
WHERE organization_id = #{organizationId}
ORDER BY name
</select>
Expand All @@ -28,7 +28,7 @@
SELECT
id,
title
FROM positions
FROM position
WHERE organization_id = #{organizationId}
ORDER BY title
</select>
Expand All @@ -39,7 +39,7 @@
id,
name,
description
FROM roles
FROM role
WHERE organization_id = #{organizationId}
ORDER BY name
</select>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gltkorea.icebang.annotation;
package com.gltkorea.icebang.e2e.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gltkorea.icebang.config;
package com.gltkorea.icebang.e2e.config;

import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
Expand Down
Loading
Loading