This repository was archived by the owner on Aug 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright 2020 Google LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ terraform {
18
+ backend "local" {}
19
+ }
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright 2020 Google LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ resource "local_file" "foo" {
18
+ content = " foo!"
19
+ filename = " ${ path . module } /foo.bar"
20
+ }
Original file line number Diff line number Diff line change
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ "Test the plan output wrapper classes."
16
+
17
+ import pytest
18
+ import tftest
19
+
20
+
21
+ @pytest .fixture
22
+ def run_init (fixtures_dir ):
23
+
24
+ def init_runner (** backend_config ):
25
+ tf = tftest .TerraformTest ('apply' , fixtures_dir )
26
+ tf .setup (init_vars = backend_config )
27
+
28
+ return init_runner
29
+
30
+
31
+ def test_simple_args (run_init ):
32
+ run_init (path = 'terraform-1.tfstate' )
33
+
34
+
35
+ def test_spaced_args (run_init ):
36
+ run_init (path = 'terraform 1.tfstate' )
You can’t perform that action at this time.
0 commit comments