File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { describe , expect , it } from "bun:test" ;
2
+ import {
3
+ executeScriptInContainer ,
4
+ runTerraformApply ,
5
+ runTerraformInit ,
6
+ testRequiredVariables ,
7
+ } from "../test" ;
8
+
9
+ describe ( "azure-region" , async ( ) => {
10
+ await runTerraformInit ( import . meta. dir ) ;
11
+
12
+ testRequiredVariables ( import . meta. dir , { } ) ;
13
+
14
+ } ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ terraform {
9
9
}
10
10
}
11
11
12
- # Add required variables for your modules and remove any unneeded variables
13
12
variable "agent_id" {
14
13
type = string
15
14
description = " The ID of a Coder agent."
@@ -20,7 +19,7 @@ variable "database_path" {
20
19
description = " The path to the filebrowser database."
21
20
default = " filebrowser.db"
22
21
validation {
23
- # condition = endswith(var.database_path, " filebrowser.db")
22
+ # Ensures path leads to */ filebrowser.db
24
23
condition = can (regex (" .*filebrowser\\ .db$" , var. database_path ))
25
24
error_message = " The database_path must end with 'filebrowser.db'."
26
25
}
Original file line number Diff line number Diff line change @@ -12,17 +12,15 @@ printf "👷 Starting filebrowser in background... \n\n"
12
12
ROOT_DIR=${FOLDER}
13
13
ROOT_DIR=$$ {ROOT_DIR/\~ /$HOME }
14
14
15
- # Set the database flag if DB_PATH is set
16
15
DB_FLAG=" "
17
16
if [ " ${DB_PATH} " != " filebrowser.db" ]; then
18
- echo " >>> flag set!"
19
17
DB_FLAG=" -d ${DB_PATH} "
20
18
fi
21
19
22
20
printf " 📂 Serving $$ {ROOT_DIR} at http://localhost:${PORT} \n\n"
23
21
24
22
printf " Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT} $$ {DB_FLAG}' \n\n" # -d ${DB_PATH}
25
23
26
- filebrowser --noauth --root $ROOT_DIR --port ${PORT}${DB_FLAG} > ${LOG_PATH} 2>&1 & # -d ${DB_PATH}
24
+ filebrowser --noauth --root $ROOT_DIR --port ${PORT} $$ {DB_FLAG} > ${LOG_PATH} 2>&1 & # -d ${DB_PATH}
27
25
28
26
printf " 📝 Logs at ${LOG_PATH} \n\n"
You can’t perform that action at this time.
0 commit comments