Terraform 地面验收试验:“地面验收试验”;错误:无法读取文件";

Terraform 地面验收试验:“地面验收试验”;错误:无法读取文件";,terraform,Terraform,我开始为terraform提供者插件编写验收测试 无论何时我用TF_ACC=1运行它们,都要进行测试-v-parallel=4,我随机得到如下错误: Step i/n error: Error running second post-apply plan: Error: Failed to read file The file "$(TMPDIR)/tftest443/work874/config340/terraform_plugin_test.tf" could not

我开始为terraform提供者插件编写验收测试

无论何时我用
TF_ACC=1运行它们,都要进行测试-v-parallel=4
,我随机得到如下错误:

Step i/n error: Error running second post-apply plan:
Error: Failed to read file

The file
"$(TMPDIR)/tftest443/work874/config340/terraform_plugin_test.tf"
could not be read

Error: Failed to read directory for module

The source directory
$(TMPDIR)/tftest443/work874/config340
could not be read
运行这些测试之后会在不同的步骤中抛出类似的错误

资源在测试过程中正确创建、更新和销毁。

为什么我的测试虽然成功地创建了测试资源,但仍不断抛出这些错误?我需要做什么改变才能使它们再次工作

编辑:

我还使用重新创建了问题,添加了以下验收测试:

func testacResourceOrderCreateMultistep(t*testing.t){
步骤:=[]资源。测试步骤{}
对于i:=0;i<100;i++{
步骤=追加(步骤,resource.TestStep{
配置:TestAccCheckHashHicUpsOrderConfigBasic(i+1,1),
})
}
resource.ParallelTest(t,resource.TestCase{
PreCheck:func(){testacprecheck(t)},
提供者:testAccProviders,
步骤:步骤,
})
}

您是否可以编辑您的问题,将供应商的Go代码作为请柬包含在内?