| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -11,13 +11,11 @@ describe("filebrowser", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  testRequiredVariables(import.meta.dir, {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    agent_id: "foo",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    agent_name: "main",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  });
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  it("fails with wrong database_path", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const state = await runTerraformApply(import.meta.dir, {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_id: "foo",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_name: "main",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      database_path: "nofb",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    }).catch((e) => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      if (!e.message.startsWith("\nError: Invalid value for variable")) {
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -29,7 +27,6 @@ describe("filebrowser", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  it("runs with default", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const state = await runTerraformApply(import.meta.dir, {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_id: "foo",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_name: "main",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    });
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const output = await executeScriptInContainer(state, "alpine");
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    expect(output.exitCode).toBe(0);
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -51,7 +48,6 @@ describe("filebrowser", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  it("runs with database_path var", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const state = await runTerraformApply(import.meta.dir, {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_id: "foo",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_name: "main",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      database_path: ".config/filebrowser.db",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    });
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const output = await executeScriptInContainer(state, "alpine");
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -74,7 +70,6 @@ describe("filebrowser", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  it("runs with folder var", async () => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const state = await runTerraformApply(import.meta.dir, {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_id: "foo",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      agent_name: "main",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      folder: "/home/coder/project",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    });
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    const output = await executeScriptInContainer(state, "alpine");
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |