feat: add test framework (#48)

* Add test framework

* Add aws-region tests

* Add azure-region tests

* Update CONTRIBUTING.md

* Add formatting

* Improve fmt

* Format Terraform
This commit is contained in:
Kyle Carberry
2023-09-25 23:17:04 -05:00
committed by GitHub
parent 84bad159a3
commit cb72a16221
24 changed files with 900 additions and 510 deletions

View File

@@ -10,8 +10,8 @@ terraform {
}
variable "url" {
description = "The URL of the Git repository."
type = string
description = "The URL of the Git repository."
type = string
}
variable "path" {
@@ -21,17 +21,17 @@ variable "path" {
}
variable "agent_id" {
description = "The ID of a Coder agent."
type = string
description = "The ID of a Coder agent."
type = string
}
resource "coder_script" "git_clone" {
agent_id = var.agent_id
display_name = "Git Clone"
icon = "/icons/git.svg"
script = templatefile("${path.module}/run.sh", {
CLONE_PATH: var.path != "" ? var.path : join("/", ["~", basename(var.url)]),
REPO_URL: var.url,
})
run_on_start = true
agent_id = var.agent_id
display_name = "Git Clone"
icon = "/icons/git.svg"
script = templatefile("${path.module}/run.sh", {
CLONE_PATH : var.path != "" ? var.path : join("/", ["~", basename(var.url)]),
REPO_URL : var.url,
})
run_on_start = true
}