Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generated during the execution of acceptance test on archive_file resource #221

Open
1 task done
bendbennett opened this issue Jun 6, 2023 · 0 comments
Open
1 task done
Labels

Comments

@bendbennett
Copy link
Contributor

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

  • I agree to follow this project's Code of Conduct
@bendbennett bendbennett added the bug label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant