-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more or less complete rewrite of application
add reports for sonarqube override any region from profile get rid of backend selector, use enum allow everything to be frozen squelch some output from Makefile correct remote_path_options model pass remote_options as a dict handle case when no global vars are set handle model based options properly handle empty global vars into hooks download modules prior to looking for required providers Added error handling for jinja2 syntax errors change resolved path to use definition name, not path add support for multiple version constraints enable strict_locking flag fix issue when multiple provider verions are specified also adds tests for - base backend validate empty function - backends custom enum method - exceptions raised during s3 tests - add target for tests with artifacts - adds tests to complete authenticators coverage. - add tests for the app_state model. - add tests for cli-options - add a missing test condition to the FS copier - add proper poetry install to makefile - add tests for Definition model and methods - add tests for definitions collection - add tests for definitions plan - Add test for defintion prepare - Remove legacy tests
- Loading branch information
Showing
110 changed files
with
8,837 additions
and
7,744 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ __pycache__ | |
htmlcov | ||
.pytest_cache | ||
registry.terraform.io/ | ||
.scannerwork/ | ||
coverage.xml | ||
reports/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[settings] | ||
known_third_party = atlassian,boto3,botocore,click,deepdiff,google,hcl2,jinja2,lark,mergedeep,moto,pydantic,pytest,yaml | ||
known_third_party = atlassian,boto3,botocore,click,google,hcl2,jinja2,lark,moto,packaging,pydantic,pydantic_core,pydantic_settings,pytest,yaml | ||
profile = black | ||
skip = ["*/__init__.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changes 0.12.0 -> 0.13.0 (2024-06...) | ||
|
||
## Notes | ||
This version reconsiders many of the core elements of the worker application. | ||
|
||
The application now relies on pydantic to define the models for what is consumed from the configuration file and the command line. Previously there was a heinous mix of classes which just had attributes and methods seemingly hung on | ||
them at random. This was a nightmare to maintain and understand. | ||
|
||
- the CopierFactory was reorganized to be more modular | ||
- providers became a package, with a model used to validation all provider configurations | ||
- all of the configuration file logic was moved into the `commands` module, the logic to handle managing the cofig is all contained there instead of being spread out many places | ||
- added tfworker.util.log to handle interaction with the user, via the CLI or via a logger in the future | ||
- made significant strides towards consolidating all exceptions / error handling | ||
- made significant strides in only having the primary cli.py and commands/ actually cause the program to terminate | ||
- validation of options and inputs is now handled centrally in the pydantic models instead of being spread out *everywhere* | ||
|
||
|
||
- ... @TODO find time to update this :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
# Copyright 2020 Richard Maynard ([email protected]) | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
Oops, something went wrong.