terraform-provider-archive
terraform-provider-archive copied to clipboard
Error generated during the execution of acceptance test on archive_file resource
Terraform CLI and Provider Versions
TF: v1.4.6
archive provider: v2.3.0
Terraform Configuration
N/A
Expected Behavior
Executing acceptance test should complete successfully.
Actual Behavior
Running the following acceptance test results in the error described.
func TestResource_ArchiveFile_ExcludeSymlinkDirectories(t *testing.T) {
td := t.TempDir()
f := filepath.Join(td, "zip_file_acc_test.zip")
r.ParallelTest(t, r.TestCase{
ProtoV5ProviderFactories: protoV5ProviderFactories(),
Steps: []r.TestStep{
{
Config: fmt.Sprintf(`
resource "archive_file" "foo" {
type = "zip"
source_dir = "%s"
output_path = "%s"
output_file_mode = "0666"
exclude_symlink_directories = true
}
`, filepath.ToSlash("test-fixtures/test-symlink-dir"), filepath.ToSlash(f)),
ExpectError: regexp.MustCompile(`.*error creating archive: error archiving directory: error reading file for`),
},
},
})
}
testing_new.go:66: no "id" found in attributes
Steps to Reproduce
Add the test code to the provider and run the test.
How much impact is this issue causing?
Low
Logs
https://gist.github.com/bendbennett/3d93aeacae42f6f98e2a4d861a0fc6a0
Additional Information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct