You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			39 lines
		
	
	
		
			991 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			39 lines
		
	
	
		
			991 B
		
	
	
	
		
			TypeScript
		
	
| import { describe, expect, it } from "bun:test";
 | |
| import {
 | |
|   runTerraformApply,
 | |
|   runTerraformInit,
 | |
|   testRequiredVariables,
 | |
| } from "../test";
 | |
| 
 | |
| describe("code-server", async () => {
 | |
|   await runTerraformInit(import.meta.dir);
 | |
| 
 | |
|   testRequiredVariables(import.meta.dir, {
 | |
|     agent_id: "foo",
 | |
|   });
 | |
| 
 | |
|   it("use_cached and offline can not be used together", () => {
 | |
|     const t = async () => {
 | |
|       await runTerraformApply(import.meta.dir, {
 | |
|         agent_id: "foo",
 | |
|         use_cached: "true",
 | |
|         offline: "true",
 | |
|       });
 | |
|     };
 | |
|     expect(t).toThrow("Offline and Use Cached can not be used together");
 | |
|   });
 | |
| 
 | |
|   it("offline and extensions can not be used together", () => {
 | |
|     const t = async () => {
 | |
|       await runTerraformApply(import.meta.dir, {
 | |
|         agent_id: "foo",
 | |
|         offline: "true",
 | |
|         extensions: '["1", "2"]',
 | |
|       });
 | |
|     };
 | |
|     expect(t).toThrow("Offline mode does not allow extensions to be installed");
 | |
|   });
 | |
| 
 | |
|   // More tests depend on shebang refactors
 | |
| });
 |