Skip to content

Instantly share code, notes, and snippets.

@LaurentAerens
Last active February 6, 2026 13:24
Show Gist options
  • Select an option

  • Save LaurentAerens/aac74c5f9c95d31d2fb1749caec36e12 to your computer and use it in GitHub Desktop.

Select an option

Save LaurentAerens/aac74c5f9c95d31d2fb1749caec36e12 to your computer and use it in GitHub Desktop.
isValidEnvironment test json
{
"description": "Tests for custom isValidEnvironment function",
"tests": [
{
"name": "Dev environment is valid env",
"bicepFile": "pathtoyourbicepfile.bicep",
"functionCall": "isValidEnvironment('dev')",
"expected": "true"
},
{
"name": "Acc is not a valid env",
"bicepFile": "pathtoyourbicepfile.bicep",
"functionCall": "isValidEnvironment('acc')",
"expected": "false"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment