-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doc/readme housekeeping * add 3.10 to ci * make tests not a package, make it more in line w/ scrapli core * adding release branch creation to publish process * bump pins * regen integration sessions after minor lab updates, bump pins * 3.10 classifier
- Loading branch information
1 parent
9a25a1c
commit ff4c670
Showing
128 changed files
with
2,264 additions
and
2,091 deletions.
There are no files selected for viewing
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
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
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
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
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,5 +1,5 @@ | ||
mdx-gh-links==0.2 | ||
mkdocs==1.1.2 | ||
mkdocs-material==7.1.4 | ||
mkdocs-material==7.1.5 | ||
mkdocs-material-extensions==1.0.1 | ||
pdoc3==0.9.2 ; sys_platform != "win32" |
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 +1 @@ | ||
scrapli>=2021.07.30a2 | ||
scrapli>=2021.07.30a3 |
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
Empty file.
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,12 +1,44 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
from devices import CONFIG_REPLACER, DEVICES | ||
|
||
import scrapli_cfg | ||
|
||
EXPECTED_CONFIG_PATH = f"{Path(scrapli_cfg.__file__).parents[1]}/tests/expected_configs" | ||
EXPECTED_CONFIGS = { | ||
"arista_eos": open(f"{EXPECTED_CONFIG_PATH}/arista_eos").read(), | ||
"cisco_iosxe": open(f"{EXPECTED_CONFIG_PATH}/cisco_iosxe").read(), | ||
"cisco_nxos": open(f"{EXPECTED_CONFIG_PATH}/cisco_nxos").read(), | ||
"cisco_iosxr": open(f"{EXPECTED_CONFIG_PATH}/cisco_iosxr").read(), | ||
"juniper_junos": open(f"{EXPECTED_CONFIG_PATH}/juniper_junos").read(), | ||
} | ||
TEST_DATA_PATH = f"{Path(scrapli_cfg.__file__).parents[1]}/tests/test_data" | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def test_data_path(): | ||
"""Fixture to provide path to test data files""" | ||
return TEST_DATA_PATH | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def test_devices_dict(): | ||
"""Fixture to return test devices dict""" | ||
return DEVICES | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def expected_configs(): | ||
"""Fixture to provide expected configs""" | ||
return { | ||
"arista_eos": open(f"{TEST_DATA_PATH}/expected/arista_eos").read(), | ||
"cisco_iosxe": open(f"{TEST_DATA_PATH}/expected/cisco_iosxe").read(), | ||
"cisco_nxos": open(f"{TEST_DATA_PATH}/expected/cisco_nxos").read(), | ||
"cisco_iosxr": open(f"{TEST_DATA_PATH}/expected/cisco_iosxr").read(), | ||
"juniper_junos": open(f"{TEST_DATA_PATH}/expected/juniper_junos").read(), | ||
} | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def test_devices_dict(): | ||
"""Fixture to return test devices dict""" | ||
return DEVICES | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def config_replacer_dict(): | ||
"""Fixture to return dict of config replacer helper functions""" | ||
return CONFIG_REPLACER |
Oops, something went wrong.