Skip to content

Commit 1e93b4c

Browse files
authored
Merge pull request #1 from QualiSystems/feature_rest_api_impl
Initial Server Technology PDU Shell 2G implementation
2 parents fecae6e + 517154d commit 1e93b4c

26 files changed

+852
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: check version
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- README.md
6+
- docs/readme.md
7+
- docs/readme.rst
8+
branches:
9+
- master
10+
jobs:
11+
check-version:
12+
uses: QualiSystems/.github/.github/workflows/shell-check-version.yml@master
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: github release
2+
on:
3+
push:
4+
paths-ignore:
5+
- README.md
6+
- docs/readme.md
7+
- docs/readme.rst
8+
branches:
9+
- master
10+
jobs:
11+
shell-ci:
12+
uses: QualiSystems/.github/.github/workflows/shell-py-39.yml@master
13+
github-release:
14+
needs: shell-ci
15+
uses: QualiSystems/.github/.github/workflows/shell-github-release.yml@master

.github/workflows/shell.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Shell CI
2+
on:
3+
push:
4+
paths-ignore:
5+
- README.md
6+
- docs/readme.md
7+
- docs/readme.rst
8+
branches-ignore:
9+
- master
10+
jobs:
11+
shell-ci:
12+
uses: QualiSystems/.github/.github/workflows/shell-py-39.yml@master
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: update release
2+
on: workflow_dispatch
3+
jobs:
4+
shell-ci:
5+
uses: QualiSystems/.github/.github/workflows/shell-py-39.yml@master
6+
with:
7+
run-pre-commit: false
8+
github-release:
9+
needs: shell-ci
10+
uses: QualiSystems/.github/.github/workflows/shell-github-release.yml@master
11+
with:
12+
update: true

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
55+
# Sphinx documentation
56+
docs/_build/
57+
58+
# PyBuilder
59+
target/
60+
cloudshell_config.yml
61+
62+
.idea/
63+
ServerTechnologyShell2GDriver.zip
64+
src/test*

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v3.3.1
4+
hooks:
5+
- id: pyupgrade
6+
args:
7+
- "--py39-plus"
8+
- repo: https://github.com/timothycrosley/isort
9+
rev: 5.12.0
10+
hooks:
11+
- id: isort
12+
- repo: https://github.com/python/black
13+
rev: 22.12.0
14+
hooks:
15+
- id: black
16+
- repo: https://github.com/PyCQA/flake8
17+
rev: 5.0.4
18+
hooks:
19+
- id: flake8
20+
additional_dependencies: [
21+
flake8-docstrings,
22+
flake8-builtins,
23+
flake8-comprehensions,
24+
flake8-print,
25+
flake8-eradicate,
26+
]

ServerTechnology.png

13.9 KB
Loading

TOSCA-Metadata/TOSCA.meta

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
TOSCA-Meta-File-Version: 1.0
2+
CSAR-Version: 0.1.0
3+
Created-By: Quali
4+
Entry-Definitions: shell-definition.yaml

deployment.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<properties>
3+
4+
<!-- The address of the Quali server on which to deploy, mandatory -->
5+
<serverRootAddress>localhost</serverRootAddress>
6+
7+
<!-- The port of the Quali server on which to deploy, defaults to "8029" -->
8+
<port>8029</port>
9+
10+
<!-- The server admin username, password and domain to use when deploying -->
11+
<username>YOUR_USERNAME</username>
12+
<password>YOUR_PASSWORD</password>
13+
<domain>Global</domain>
14+
15+
<!-- Simple patterns to filter when sending the driver to the server separated by semicolons (e.g. "file.xml;logs/", also supports regular expressions),
16+
on top of the patterns specified here the plugin will automatically filter the "deployment/" and ".idea/" folders and the "deployment.xml" file -->
17+
<fileFilters>dont_upload_me.xml</fileFilters>
18+
19+
<!-- The drivers to update, holds one or more drivers -->
20+
<drivers>
21+
<!-- runFromLocalProject - Decides whether to run the driver from the current project directory for debugging purposes, defaults to "false" -->
22+
<!-- waitForDebugger - When `runFromLocalProject` is enabled, decides whether to wait for a debugger to attach before running any Python driver code, defaults to "false" -->
23+
<!-- sourceRootFolder - The folder to refer to as the project source root (if specified, the folder will be zipped and deployed instead of the whole project), defaults to the root project folder -->
24+
<driver runFromLocalProject="true" waitForDebugger="true" sourceRootFolder="ServerTechnology">
25+
<!-- A list of paths to the driver's files or folders relative to the project's root.
26+
may be a path to a directory, in which case all the files and folders under the directory are added into the driver's zip file.
27+
if the <sources> element is not specified, all the files under the project are added to the driver's zip file -->
28+
<sources>
29+
<source>src</source>
30+
</sources>
31+
<!-- the driver name of the driver to update -->
32+
<targetName>ServerTechnologyDriver</targetName>
33+
</driver>
34+
</drivers>
35+
36+
<!-- The scripts to update, holds one or more scripts -->
37+
<!-- A list of paths to the script's files or folders relative to the project's root.
38+
if the <sources> element is not specified, all the files under the project are added to the script's zip file.
39+
if only one file is specified, the file will not be compressed into a zip file.
40+
-->
41+
<!--
42+
<scripts>
43+
44+
<script>
45+
46+
<sources>
47+
<source>script1.py</source>
48+
</sources>
49+
<targetName>scriptToUpdate</targetName>
50+
</script>
51+
</scripts>
52+
-->
53+
</properties>

dev_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pre-commit
2+
tox
3+
tox-factor
4+
-r test_requirements.txt
5+
-r src/requirements.txt

0 commit comments

Comments
 (0)