Skip to content

Commit

Permalink
releng - update deps (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt authored Jun 20, 2023
1 parent d9a4005 commit 667e360
Show file tree
Hide file tree
Showing 12 changed files with 428 additions and 554 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10"]
python-version: [3.9, "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -45,12 +45,12 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Pytest run w/ xdist
run: poetry run pytest -v -n auto tests

- name: Coverage run pytest
run: poetry run coverage run --source pytest_terraform -m pytest tests

- name: Pytest run w/ xdist
run: poetry run pytest -v -n auto tests

- name: Coverage Generate XML
run: |
poetry run coverage xml && \
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ __pycache__
dist/
pytestdebug.log
.venv

# tests/**/.terraform.lock.hcl
.python-version
tests/**/.terraform.lock.hcl
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8

Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ You can provide the path to the terraform binary else its auto discovered
--tf-binary=$HOME/bin/terraform
```

To avoid repeated downloading of plugins a plugin cache dir is utilized
by default this is `.tfcache` in the current working directory.
```shell
--tf-plugin-dir=$HOME/.cache/tfcache
```

Terraform modules referenced by fixtures are looked up in a few different
locations, directly in the same directory as the test module, in a subdir
named terraform, and in a sibling directory named terraform. An explicit
Expand Down
940 changes: 410 additions & 530 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers=[
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.6.1,<4.0"
python = ">=3.7,<4.0"
pytest = ">= 6.0"
jmespath = ">= 0.10.0"
portalocker = ">= 1.7.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/data/mrofarret/local_baz/baz.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "local_file" "baz" {
content = "baz!"
filename = "${path.module}/baz.txt"
content = "baz!"
filename = "${path.module}/baz.txt"
}
2 changes: 1 addition & 1 deletion tests/terraform/aws_sns/topic.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = "us-east-1"
region = "us-east-1"
}

resource "aws_sns_topic" "user_updates" {
Expand Down
2 changes: 1 addition & 1 deletion tests/terraform/aws_sqs/queue.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ resource "aws_sqs_queue" "terraform_queue" {

output "this_sqs_queue_id" {
description = "The URL for the created Amazon SQS queue"
value = aws_sqs_queue.terraform_queue.id
value = aws_sqs_queue.terraform_queue.id
}
4 changes: 2 additions & 2 deletions tests/terraform/local_bar/bar.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "local_file" "bar" {
content = "bar!"
filename = "${path.module}/bar.txt"
content = "bar!"
filename = "${path.module}/bar.txt"
}
4 changes: 2 additions & 2 deletions tests/terraform/local_buz/buz.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "local_file" "buz" {
content = "buz!"
filename = "${path.module}/buz.txt"
content = "buz!"
filename = "${path.module}/buz.txt"
}
4 changes: 2 additions & 2 deletions tests/terraform/local_foo/foo.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "local_file" "foo" {
content = "foo!"
filename = "${path.module}/foo.txt"
content = "foo!"
filename = "${path.module}/foo.txt"
}

0 comments on commit 667e360

Please sign in to comment.