Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
8a2d855
my proposal for v2 pagination
radu-stefan-dt Aug 9, 2020
e7b52f2
refactored multipage results function to v2
radu-stefan-dt Aug 9, 2020
a46fae3
added my proposal for v1 api pagination
radu-stefan-dt Aug 9, 2020
3701947
added decorator for slowing down requests
radu-stefan-dt Aug 9, 2020
533a567
refactored all occurences of __get_multipage_results
radu-stefan-dt Aug 9, 2020
6e639c7
refactored all occurences of __get_multipage_results
radu-stefan-dt Aug 9, 2020
e736e3a
squished v2_get_results_by_page
radu-stefan-dt Aug 10, 2020
1e08bc5
PAF-44 #Adding Settings and test cases.
Philipose Aug 11, 2020
6140187
PAF-44 #Tweaking and fixing updates to circleci
Philipose Aug 11, 2020
50fdd36
PAF-44 #More fixes to CircleCI
Philipose Aug 11, 2020
0ce9d9e
PAF-44 #Updating coveragerc for CircleCI
Philipose Aug 11, 2020
a77320e
PAF-44 #taring the result for easy retreival
Philipose Aug 11, 2020
5da63d5
PAF-44 #Tar fixes
Philipose Aug 11, 2020
04c95c7
#PAF-44 Creating Dir for tar
Philipose Aug 11, 2020
28697fd
#PAF-46 Fixing from Lint
Philipose Aug 11, 2020
23ae598
PAF-46 #FLAKE8 Linting
Philipose Aug 11, 2020
5b23c05
#PAF-46 Linting for FLAKE8
Philipose Aug 11, 2020
3c1e78d
PAF-46 Resolving JSON Lint. Removing unneeded file
Philipose Aug 11, 2020
30c7ef4
Trying to use pylintrc
Philipose Aug 11, 2020
93f986d
#PAF-46 Trying to reference linter in root
Philipose Aug 11, 2020
4fe2941
PAF-46 #Trying to reference workspace root
Philipose Aug 11, 2020
9d7d0ab
PAF-46
Philipose Aug 11, 2020
2aa4c9b
PAF-46 [no ci]
Philipose Aug 11, 2020
2f4fb5b
PAF-46 [skip ci]
Philipose Aug 11, 2020
f979e4a
PAF-46 #Updating pylintrc [skip ci]
Philipose Aug 11, 2020
e35c443
PAF-46 # Another Attempt [skip ci]
Philipose Aug 12, 2020
f48e0c0
PAF-46 #Flake8 Fixing and another attempt
Philipose Aug 12, 2020
a80339a
updating pipfiles
Philipose Sep 16, 2020
d078aaa
renaming SSL to stop confusion in linter
Philipose Sep 16, 2020
716ec3c
PAF-46 #Linting Adjustments
Philipose Sep 18, 2020
43707a0
PAF-46 Adding Flake8 to Dev Packages
Philipose Sep 18, 2020
b68eb85
PAF-46 #Add linting suggestions
Philipose Sep 18, 2020
edb35fb
PAF-46 #Linting Adjustments, Readme update
Philipose Sep 18, 2020
145fd38
PAF-46 #Lint Fixes
Philipose Sep 23, 2020
bd879e9
Fixing Endpoint for SSO
Philipose Sep 23, 2020
a219026
PAF-46 #Testing Exception break, linting
Philipose Sep 23, 2020
200a3ac
PAF-46 #Flake8 Linting
Philipose Sep 23, 2020
31e9812
PAF-46 #Adjusting GitHub Actions [no-ci]
Philipose Sep 24, 2020
b8e566d
PAF-46 #Specifying LOG ENV var
Philipose Sep 24, 2020
989ebf6
PAF-46 #Linting and trying to get lint log
Philipose Sep 24, 2020
c660f4a
PAF-46 #Pylint fixes for these files
Philipose Sep 24, 2020
dd91763
PAF-46 #Fixing disable linting comment
Philipose Sep 24, 2020
5445219
Trying to add another step to get report from linter
Philipose Sep 24, 2020
8c57fd8
PAF-46 #Pulling the Artifacts of the full report
Philipose Sep 24, 2020
c07a6b0
PAF-46 #Trying to fix syntax [skip-ci]
Philipose Sep 24, 2020
8cb4bfa
PAF-46 #GA Adjustments, Pylint linting
Philipose Sep 24, 2020
0b8d94d
PAF-46 #GA Adjustments
Philipose Sep 24, 2020
efbb302
PAF-46 #Yet Another GA Change [ci skip]
Philipose Sep 24, 2020
db40151
PAF-46 #Pylint linting
Philipose Sep 24, 2020
5c37100
PAF-46 #Debug GA
Philipose Sep 24, 2020
f688879
PAF-46 #Pylinting & removing TODOs from lint fail
Philipose Sep 24, 2020
35406c3
PAF-46 #Pytlinting and removing outdated md
Philipose Sep 26, 2020
d2ea8e9
Accidentally included debug file
Philipose Sep 26, 2020
b873a93
PAF-46 #Flake8 Linting
Philipose Sep 26, 2020
574fb47
PAF-46 #Pylinting
Philipose Sep 26, 2020
bb90832
PAF-46 #Flake8 Linting
Philipose Sep 26, 2020
74928fa
PAF-46 #Pylinting [skip ci]
Philipose Sep 26, 2020
d35e429
Merge pull request #32 from dynatrace-api-framework/PAF-46_Resolving_…
Philipose Sep 26, 2020
452654d
Merge pull request #31 from dynatrace-api-framework/PAF-44_Settings_G…
Philipose Sep 26, 2020
3d82384
Changed slow-down to only apply on SaaS
radu-stefan-dt Oct 8, 2020
0696ff4
shared operations remodeled for V2 API
radu-stefan-dt Oct 8, 2020
72310bf
simplified v2_get_results_by_page
radu-stefan-dt Oct 8, 2020
66cea1f
removed changes already covered by PAF-35 branch
radu-stefan-dt Oct 8, 2020
4d76d52
adapted function returns. fixed other issues
radu-stefan-dt Oct 8, 2020
5c07c5b
updated topology.applications to make use of the new topology.shared
radu-stefan-dt Oct 8, 2020
76be2b9
resolved naming conflict on imports
radu-stefan-dt Oct 8, 2020
3565139
updated topology.hosts to work with new topology.shared functions
radu-stefan-dt Oct 8, 2020
196c6d1
added unused params to calls
radu-stefan-dt Oct 8, 2020
9530bd9
updated topology.process_groups to use the new topology.shared functions
radu-stefan-dt Oct 8, 2020
da2b014
updated topology.processes to use the new topology.shared functions
radu-stefan-dt Oct 8, 2020
bfae747
Merge pull request #34 from dynatrace-api-framework/PAF-35_Radus_version
Philipose Oct 8, 2020
130c3a9
updated topology.services to use the new topology.shared functions
radu-stefan-dt Oct 8, 2020
d9c7843
cleaned up comments
radu-stefan-dt Oct 8, 2020
4befd41
updated topology.custom to use the new topology.shared functions
radu-stefan-dt Oct 8, 2020
2f06b52
changes to pass linting checks
radu-stefan-dt Oct 8, 2020
af8f461
fixed issues from testing and linting
radu-stefan-dt Oct 9, 2020
ccee844
updated hosts test suite
radu-stefan-dt Oct 9, 2020
b30f32a
updated process group test suite
radu-stefan-dt Oct 9, 2020
ea07d67
changed variables back to user_variables
radu-stefan-dt Oct 9, 2020
a407d67
updated mockserver payloads
radu-stefan-dt Oct 9, 2020
c5744cb
updated topology.service test suite
radu-stefan-dt Oct 9, 2020
bd06dfa
updated topology.processes test cases
radu-stefan-dt Oct 9, 2020
4c8fcd7
updated host_groups test case to comply with test_tooling
radu-stefan-dt Oct 9, 2020
cd7a0fb
updated host_group test suite
radu-stefan-dt Oct 9, 2020
16237ad
updated host_groups module to use the new topology.shared functions
radu-stefan-dt Oct 9, 2020
5e68c6a
Merge pull request #36 from dynatrace-api-framework/PAF-49
radu-stefan-dt Oct 9, 2020
1b2da03
#PAF-51: topology.shared uses paginated methods. added func for getti…
radu-stefan-dt Oct 9, 2020
446f7c9
Merge pull request #37 from dynatrace-api-framework/PAF-51
radu-stefan-dt Oct 9, 2020
2137442
#PAF52 - Refactored everything into new folder structure
radu-stefan-dt Oct 9, 2020
cb3c1a5
#PAF-52 - final changes
radu-stefan-dt Oct 9, 2020
ea17d2c
#PAF-52: fixed shared.py & entity tests
radu-stefan-dt Oct 9, 2020
42d4747
Merge pull request #39 from dynatrace-api-framework/PAF-52
radu-stefan-dt Oct 9, 2020
ea8ea40
#PAF-50: trimmed down topology operations
radu-stefan-dt Oct 10, 2020
7974b68
#PAF-50: added handling of oneagents api in v2_get_results functions
radu-stefan-dt Oct 10, 2020
b955eec
#PAF-50: added handling of oneagents api in v2_get_results functions
radu-stefan-dt Oct 10, 2020
48ca327
#PAF-50: implemented **kwargs
radu-stefan-dt Oct 10, 2020
354ff43
#PAF-50: host_groups functions now in entities. **kwargs used everywh…
radu-stefan-dt Oct 10, 2020
4a25d92
#PAF-50: updated test cases for entities
radu-stefan-dt Oct 10, 2020
7cef80b
#PAF-50: changed variable set back to user_variables
radu-stefan-dt Oct 10, 2020
cc64866
#PAF-50: fixed setwide operations
radu-stefan-dt Oct 10, 2020
ddc55a6
#PAF-50: get entities by page returns entities instead of full json
radu-stefan-dt Oct 10, 2020
75a2719
#PAF-50: renamed get_entities_tenantwide
radu-stefan-dt Oct 10, 2020
126f0e5
#PAF-50: added testing for all entities functions
radu-stefan-dt Oct 10, 2020
b46e824
#PAF-50: changed host unit functions to V1_HOSTS - more efficient
radu-stefan-dt Oct 10, 2020
6d25a44
#PAF-50: changed other entity functions to use **kwargs
radu-stefan-dt Oct 10, 2020
1e26a9c
#PAF-50: removed unnecessary import
radu-stefan-dt Oct 10, 2020
48a5c3d
#PAF-50: changed import back to user_variables
radu-stefan-dt Oct 10, 2020
2a92112
#PAF-50: changed parsing the full set in full set functions
radu-stefan-dt Oct 10, 2020
5bedbd4
#PAF-50: added test cases for oneagents functions
radu-stefan-dt Oct 10, 2020
a95530a
#PAF-50: fixed unused argument in RH function
radu-stefan-dt Oct 10, 2020
1bcffbb
#PAF-50: fixed linting on imports
radu-stefan-dt Oct 10, 2020
196feca
Merge branch 'dev' into PAF-39
Philipose Oct 10, 2020
73575b8
more merge adjustments
Philipose Oct 10, 2020
f784e3f
Merge branch 'PAF-39' into dev
Philipose Oct 10, 2020
d4370f8
Updating Headers to have rate limits
Philipose Oct 10, 2020
c8a9157
Fixing Rate Limiter
Philipose Oct 10, 2020
540d2bc
Trying Again
Philipose Oct 10, 2020
23ee80a
Another Try
Philipose Oct 10, 2020
e18cd0b
Checking if header exists before checking
Philipose Oct 10, 2020
237e888
Merge branch 'dev' into PAF-39
Philipose Oct 10, 2020
54dfb04
Merge branch 'PAF-39' into dev
Philipose Oct 10, 2020
5ced748
PAF-55 #Added most validators being deteched
Philipose Oct 10, 2020
7c04194
Merge pull request #44 from dynatrace-api-framework/PAF-55_Specify_Li…
Philipose Oct 10, 2020
bc2a477
Merge pull request #41 from dynatrace-api-framework/PAF-50
radu-stefan-dt Oct 11, 2020
542da93
must pass a dictionary for ** to unpack. can't be None
radu-stefan-dt Oct 23, 2020
1d59f76
metrics functionality added
radu-stefan-dt Nov 5, 2020
c67136e
extra functionality for metric api
radu-stefan-dt Nov 18, 2020
b862e45
test suite for metrics.py
radu-stefan-dt Nov 18, 2020
8d04a62
PAF-50: reduced complexity for func. get_metric_data
radu-stefan-dt Nov 18, 2020
f0d7102
PAF-50: de-smell.. using specific exception
radu-stefan-dt Nov 18, 2020
d84f68d
PAF-50: de-smell.. pythonic parameter names
radu-stefan-dt Nov 18, 2020
f3f7e7a
PAF-50: de-smell.. pythonic parameter names
radu-stefan-dt Nov 18, 2020
90f11aa
PAF-50: de-smell.. replace repeated string with constant
radu-stefan-dt Nov 18, 2020
e3898fb
PAF-50: de-linted
radu-stefan-dt Nov 18, 2020
6af79e6
PAF-50: fixed failing tests.
radu-stefan-dt Nov 18, 2020
508b43a
Merge pull request #45 from dynatrace-api-framework/PAF-50
radu-stefan-dt Nov 18, 2020
bab8971
PAF-54: Merged pagination functions for easier use upstream
radu-stefan-dt Nov 19, 2020
608fc3b
PAF-50 (lint): pythonic variable names
radu-stefan-dt Nov 19, 2020
5b66d51
PAF-50 (lint): over-refactored last item. changed endpoint text match…
radu-stefan-dt Nov 19, 2020
10bf10e
Merge pull request #46 from dynatrace-api-framework/PAF-54
radu-stefan-dt Nov 19, 2020
00a671d
PAF-48: refactored make_api_call to use **kwargs
radu-stefan-dt Nov 19, 2020
29932c0
Merge pull request #47 from dynatrace-api-framework/PAF-48
radu-stefan-dt Nov 19, 2020
228d0e1
PAF-56: added metric ingest function
radu-stefan-dt Nov 20, 2020
f424448
PAF-56: changed request body to data to comply with requests library
radu-stefan-dt Nov 20, 2020
d6e5b6c
PAF-56: added support for plain text request body. improved comments
radu-stefan-dt Nov 20, 2020
dc2a9b7
PAF-56: added testing for metrics ingest
radu-stefan-dt Nov 20, 2020
468b8ed
PAF-56 (lint): pythonic var names
radu-stefan-dt Nov 20, 2020
27a75ee
Merge pull request #48 from dynatrace-api-framework/PAF-56
radu-stefan-dt Nov 20, 2020
98fc7ce
PAF-57: extensions base functionality
radu-stefan-dt Nov 21, 2020
ae6b8a1
PAF-57: added version parameter to pagination to account for exceptio…
radu-stefan-dt Nov 21, 2020
ffc842e
PAF-57: removed metrics calculation for now
radu-stefan-dt Nov 21, 2020
260ebc0
PAF-57: fixed pagination in request handler
radu-stefan-dt Nov 21, 2020
fbe1215
PAF-57: test suite for extensions API
radu-stefan-dt Nov 21, 2020
f9f3a85
PAF=57: refactored classes to use new pagination system
radu-stefan-dt Nov 21, 2020
9262d20
PAF-57 (smell): pythonic variable names
radu-stefan-dt Nov 21, 2020
386af88
PAF-57: extension metrics functionality added.
radu-stefan-dt Nov 21, 2020
0c7e744
PAF-57: tests for extension metrics added to suite
radu-stefan-dt Nov 21, 2020
749413e
Merge pull request #49 from dynatrace-api-framework/PAF-57
radu-stefan-dt Nov 21, 2020
6f80686
PAF-59: added new endpoint for problems v2
radu-stefan-dt Nov 27, 2020
f1c50f7
PAF-59: base functionality for Problems API
radu-stefan-dt Nov 27, 2020
0069fd8
PAF-59: test suite for Problems API
radu-stefan-dt Nov 27, 2020
f532123
PAF-59: payloads for Problems API test suite
radu-stefan-dt Nov 27, 2020
47f4c77
Merge pull request #50 from dynatrace-api-framework/PAF-59
radu-stefan-dt Nov 27, 2020
0afc83f
PAF-42: Added logging to request handler
radu-stefan-dt Dec 6, 2020
fdbd2b1
PAF-42: Added settings related to logging
radu-stefan-dt Dec 6, 2020
cf5da1b
PAF-42: logging module. setup for framework logging
radu-stefan-dt Dec 6, 2020
0ce7d12
PAF-42: added logging for entities module
radu-stefan-dt Dec 6, 2020
f01ec65
PAF-42: name is mandatory for get_logger now
radu-stefan-dt Dec 6, 2020
455fc91
PAF-42: name is mandatory for get_logger now
radu-stefan-dt Dec 6, 2020
f75782d
PAF-42: changed back default logs directory. tests depend on it
radu-stefan-dt Dec 7, 2020
0aed6e6
PAF-42: added logging for metrics.py
radu-stefan-dt Dec 7, 2020
76c3dea
PAF-42: added logging for oneagents.py
radu-stefan-dt Dec 9, 2020
6461f2e
PAF-42: added logging for problems.py
radu-stefan-dt Dec 9, 2020
1fd8702
PAF-42: merged with differences from #0d07753 (PAF-42_Logging_Module)
radu-stefan-dt Dec 9, 2020
9b1f43f
PAF-42: merged with differences from #0d07753 (PAF-42_Logging_Module)
radu-stefan-dt Dec 9, 2020
41c6bb9
PAF-75: added endpoint for timeseries api
radu-stefan-dt Dec 14, 2020
b0f5b1a
PAF-75: refurbished Timeseries module
radu-stefan-dt Dec 14, 2020
ca9f930
PAF-75: test cases for timeseries API
radu-stefan-dt Dec 14, 2020
078c3f9
PAF-75: fixed url path
radu-stefan-dt Dec 14, 2020
a36e3ee
PAF-75: fixed url path
radu-stefan-dt Dec 14, 2020
90c41f1
Merge pull request #51 from dynatrace-api-framework/PAF-42
radu-stefan-dt Dec 14, 2020
9ad0dfe
PAF-74: Refurbished management_zones
radu-stefan-dt Dec 15, 2020
df3a2b1
PAF-74: code improvements resulted from testing
radu-stefan-dt Dec 15, 2020
a4527c5
PAF-74: testing cases for management_zones
radu-stefan-dt Dec 15, 2020
163fc6f
PAF-74: Added missing test
radu-stefan-dt Dec 15, 2020
c584581
PAF-74: linting - use lazy logging and more pythonic var names
radu-stefan-dt Dec 15, 2020
4a3d769
PAF-74: logging done right
radu-stefan-dt Dec 15, 2020
09dbece
PAF-74: linting - __str__ returns str now
radu-stefan-dt Dec 15, 2020
ddd37ce
PAF-75: implemented lazy logging everywhere
radu-stefan-dt Dec 15, 2020
4d80786
PAF-79: lazy logging + typo fix
radu-stefan-dt Dec 15, 2020
3447c12
PAF-79: fixed typo that broke tests
radu-stefan-dt Dec 15, 2020
de25a65
PAF-73: Refurbished request_attributes
radu-stefan-dt Dec 15, 2020
120aaef
PAF-73: added exporting capability
radu-stefan-dt Dec 15, 2020
e708e48
PAF-73: improvements resulted from testin
radu-stefan-dt Dec 18, 2020
7e49050
PAF-73: testing cases for request_attributes
radu-stefan-dt Dec 18, 2020
c5e34a0
PAF-73: de-smell -> better class name
radu-stefan-dt Dec 18, 2020
f45cb86
PAF-72: refurbish request_naming
radu-stefan-dt Dec 19, 2020
30351ea
PAF-72: basic tests for request_naming
radu-stefan-dt Dec 19, 2020
83f1699
PAF-72: finished validating test suite
radu-stefan-dt Dec 19, 2020
747cd6f
PAF-72: de-smell -> renamed Test Case class
radu-stefan-dt Dec 19, 2020
a33c1ac
Merge pull request #56 from dynatrace-api-framework/PAF-72
radu-stefan-dt Jan 21, 2021
156aa53
Merge pull request #55 from dynatrace-api-framework/PAF-73
radu-stefan-dt Jan 21, 2021
be9be01
Merge pull request #54 from dynatrace-api-framework/PAF-79
radu-stefan-dt Jan 21, 2021
7ba75b0
Merge pull request #53 from dynatrace-api-framework/PAF-74
radu-stefan-dt Jan 21, 2021
29c5e4d
Merge pull request #52 from dynatrace-api-framework/PAF-75
radu-stefan-dt Jan 21, 2021
d9c6848
PAF-70 #Adding Logic to handle managed requests
Philipose Feb 9, 2021
182b305
Merge pull request #57 from dynatrace-api-framework/PAF-70_managed_te…
Philipose Feb 9, 2021
2b399dd
Supports YAML configuration file
Philipose Feb 21, 2021
fdbb4d3
Adding JSON import capability
Philipose Feb 21, 2021
9e3754a
Defaulting Global var to empty set
Philipose Feb 21, 2021
e375f58
PAF-44 #user_variables to be absorbed by new var
Philipose Feb 21, 2021
5d7a949
PAF-44 #Adding more tests
Philipose Feb 21, 2021
bb5f5c4
PAF-44 Forgot to add CircleCI Adjustments
Philipose Feb 21, 2021
b47f7b4
Adding JSON files to test and updating config
Philipose Feb 21, 2021
47f4e7a
PAF-44 #Fixing cluster url
Philipose Feb 21, 2021
dd4ce8d
PAF-44 #Fixing Code Smells
Philipose Feb 22, 2021
7abcca7
PAF-44 #Adapting request_handler for str cluster
Philipose Feb 22, 2021
df0ebc0
Merge pull request #59 from dynatrace-api-framework/PAF-44_Settings_R…
Philipose Feb 22, 2021
0f46279
PAF-84 #Linting Cleanup Recommended
Philipose Feb 22, 2021
9af2777
PAF-84 #Attempting to fix linter on git
Philipose Feb 22, 2021
a76bf9b
PAF-84 #Refactoring logging to log_handler
Philipose Feb 22, 2021
1496a6c
PAF-84 #Fixing warn to warning in logs
Philipose Feb 22, 2021
4a86873
PAF-84 #Linting Tests
Philipose Feb 22, 2021
fc778ca
PAF-84 #Linting
Philipose Feb 22, 2021
6a49e63
PAF-84 #Linting
Philipose Feb 22, 2021
aa04d73
PAF-84 #Removing func that should be standalone
Philipose Feb 22, 2021
cc8375d
PAF-84 #Linting
Philipose Feb 22, 2021
441977d
PAF-84 #Linting
Philipose Feb 22, 2021
e1b7617
PAF-84 #Trying detailed on linter
Philipose Feb 22, 2021
7cd27bd
#PAF-84 Markdown Linting
Philipose Feb 22, 2021
9cb95b1
Merge pull request #60 from dynatrace-api-framework/PAF-84_Linting_Cl…
Philipose Feb 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
jobs:
build:
Expand All @@ -6,7 +7,7 @@ jobs:
environment:
PIPENV_VENV_IN_PROJECT: true
- image: mockserver/mockserver
name: mockserver.mockserver
name: mockserver
steps:
- checkout # check out source code to working directory
- run:
Expand All @@ -16,11 +17,18 @@ jobs:
- run:
command: |
cp .circleci/mockserver.py user_variables.py
cp .circleci/mockserver.yaml user_variables.yaml
cp .circleci/mockserver.json user_variables.json
pip install pipenv
pipenv install --dev
- run:
command: |
pipenv run python -m unittest discover
COVERAGE_FILE=standard.coverage pipenv run coverage run -m unittest discover
COVERAGE_FILE=special1.coverage pipenv run coverage run -m unittest tests/special_test_settings_no_variables.py
pipenv run coverage combine *.coverage
pipenv run coverage html
mkdir test-results
tar -cf test-results/coverage_report.tar htmlcov/
- store_test_results:
path: test-results
- store_artifacts:
Expand Down
14 changes: 14 additions & 0 deletions .circleci/mockserver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"FULL_SET": {
"mockserver1": {
"url": "mockserver.philly:1080",
"tenant": {
"tenant1": "mockenv"
},
"verify_ssl": false,
"is_managed": true,
"cluster_token": "cluster_token_here"
}
},
"LOG_LEVEL": "WARNING"
}
7 changes: 4 additions & 3 deletions .circleci/mockserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
"mockserver1": {
"url": "mockserver:1080",
"tenant": {
"tenant1": "mockserver",
"tenant1": "mockenv",
},
"api_token": {
"tenant1": "sample_api_token",
},
"verify_ssl": False,
"is_managed": False,
"is_managed": True,
"cluster_token": "Required for Cluster Operations in Managed"
}
}

LOG_LEVEL="INFO"
LOG_OUTPUT = "FILE"
LOG_LEVEL = "INFO"

# ROLE TYPE KEYS
# access_env
Expand Down
37 changes: 37 additions & 0 deletions .circleci/mockserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
FULL_SET:
mockserver1:
url: mockserver:1080
tenant:
tenant1: mockenv
api_token:
tenant1: "sample_api_token"
verify_ssl: False
is_managed: True
cluster_token: "Required for Cluster Operations in Managed"


LOG_ENABLED: True
LOG_LEVEL: "DEBUG"
LOG_OUTPUT: "FILE"

# ROLE TYPE KEYS
# access_env
# change_settings
# install_agent
# view_logs
# view_senstive
# change_sensitive

USER_GROUPS:
role_types:
access_env: accessenv
change_settings: changesettings
view_logs: logviewer
view_sensitive: viewsensitive
role_tenants:
- nonprod
- prod

USER_GROUP_TEMPLATE: prefix_{USER_TYPE}_{TENANT}_{APP_NAME}_suffix
DEFAULT_TIMEZONE: America/Chicago
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[run]
omit =
# omit anything in a .local directory anywhere
*/.local/*
*/lib/python*/*
# omit everything in /usr
/usr/*
# omit in the test tools
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
###########################
###########################
## Linter GitHub Actions ##
Expand Down Expand Up @@ -40,12 +41,34 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2

- run: mkdir -p super-linter.report
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: docker://github/super-linter:v3
uses: github/super-linter@v3.11.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: master
LINTER_RULES_PATH: .
PYTHON_PYLINT_CONFIG_FILE: .pylintrc
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LOG_FILE: super-linter.log
OUTPUT_FOLDER: super-linter.report
OUTPUT_FORMAT: tap
OUTPUT_DETAILS: detailed
VALIDATE_YAML: true
VALIDATE_JSON: true
VALIDATE_EDITORCONFIG: true
VALIDATE_MARKDOWN: true
VALIDATE_PYTHON_PYLINT: true
- run: ls
########################
# Retreive tap reports #
########################
- name: Archive super-linter tap reports
uses: actions/upload-artifact@v2
if: failure()
with:
name: linter-report
path: super-linter.report
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ templates/*
**venv**
# Framework log files
***.log**
***.tap**
.converge

user_variables.py
user_variables.*
sandbox_script.py
htmlcov/*

!variable_sets/template.py
!scripts/template.py
Expand Down
Loading