@@ -97,38 +97,38 @@ data "archive_file" "foo" {
97
97
source_content_filename = "content.txt"
98
98
output_path = "%s"
99
99
}
100
- ` , outputPath )
100
+ ` , filepath . ToSlash ( outputPath ) )
101
101
}
102
102
103
103
func testAccArchiveFileFileConfig (outputPath string ) string {
104
104
return fmt .Sprintf (`
105
105
data "archive_file" "foo" {
106
106
type = "zip"
107
- source_file = "%s "
107
+ source_file = "test-fixtures/test-file.txt "
108
108
output_path = "%s"
109
109
}
110
- ` , filepath .Join ( "test-fixtures" , "test-file.txt" ), outputPath )
110
+ ` , filepath .ToSlash ( outputPath ) )
111
111
}
112
112
113
113
func testAccArchiveFileDirConfig (outputPath string ) string {
114
114
return fmt .Sprintf (`
115
115
data "archive_file" "foo" {
116
116
type = "zip"
117
- source_dir = "%s "
117
+ source_dir = "test-fixtures/test-dir "
118
118
output_path = "%s"
119
119
}
120
- ` , filepath .Join ( "test-fixtures" , "test-dir" ), outputPath )
120
+ ` , filepath .ToSlash ( outputPath ) )
121
121
}
122
122
123
123
func testAccArchiveFileDirExcludesConfig (outputPath string ) string {
124
124
return fmt .Sprintf (`
125
125
data "archive_file" "foo" {
126
126
type = "zip"
127
- source_dir = "%s "
128
- excludes = ["%s "]
127
+ source_dir = "test-fixtures/test-dir "
128
+ excludes = ["test-fixtures/test-dir/file2.txt "]
129
129
output_path = "%s"
130
130
}
131
- ` , filepath .Join ( "test-fixtures" , "test-dir" ), filepath . Join ( "test-fixtures" , "test-dir" , "file2.txt" ), outputPath )
131
+ ` , filepath .ToSlash ( outputPath ) )
132
132
}
133
133
134
134
func testAccArchiveFileMultiConfig (outputPath string ) string {
@@ -141,7 +141,7 @@ data "archive_file" "foo" {
141
141
}
142
142
output_path = "%s"
143
143
}
144
- ` , outputPath )
144
+ ` , filepath . ToSlash ( outputPath ) )
145
145
}
146
146
147
147
func testTempDir (t * testing.T ) string {
0 commit comments