add tests

pull/50/head
Muhammad Atif Ali 2 years ago
parent b18ac0fc19
commit ecee55735d
No known key found for this signature in database

@ -19,7 +19,7 @@ module "jfrog" {
source = "https://registry.coder.com/modules/jfrog"
agent_id = coder_agent.example.id
jfrog_host = "YYYY.jfrog.io"
artifactory_access_token = "var.artifactory_access_token" # An admin access token
artifactory_access_token = var.artifactory_access_token # An admin access token
package_managers = {
"npm": "npm-local",
"go": "go-local",

@ -0,0 +1,18 @@
import { describe, expect, it } from "bun:test";
import {
executeScriptInContainer,
runTerraformApply,
runTerraformInit,
testRequiredVariables,
} from "../test";
describe("jfrog", async () => {
await runTerraformInit(import.meta.dir);
testRequiredVariables(import.meta.dir, {
agent_id: "some-agent-id",
jfrog_host: "YYYY.jfrog.io",
artifactory_access_token: "XXXX",
package_manager: "{}",
});
});
Loading…
Cancel
Save