/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/command/testdata/test/simple_pass_function/main.tftest.hcl
28 строк
504 B
Samsondeen
Allow functions in test mock blocks (#37883)
22 янв 2026, 11:42
Не верифицирован
22 янв 2026, 11:42
0b35407
Код
Авторство
О чём код?
mock_provider "test" { mock_resource "test_resource" { defaults = { id = format("f-%s", "foo") } } } override_resource { target = test_resource.bar values = { id = format("%s-%s", uuid(), "bar") } } run "validate_test_resource_foo" { assert { condition = test_resource.foo.id == "f-foo" error_message = "invalid value" } } run "validate_test_resource_bar" { assert { condition = length(test_resource.bar.id) > 10 error_message = "invalid value" } }