@@ -68,6 +68,7 @@ func TestLoad_Env(t *testing.T) {
6868 "DAGU_PROC_DIR" : filepath .Join (testPaths , "proc" ),
6969 "DAGU_QUEUE_DIR" : filepath .Join (testPaths , "queue" ),
7070 "DAGU_SERVICE_REGISTRY_DIR" : filepath .Join (testPaths , "service-registry" ),
71+ "DAGU_ALT_DAGS_DIR" : filepath .Join (testPaths , "alt-dags" ),
7172
7273 "DAGU_LATEST_STATUS_TODAY" : "true" ,
7374
@@ -168,6 +169,7 @@ func TestLoad_Env(t *testing.T) {
168169 },
169170 Paths : PathsConfig {
170171 DAGsDir : filepath .Join (testPaths , "dags" ),
172+ AltDAGsDir : filepath .Join (testPaths , "alt-dags" ),
171173 Executable : filepath .Join (testPaths , "bin" , "dagu" ),
172174 LogDir : filepath .Join (testPaths , "logs" ),
173175 DataDir : filepath .Join (testPaths , "data" ),
@@ -547,6 +549,14 @@ paths:
547549 assert .Equal (t , "/custom/data/agent/sessions" , cfg .Paths .SessionsDir )
548550}
549551
552+ func TestLoad_AltDAGsDir_FromYAML (t * testing.T ) {
553+ cfg := loadFromYAML (t , `
554+ paths:
555+ altDagsDir: "/custom/alt-dags"
556+ ` )
557+ assert .Equal (t , "/custom/alt-dags" , cfg .Paths .AltDAGsDir )
558+ }
559+
550560func TestLoad_EdgeCases_Errors (t * testing.T ) {
551561 t .Run ("InvalidTimezone" , func (t * testing.T ) {
552562 err := loadWithErrorFromYAML (t , `tz: "Invalid/Timezone"` )
0 commit comments