Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
590 commits
Select commit Hold shift + click to select a range
95ab1e1
C
Alexpf20210007 Jun 27, 2022
d5f08d2
C
Alexpf20210007 Jun 27, 2022
1f0c4b8
C
Alexpf20210007 Jun 27, 2022
99d9c28
C
Alexpf20210007 Jun 27, 2022
ab202fb
C
Alexpf20210007 Jun 27, 2022
5bb7f38
aC
Alexpf20210007 Jun 27, 2022
da1d398
bump version 22.5 -> 22.6
domachad Jun 27, 2022
8e95a4d
C
Alexpf20210007 Jun 27, 2022
84e6331
C
Alexpf20210007 Jun 27, 2022
10d5eed
C
Alexpf20210007 Jun 27, 2022
3ae127e
C
Alexpf20210007 Jun 27, 2022
d28695f
C
Alexpf20210007 Jun 27, 2022
f6b39cc
C
Alexpf20210007 Jun 27, 2022
3b89dd1
C
Alexpf20210007 Jun 27, 2022
b146b45
C
Alexpf20210007 Jun 27, 2022
bed0b70
bump version 22.5 -> 22.6
domachad Jun 27, 2022
e32d127
Release 22.6
domachad Jun 28, 2022
9898a02
Release 22.6
domachad Jun 28, 2022
5bf3cd1
Merge branch 'release_22.6' of https://github.com/CiscoTestAutomation…
domachad Jun 28, 2022
754cbc7
Release 22.6
domachad Jun 28, 2022
1825ee5
Merge branch 'release_22.6' of https://github.com/CiscoTestAutomation…
domachad Jun 28, 2022
7ac60a7
Merge branch 'release_22.6' of https://github.com/CiscoTestAutomation…
domachad Jun 28, 2022
1e9ec25
Commit
Alexpf20210007 Jun 28, 2022
7e428c5
c
Alexpf20210007 Jun 28, 2022
d933087
C
Alexpf20210007 Jun 28, 2022
b53781c
Commit
Alexpf20210007 Jun 29, 2022
ae3c830
Commit
Alexpf20210007 Jun 29, 2022
7298e00
Commit
Alexpf20210007 Jun 29, 2022
245d455
C
Alexpf20210007 Jun 29, 2022
3c014c7
Commit
Alexpf20210007 Jun 29, 2022
e608fff
Commit
Alexpf20210007 Jun 29, 2022
812a2a6
Commit
Alexpf20210007 Jun 29, 2022
80792ad
C
Alexpf20210007 Jun 29, 2022
3c6fde7
c
Alexpf20210007 Jun 29, 2022
ad53932
C
Alexpf20210007 Jun 29, 2022
7473d99
C
Alexpf20210007 Jun 29, 2022
b411017
C
Alexpf20210007 Jun 29, 2022
990bdd5
C
Alexpf20210007 Jun 29, 2022
748b2ef
C
Alexpf20210007 Jun 29, 2022
0c7c6c8
C
Alexpf20210007 Jun 29, 2022
4d27e75
C
Alexpf20210007 Jun 29, 2022
5b0fe17
C
Alexpf20210007 Jun 29, 2022
ef57e7c
C
Alexpf20210007 Jun 29, 2022
946bbe2
C
Alexpf20210007 Jun 29, 2022
f7531f1
C
Alexpf20210007 Jun 29, 2022
d8d4af8
C
Alexpf20210007 Jun 29, 2022
d21b14c
C
Alexpf20210007 Jun 29, 2022
bdbc29e
c
Alexpf20210007 Jun 29, 2022
a11160a
C
Alexpf20210007 Jun 29, 2022
a38299c
C
Alexpf20210007 Jun 29, 2022
cbf75c2
C
Alexpf20210007 Jun 29, 2022
5e3e10e
C
Alexpf20210007 Jun 29, 2022
f5ccaac
C
Alexpf20210007 Jun 29, 2022
5e3f20d
C
Alexpf20210007 Jun 29, 2022
b1b7bff
C
Alexpf20210007 Jun 29, 2022
2a623ec
C
Alexpf20210007 Jun 29, 2022
41b91e8
C
Alexpf20210007 Jun 29, 2022
190c232
C
Alexpf20210007 Jun 29, 2022
9d26d3f
C
Alexpf20210007 Jun 29, 2022
d0c30ab
C
Alexpf20210007 Jun 29, 2022
ed90186
C
Alexpf20210007 Jun 29, 2022
f3b3402
C
Alexpf20210007 Jun 29, 2022
139ed37
C
Alexpf20210007 Jun 29, 2022
e787c33
C
Alexpf20210007 Jun 29, 2022
62a7ad9
C
Alexpf20210007 Jun 29, 2022
895428a
Release 22.6
domachad Jun 29, 2022
6f2efb7
Merge pull request #56 from CiscoTestAutomation/release_22.6
domachad Jun 29, 2022
db74b01
C
Alexpf20210007 Jun 29, 2022
d630f18
C
Alexpf20210007 Jun 29, 2022
8b65eb1
C
Alexpf20210007 Jun 29, 2022
a25bc81
C
Alexpf20210007 Jun 29, 2022
4c63ef9
C
Alexpf20210007 Jun 30, 2022
ea436bd
C
Alexpf20210007 Jun 30, 2022
5680042
C
Alexpf20210007 Jun 30, 2022
724aad0
C
Alexpf20210007 Jun 30, 2022
78cfded
C
Alexpf20210007 Jun 30, 2022
7e7d5eb
C
Alexpf20210007 Jun 30, 2022
02cfb66
C
Alexpf20210007 Jun 30, 2022
0881ab4
C
Alexpf20210007 Jun 30, 2022
c8a806b
C
Alexpf20210007 Jun 30, 2022
5758c57
C
Alexpf20210007 Jun 30, 2022
6eae333
C
Alexpf20210007 Jun 30, 2022
ed6318f
C
Alexpf20210007 Jun 30, 2022
ff8306d
C
Alexpf20210007 Jun 30, 2022
890530f
C
Alexpf20210007 Jun 30, 2022
5cecdf1
C
Alexpf20210007 Jun 30, 2022
6cf7300
C
Alexpf20210007 Jun 30, 2022
93b0bd1
c
Alexpf20210007 Jun 30, 2022
00c627c
C
Alexpf20210007 Jun 30, 2022
2a7202c
C
Alexpf20210007 Jun 30, 2022
c2e8047
C
Alexpf20210007 Jun 30, 2022
6056162
C
Alexpf20210007 Jun 30, 2022
86f205a
C
Alexpf20210007 Jun 30, 2022
a2864c3
C
Alexpf20210007 Jul 1, 2022
b767ebd
C
Alexpf20210007 Jul 1, 2022
7681027
C
Alexpf20210007 Jul 1, 2022
e34eff3
C
Alexpf20210007 Jul 1, 2022
45b269e
C
Alexpf20210007 Jul 1, 2022
cf82588
C
Alexpf20210007 Jul 1, 2022
db68654
C
Alexpf20210007 Jul 1, 2022
10b0528
C
Alexpf20210007 Jul 1, 2022
0a65dbb
C
Alexpf20210007 Jul 1, 2022
8c3e890
C
Alexpf20210007 Jul 1, 2022
c00e707
C
Alexpf20210007 Jul 1, 2022
ea8786f
C
Alexpf20210007 Jul 1, 2022
275dc68
C
Alexpf20210007 Jul 1, 2022
f465faf
C
Alexpf20210007 Jul 1, 2022
2314090
C
Alexpf20210007 Jul 1, 2022
4b093bb
C
Alexpf20210007 Jul 1, 2022
b27fd55
C
Alexpf20210007 Jul 1, 2022
a9da0ce
C
Alexpf20210007 Jul 3, 2022
999511d
Merge branch 'CiscoTestAutomation:master' into master
Alexpf20210007 Jul 3, 2022
5bfbb94
C
Alexpf20210007 Jul 3, 2022
ed2a78a
Merge branch 'master' of github.com:Alexpf20210007/unicon.plugins
Alexpf20210007 Jul 3, 2022
dda32cc
C
Alexpf20210007 Jul 3, 2022
29a1e95
Tested logging into 2 aos devices and 1 cisco device.
Alexpf20210007 Jul 7, 2022
ee8d72a
Added aos to supported platforms
Alexpf20210007 Jul 7, 2022
72787a5
Commit
Alexpf20210007 Jul 11, 2022
c037017
This commit has a working mock test plugin and can configure devices …
Alexpf20210007 Jul 16, 2022
abf8e83
This commit removes imports that were not specifically called in each…
Alexpf20210007 Jul 19, 2022
47df464
bump version 22.6 -> 22.7
omehrabi Jul 20, 2022
8588ba8
Releasing v22.7
omehrabi Jul 21, 2022
9aba4e0
Merge pull request #58 from CiscoTestAutomation/release_22.7
omehrabi Jul 27, 2022
8c383e6
Merge branch 'CiscoTestAutomation:master' into master
Alexpf20210007 Aug 3, 2022
f41f79f
Added changelog file
Alexpf20210007 Aug 5, 2022
e48eb53
Merge branch 'master' of github.com:Alexpf20210007/unicon.plugins
Alexpf20210007 Aug 5, 2022
ba1b567
Bump version
GerriorL Aug 24, 2022
3941104
Releasing v22.8
GerriorL Aug 26, 2022
40c2cca
Merge pull request #61 from CiscoTestAutomation/release_22.8
GerriorL Aug 31, 2022
48ea563
Merge branch 'CiscoTestAutomation:master' into master
Alexpf20210007 Aug 31, 2022
85929db
Merge pull request #57 from Alexpf20210007/master
GerriorL Sep 1, 2022
13efc57
Revert "Aruba OS Unicon Plugin"
GerriorL Sep 22, 2022
d1a4ac5
Merge pull request #62 from CiscoTestAutomation/revert-57-master
GerriorL Sep 22, 2022
55bb35d
Releasing v22.9
GerriorL Sep 23, 2022
7d80dc9
Merge pull request #63 from CiscoTestAutomation/release_22.9
bastell Sep 27, 2022
827c9de
Update patterns.py
jibo78 Sep 30, 2022
2d8c8e3
Merge pull request #1 from jibo78/jibo78-hvrp-plugin-issue#65
jibo78 Sep 30, 2022
94f0016
Releasing v22.10
Oct 25, 2022
4dda85a
Merge pull request #68 from CiscoTestAutomation/release_22.10
GerriorL Oct 31, 2022
50a9942
Merge pull request #66 from jibo78/master
Taarini Nov 1, 2022
1709452
update documentation for all_state_change_configure_service
omehrabi Nov 22, 2022
b1caf8f
update the configure table
omehrabi Nov 22, 2022
fd9e640
merge master
omehrabi Nov 22, 2022
07ec9e1
Merge pull request #70 from CiscoTestAutomation/allow_state_change_co…
omehrabi Nov 22, 2022
ee7a67a
Releasing v22.11
omehrabi Nov 28, 2022
070c5cf
Merge pull request #73 from CiscoTestAutomation/release_22.11
omehrabi Nov 30, 2022
5e70a23
Releasing v23.1
GerriorL Jan 31, 2023
1691a49
Releasing v23.1
GerriorL Jan 31, 2023
b341867
Merge pull request #77 from CiscoTestAutomation/release_23.1
domachad Jan 31, 2023
4e43f71
Update january.rst
GerriorL Jan 31, 2023
826b2c2
Update january.rst
GerriorL Jan 31, 2023
18890e4
Releasing v23.2
lsheikal Feb 24, 2023
f5ff25d
Merge pull request #79 from CiscoTestAutomation/release_23.2
bastell Mar 3, 2023
0192365
updated changelogs
lsheikal Mar 3, 2023
107ab73
Merge pull request #80 from CiscoTestAutomation/release_23.2
bastell Mar 7, 2023
6dd4fba
Update test_plugin_nd.py
bastell Mar 7, 2023
01eaef8
Update test_plugin_linux.py
bastell Mar 8, 2023
d78532a
Merge pull request #82 from CiscoTestAutomation/bastell-github_CI_wor…
bastell Mar 8, 2023
9a16553
Releasing v23.3
bastell Mar 30, 2023
e845a2b
Merge pull request #83 from CiscoTestAutomation/release_23.3
bastell Mar 30, 2023
becdb40
Merge pull request #83 from CiscoTestAutomation/release_23.3
bastell Mar 30, 2023
a969cbd
Release 23.4
bastell Apr 25, 2023
ce828ce
Merge pull request #84 from CiscoTestAutomation/release_23.4
bastell Apr 25, 2023
bdc1aa7
Releasing 23.5
GerriorL May 26, 2023
0b52e13
Merge pull request #86 from CiscoTestAutomation/release_23.5
GerriorL May 29, 2023
593627c
Releasing v23.6
Jun 23, 2023
f4a5a06
Merge pull request #87 from CiscoTestAutomation/release_23.6
ThomasJRyan Jun 27, 2023
1095e7e
added dependancy support for rcpackages
lsheikal Jul 25, 2023
b37e286
Releasing v23.7
lsheikal Jul 25, 2023
ceeb5b9
Releasing v23.7
lsheikal Jul 26, 2023
804c878
Merge pull request #88 from CiscoTestAutomation/release_23.7
bastell Jul 27, 2023
0a06ac4
Releasing v23.8
omehrabi Aug 25, 2023
e2594a2
Merge pull request #89 from CiscoTestAutomation/release_23.8
bastell Aug 29, 2023
f6b8053
Releasing v23.9
Sep 22, 2023
277b2d9
Merge pull request #90 from CiscoTestAutomation/release_23.9
Taarini Sep 27, 2023
d29ce27
updated documentation
omehrabi Oct 16, 2023
9c4e092
address comments
omehrabi Oct 18, 2023
469d8b8
empty push for running pipline
omehrabi Oct 24, 2023
bb1becc
Merge pull request #91 from CiscoTestAutomation/update_the_doc_for_fa…
bastell Oct 24, 2023
ee65274
Releasing v23.10
bastell Nov 1, 2023
3b50371
Merge pull request #92 from CiscoTestAutomation/release_23.10
bastell Nov 3, 2023
2b9f83f
Releasing 23.11
domachad Nov 27, 2023
d9d4036
Merge pull request #93 from CiscoTestAutomation/release_23.11
domachad Nov 29, 2023
56179e7
Releasing v24.1
Jan 25, 2024
80ac39b
Releasing v24.1
Jan 25, 2024
e07178f
Merge pull request #94 from CiscoTestAutomation/release_24.1
Taarini Jan 31, 2024
77047c3
Releasing v24.2
lsheikal Feb 26, 2024
ddf617c
Merge pull request #95 from CiscoTestAutomation/release_24.2
lsheikal Feb 27, 2024
f043ae2
Releasing v24.3
omehrabi Mar 21, 2024
bbd4978
Releasing v24.3
omehrabi Mar 26, 2024
9e8c3f2
Releasing v24.3
omehrabi Mar 26, 2024
3c39dcb
Merge pull request #97 from CiscoTestAutomation/release_24.3
omehrabi Mar 27, 2024
cbaa854
Releasing v24.4
Apr 30, 2024
28ef311
Updated the workflows
May 6, 2024
d01f7f3
Updated the workflows
May 6, 2024
85e2791
Merge pull request #99 from CiscoTestAutomation/release_24.4
Taarini May 7, 2024
c361060
Releasing v24.5
May 27, 2024
4835c2e
Merge pull request #100 from CiscoTestAutomation/release_24.5
ThomasJRyan May 31, 2024
adcce90
Releasing v24.6
omehrabi Jun 24, 2024
46cdcc1
Merge pull request #101 from CiscoTestAutomation/release_24.6
omehrabi Jun 26, 2024
99a8cfd
Open branches for release_24.7
lsheikal Jul 30, 2024
d50be11
Releasing v24.7
lsheikal Jul 30, 2024
1adae75
Releasing v24.7
lsheikal Jul 31, 2024
3f86be3
Merge pull request #102 from CiscoTestAutomation/release_24.7
lsheikal Aug 1, 2024
1e8929e
Open branches for release_24.8
domachad Aug 26, 2024
f896c8d
Releasing v24.8
domachad Sep 3, 2024
3063d63
Delete docs/changelog/2024/september.rst
domachad Sep 3, 2024
c2b6549
Update index.rst
domachad Sep 3, 2024
7c39c85
Delete docs/changelog_plugins/2024/september.rst
domachad Sep 3, 2024
87005c4
Merge pull request #103 from CiscoTestAutomation/release_24.8
domachad Sep 4, 2024
c41e3d5
Releasing v24.9
Sep 25, 2024
009cad7
Merge pull request #104 from CiscoTestAutomation/release_24.9
Taarini Oct 1, 2024
86a61a2
Releasing v24.10
Oct 22, 2024
bb8271e
Merge pull request #105 from CiscoTestAutomation/release_24.10
ThomasJRyan Oct 25, 2024
9951e78
Releasing v24.11
lsheikal Nov 25, 2024
f31a0d9
Merge pull request #106 from CiscoTestAutomation/release_24.11
lsheikal Nov 27, 2024
a697068
Releasing v25.1
omehrabi Feb 3, 2025
77b17b3
Merge pull request #108 from CiscoTestAutomation/release_25.1
omehrabi Feb 5, 2025
cd4ea25
Releasing v25.2
Feb 28, 2025
6ac51e5
Releasing v25.2
Mar 11, 2025
ea460a4
Merge pull request #110 from CiscoTestAutomation/release_25.2
Taarini Mar 11, 2025
8fd0dac
Releasing v25.3
Mar 27, 2025
e4fec41
Merge pull request #111 from CiscoTestAutomation/release_25.3
ThomasJRyan Apr 1, 2025
a71f21c
Releasing v25.4
lsheikal Apr 26, 2025
b6cc3f0
Merge pull request #112 from CiscoTestAutomation/release_25.4
lsheikal Apr 30, 2025
57bbf8e
Releasing v25.5
omehrabi May 30, 2025
1c487df
Releasing v25.5
omehrabi Jun 3, 2025
ea87320
Merge pull request #113 from CiscoTestAutomation/release_25.5
omehrabi Jun 4, 2025
4c29eee
Releasing v25.6
Jul 8, 2025
3719657
Merge pull request #114 from CiscoTestAutomation/release_25.6
ThomasJRyan Jul 11, 2025
fdcfe4e
Releasing v25.7
Aug 8, 2025
9532f94
Update run_tests.yml
Taarini Aug 11, 2025
205d5b5
Merge pull request #115 from CiscoTestAutomation/release_25.7
Taarini Aug 12, 2025
7680392
Releasing v25.8
lsheikal Sep 5, 2025
38e647b
fix docs
lsheikal Sep 9, 2025
882e7c6
Merge pull request #116 from CiscoTestAutomation/release_25.8
lsheikal Sep 9, 2025
98fbb90
Releasing v25.9
omehrabi Sep 30, 2025
38104cb
Releasing v25.9
omehrabi Oct 1, 2025
a3d9979
Merge pull request #117 from CiscoTestAutomation/release_25.9
omehrabi Oct 2, 2025
f13ea92
Releasing v25.10
Nov 19, 2025
d12e8d3
Releasing v25.10
Nov 19, 2025
f4abc00
Merge pull request #119 from CiscoTestAutomation/release_25.10
Taarini Nov 20, 2025
2318bf5
Releasing v25.11
Dec 8, 2025
35fd554
Releasing v25.11
Dec 8, 2025
db910fc
Merge pull request #120 from CiscoTestAutomation/release_25.11
ThomasJRyan Dec 10, 2025
6cdee25
Releasing v26.1
omehrabi Jan 30, 2026
5cc3536
release_26.1
omehrabi Feb 4, 2026
dcf6279
update changelogs
omehrabi Feb 4, 2026
46db5fb
Merge pull request #121 from CiscoTestAutomation/release_26.1
omehrabi Feb 5, 2026
5d9a26c
Releasing v26.2
lsheikal Mar 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @CiscoTestAutomation/pyats-genie-devs
36 changes: 36 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run Tests

on:
- push
- pull_request

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
group: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyats[full] pytest pytest-split
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip uninstall unicon.plugins -y
- name: Test Unit Tests
run: |
make develop
cd tests
py.test --splits 5 --group ${{ matrix.group}} -v -k 'test_ and not test_connect_mit'
shell: bash
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ uni.log
# Files resulting from a git meld merge
*.orig

# VSCode
.vscode
.history

# ignore auto generate docs
docs/user_guide/services/service_dialogs.rst

81 changes: 63 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,42 @@ PKG_NAME = unicon.plugins
BUILD_DIR = $(shell pwd)/__build__
DIST_DIR = $(BUILD_DIR)/dist
SOURCEDIR = .
PROD_USER = pyadm@pyats-ci
PROD_PKGS = /auto/pyats/packages/cisco-shared
PYTHON = python
PYTHON = python3
TESTCMD = runAll --path=tests/
BUILD_CMD = $(PYTHON) setup.py bdist_wheel --dist-dir=$(DIST_DIR)
PYPIREPO = pypitest


DEPENDENCIES = robotframework pyyaml dill coverage Sphinx \
sphinxcontrib-napoleon sphinxcontrib-mockautodoc \
sphinx-rtd-theme asyncssh
sphinx-rtd-theme asyncssh PrettyTable "cryptography>=43.0"


.PHONY: clean package distribute develop undevelop help devnet\
docs test install_build_deps uninstall_build_deps
docs test install_build_deps uninstall_build_deps distribute_staging\
distribute_staging_external

help:
@echo "Please use 'make <target>' where <target> is one of"
@echo ""
@echo "package Build the package"
@echo "test Test the package"
@echo "distribute Distribute the package to internal Cisco PyPi server"
@echo "clean Remove build artifacts"
@echo "develop Build and install development package"
@echo "undevelop Uninstall development package"
@echo "docs Build Sphinx documentation for this package"
@echo "install_build_deps does nothing - just following pyATS pkg standard"
@echo "uninstall_build_deps does nothing - just following pyATS pkg standard"
@echo "package Build the package"
@echo "test Test the package"
@echo "distribute Distribute the package to internal Cisco PyPi server"
@echo "distribute_staging Distribute build pkgs to staging area"
@echo "distribute_staging_external Distribute build pkgs to external staging area"
@echo "clean Remove build artifacts"
@echo "develop Build and install development package"
@echo "undevelop Uninstall development package"
@echo "docs Build Sphinx documentation for this package"
@echo "install_build_deps does nothing - just following pyATS pkg standard"
@echo "uninstall_build_deps does nothing - just following pyATS pkg standard"
@echo "changelogs Build compiled changelog file"
@echo ""

install_build_deps:
@pip install --upgrade pip setuptools wheel
@echo ""
@echo "Done."
@echo ""

uninstall_build_deps:
Expand All @@ -47,12 +52,13 @@ docs:
@echo "Building $(PKG_NAME) documentation for preview: $@"
@echo ""

python docs/gen_dialogs_rst.py > docs/user_guide/services/service_dialogs.rst
python3 docs/gen_dialogs_rst.py > docs/user_guide/services/service_dialogs.rst
sphinx-build -b html -c docs -d ./__build__/documentation/doctrees docs/ ./__build__/documentation/html

@echo "Completed building docs for preview."
@echo ""

@echo "Done."
@echo ""

test:
@$(TESTCMD)
Expand All @@ -68,6 +74,8 @@ package:
@echo ""
@echo "Completed building: $@"
@echo ""
@echo "Done."
@echo ""

develop:
@echo ""
Expand All @@ -76,22 +84,26 @@ develop:
@echo ""
@pip uninstall -y $(PKG_NAME)
@pip install $(DEPENDENCIES)
@$(PYTHON) setup.py develop --no-deps
@pip install -e . --no-deps
@echo ""
@echo "Completed building and installing: $@"
@echo ""
@echo "Done."
@echo ""

undevelop:
@echo ""
@echo "--------------------------------------------------------------------"
@echo "Uninstalling $(PKG_NAME) development distributable: $@"
@echo ""

@$(PYTHON) setup.py develop --no-deps -q --uninstall
@pip uninstall $(PKG_NAME) -y

@echo ""
@echo "Completed uninstalling: $@"
@echo ""
@echo "Done."
@echo ""

clean:
@echo ""
Expand All @@ -115,3 +127,36 @@ distribute:
@echo ""
@echo "Done."
@echo ""

distribute_staging:
@echo ""
@echo "--------------------------------------------------------------------"
@echo "Copying all distributable to $(STAGING_PKGS)"
@test -d $(DIST_DIR) || { echo "Nothing to distribute! Exiting..."; exit 1; }
@ssh -q $(PROD_USER) 'test -e $(STAGING_PKGS)/$(PKG_NAME) || mkdir $(STAGING_PKGS)/$(PKG_NAME)'
@scp $(DIST_DIR)/* $(PROD_USER):$(STAGING_PKGS)/$(PKG_NAME)/
Comment on lines +136 to +137

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate staging deploy vars before invoking ssh/scp

The new distribute_staging target uses $(PROD_USER) and $(STAGING_PKGS) without defining defaults or checking that they are set, and this commit also removed the previous top-level deploy variable defaults. In a normal local run (no extra env vars), these expand to empty strings and produce invalid commands like ssh -q ... / scp ... :/unicon.plugins/, so staging distribution fails (or can target an unintended path) before any package is copied.

Useful? React with 👍 / 👎.

@echo ""
@echo "Done."
@echo ""

distribute_staging_external:
@echo ""
@echo "--------------------------------------------------------------------"
@echo "Copying all distributable to $(STAGING_EXT_PKGS)"
@test -d $(DIST_DIR) || { echo "Nothing to distribute! Exiting..."; exit 1; }
@ssh -q $(PROD_USER) 'test -e $(STAGING_EXT_PKGS)/$(PKG_NAME) || mkdir $(STAGING_EXT_PKGS)/$(PKG_NAME)'
@scp $(DIST_DIR)/* $(PROD_USER):$(STAGING_EXT_PKGS)/$(PKG_NAME)/
@echo ""
@echo "Done."
@echo ""

changelogs:
@echo ""
@echo "--------------------------------------------------------------------"
@echo "Generating changelog file"
@echo ""
@python3 -c "from ciscodistutils.make_changelog import main; main('./docs/changelog/undistributed', './docs/changelog/undistributed.rst')"
@python3 -c "from ciscodistutils.make_changelog import main; main('./docs/changelog_plugins/undistributed', './docs/changelog_plugins/undistributed.rst')"
@echo ""
@echo "Done."
@echo ""
45 changes: 45 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#### Contribute to documentation

To contribute, you need to fork the repository, do your modifications and create a new pull request.

> :warning: **Please make sure you have the full pyats package installed via ```pip install pyats[full]```.**

To build the docs locally on your machine. Please follow the instructions below

- Go to the [Unicon.plugins Github repository](https://github.com/CiscoTestAutomation/unicon.plugins)

- On the top right corner, click ```Fork```. (see https://help.github.com/en/articles/fork-a-repo)

<img width="421" alt="Screen Shot 2020-12-21 at 2 37 19 PM" src="https://user-images.githubusercontent.com/30438439/102815289-1e75e700-439a-11eb-92bc-e424ddce9758.png">

- In your terminal, clone the repo using the command shown below:
```shell
git clone https://github.com/<your_github_username>/unicon.plugins.git
```

- ```cd unicon.plugins/docs```

- Use ```make install_build_deps``` to install all of the build dependencies

- Run ```make docs``` to generate documentation in HTML

- Wait until you see ```Done``` in your terminal

- The documentation is now built and stored under the directory
```unicon.plugins/__build__```

- Run ```make serve``` to view the documentation on your browser

- Please create a PR after you have made your changes (see [commit your changes](https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/contribute/contribute.html#commit-your-changes) & [open a PR](https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/contribute/contribute.html#open-a-pull-request))

Here are a few examples that could be great pull request:

- Fix Typos
- Better wording, easier explanation
- More details, examples
- Anything else to enhance the documentation


#### How to contribute to the pyATS community

- For detail on contributing to pyATS, please follow the [contribution guidelines](https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/contribute/contribute.html#)
7 changes: 7 additions & 0 deletions docs/api/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Unicon API Reference
====================

.. toctree::
:maxdepth: 4

unicon
38 changes: 38 additions & 0 deletions docs/api/unicon.bases.linux.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
unicon.bases.linux package
==========================

Submodules
----------

unicon.bases.linux.connection module
------------------------------------

.. automodule:: unicon.bases.linux.connection
:members:
:undoc-members:
:show-inheritance:

unicon.bases.linux.connection_provider module
---------------------------------------------

.. automodule:: unicon.bases.linux.connection_provider
:members:
:undoc-members:
:show-inheritance:

unicon.bases.linux.services module
----------------------------------

.. automodule:: unicon.bases.linux.services
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: unicon.bases.linux
:members:
:undoc-members:
:show-inheritance:
38 changes: 38 additions & 0 deletions docs/api/unicon.bases.routers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
unicon.bases.routers package
============================

Submodules
----------

unicon.bases.routers.connection module
--------------------------------------

.. automodule:: unicon.bases.routers.connection
:members:
:undoc-members:
:show-inheritance:

unicon.bases.routers.connection_provider module
-----------------------------------------------

.. automodule:: unicon.bases.routers.connection_provider
:members:
:undoc-members:
:show-inheritance:

unicon.bases.routers.services module
------------------------------------

.. automodule:: unicon.bases.routers.services
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: unicon.bases.routers
:members:
:undoc-members:
:show-inheritance:
30 changes: 30 additions & 0 deletions docs/api/unicon.bases.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
unicon.bases package
====================

Subpackages
-----------

.. toctree::

unicon.bases.linux
unicon.bases.routers

Submodules
----------

unicon.bases.settings module
----------------------------

.. automodule:: unicon.bases.settings
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: unicon.bases
:members:
:undoc-members:
:show-inheritance:
Loading
Loading