feat: [flow-tester] 의존성 검사, Docker 지원, 인증 자동 주입 기능 추가
FlowExecutor 개선:
- 의존성 스텝 실패 시 후속 스텝 자동 스킵 로직 추가
- Docker 환경 자동 감지 및 내부 URL 변환 (api.sam.kr → nginx)
- SSL 검증 비활성화 및 Host 헤더 설정 지원
- .env에서 API Key/Bearer Token 자동 주입
VariableBinder 개선:
- 임의 stepId 패턴 지원 (page_create_1.tempPageId 등)
- {{$env.VAR_NAME}} 환경변수 플레이스홀더 추가
- {{$auth.token}}, {{$auth.apiKey}} 인증 플레이스홀더 추가
UI 개선:
- SKIPPED 상태 스타일링 (노란색 배경/테두리)
- 행 클릭 시 스텝 상세 확장 기능
- 실행 결과 실시간 표시 개선
This commit is contained in:
@@ -22,6 +22,30 @@ class HttpClient
|
||||
|
||||
private ?string $bearerToken = null;
|
||||
|
||||
private bool $verifySsl = true;
|
||||
|
||||
private ?string $hostHeader = null;
|
||||
|
||||
/**
|
||||
* SSL 검증 비활성화 (Docker 내부 통신용)
|
||||
*/
|
||||
public function withoutVerifying(): self
|
||||
{
|
||||
$this->verifySsl = false;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Host 헤더 설정 (Docker 내부 통신용)
|
||||
*/
|
||||
public function setHostHeader(string $host): self
|
||||
{
|
||||
$this->hostHeader = $host;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 기본 URL 설정
|
||||
*/
|
||||
@@ -91,6 +115,16 @@ public function request(string $method, string $endpoint, array $options = []):
|
||||
$request = Http::timeout($this->timeout)
|
||||
->withHeaders($headers);
|
||||
|
||||
// SSL 검증 비활성화 (Docker 내부 통신용)
|
||||
if (! $this->verifySsl) {
|
||||
$request = $request->withoutVerifying();
|
||||
}
|
||||
|
||||
// Host 헤더 추가 (Docker 내부 통신용)
|
||||
if ($this->hostHeader) {
|
||||
$request = $request->withHeaders(['Host' => $this->hostHeader]);
|
||||
}
|
||||
|
||||
// API 키 추가
|
||||
if ($this->apiKey) {
|
||||
$request = $request->withHeaders(['X-API-KEY' => $this->apiKey]);
|
||||
|
||||
Reference in New Issue
Block a user