Revert "chore(examples): add MODULE_NAME.tftest.hcl to new module sample and make run.sh optional"

This reverts commit a5edad7f176a65a0f5d58752caeb7c7d97beb2e7.
This commit is contained in:
Muhammad Atif Ali 2025-08-08 17:29:11 +05:00
parent ab5ff4b4be
commit 673caf2e95
2 changed files with 3 additions and 26 deletions

View File

@ -1,21 +0,0 @@
run "plan_with_required_vars" {
command = plan
variables {
agent_id = "example-agent-id"
}
}
run "app_url_uses_port" {
command = plan
variables {
agent_id = "example-agent-id"
port = 19999
}
assert {
condition = resource.coder_app.MODULE_NAME.url == "http://localhost:19999"
error_message = "Expected MODULE_NAME app URL to include configured port"
}
}

View File

@ -31,7 +31,7 @@ if [ -d "registry/$NAMESPACE/modules/$MODULE_NAME" ]; then
fi
mkdir -p "registry/${NAMESPACE}/modules/${MODULE_NAME}"
# Copy required files from the example module (includes Terraform tests)
# Copy required files from the example module
cp -r examples/modules/* "registry/${NAMESPACE}/modules/${MODULE_NAME}/"
# Change to module directory
@ -48,7 +48,5 @@ else
sed -i "s/MODULE_NAME/${MODULE_NAME}/g" README.md
fi
# Make run.sh executable (if present)
if [ -f run.sh ]; then
chmod +x run.sh
fi
# Make run.sh executable
chmod +x run.sh