-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPyTest documentation initial version #1565
Merged
Merged
Conversation
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
noaOrMlnx
added a commit
to noaOrMlnx/sonic-mgmt
that referenced
this pull request
May 19, 2020
* Convert dip_sip ansible test to pytest (sonic-net#1488) * Convert dip_sip ansible test to pytest * Fix Review Comments: - Add ansible wrapper to dip_sip.yml - Delete unneccessary files Signed-off-by: Noa Or <[email protected]> * Fix review comments Check if topology is lag group by minigraph facts. * Update test_dip_sip.py * [pmon daemon check] refactoring pmon daemon state check code (sonic-net#1537) * [daemon utils] move platform/check_daemon_status.py to common/platform/daemon_utils.py Signed-off-by: Ying Xie <[email protected]> * [pmon daemon] refactoring pmon daemon state checking - Refactor get_pmon_daemon_list to get_pmon_daemon_states: returning list of daemon states. not returning daemons that are known short lived. not returning daemons disabled by configuration. - Refactor daemon state check to check the returned states. Signed-off-by: Ying Xie <[email protected]> * Fix test_techsupport.py so it could run with T1 topology (sonic-net#1538) * Fix test_techsupport.py so it could run with T1 topology * [lgtm] Configure LGTM to analyze test code (sonic-net#1544) Signed-off-by: Danny Allen <[email protected]> * [tests] Fix LGTM errors in tests folder (sonic-net#1545) Signed-off-by: Danny Allen <[email protected]> * Convert vxlan-decap testing to pytest (sonic-net#1518) Signed-off-by: Xin Wang <[email protected]> Co-authored-by: Xin Wang <[email protected]> * Add the APC PSU support for SNMP PSU controller (sonic-net#1461) Add APC SNMP MIB for PDU control PORT_NAME_BASE_OID = ".1.3.6.1.4.1.318.1.1.4.4.2.1.4" PORT_STATUS_BASE_OID = ".1.3.6.1.4.1.318.1.1.12.3.5.1.1.4" PORT_CONTROL_BASE_OID = ".1.3.6.1.4.1.318.1.1.12.3.3.1.1.4" How did you verify/test it? {username}@{sonic-mgmt-docker}:/var/sonic-mgmt-int/tests/common/plugins/psu_controller$ python Python 2.7.12 (default, Oct 8 2019, 14:14:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. from snmp_psu_controllers import * psucntl = get_psu_controller('<controller_ip>',"<device_name>") psucntl.get_psu_status() [{'psu_id': 0, 'psu_on': True}] psucntl.turn_off_psu('0') True psucntl.get_psu_status() [{'psu_id': 0, 'psu_on': False}] psucntl.turn_on_psu('0') True psucntl.get_psu_status() [{'psu_id': 0, 'psu_on': True}] print psucntl.psuType APC * [Mellanox] Fix issues for thermal control test cases (sonic-net#1524) * [thermal fix] 1. should not mock PSU fan speed less than 100; 2. wait 5 seconds after turning on PSU * Add some check for test case test_thermal_control_psu_absence * [pytest/hash] add hash key ingress-port test (sonic-net#1509) 1. Iterate once for every port when hash key is ingress port. 2. In loose mode, do not need to enter the check_balancing function. * [advanced reboot] Add Paramiko module for device connection (sonic-net#1542) * [advanced reboot] Add Paramiko module for device connection Parmiko module provides fallback mechanism to using username/password This is required if we are rebooting into new image using advanced reboot test fixture. signed-off-by: Tamer Ahmed <[email protected]> * [pytest] Port advanced reboot based test cases (sad path) (sonic-net#1543) * [pytest] Port advanced reboot based test cases (sad path) This patch ports remaining sad path advanced reboot test cases to pytest infra. signed-off-by: Tamer Ahmed <[email protected]> * Update the importing of conn_graph_facts after platform_fixtures.py is removed (sonic-net#1547) PR sonic-net#1492 copied the implementation of conn_graph_facts in tests/platform/platform_fixtures.py to tests/common/fixtures/conn_graph_facts.py. Then PR sonic-net#1503 removed file tests/platform/platform_fixtures.py. But not all related importings were updated. This change is to update all the platform_fixtures related importings. Signed-off-by: Xin Wang <[email protected]> Co-authored-by: Xin Wang <[email protected]> * Create README.testbed.cEOS.md (sonic-net#1549) * Configure and enable core uploader (sonic-net#1522) * If core-storage secret key is available, add to /etc/sonic/core_analyzer.rc.json and enable & start core_uploader service If https_proxy is provided, update /etc/sonic/core_analyzer.rc.json. * Check the entire dict path before de-referencing. * Improved regex per comments. * Fixed syntax error. * Add a sample file for newly introduced ansible facts.wq * Removed a redundant empty line. Co-authored-by: Ubuntu <remanava@remanava-kube-1.hblknyhzkmnujibhxvn3dmavjb.xx.internal.cloudapp.net> * [tests/common/devices] Add FanoutHost (sonic-net#1532) * [tests/common/devices] Add FanoutHost - Add FanoutHost which aggregate different fanout switch host - Add fanouthosts fixture shortcut to get fanouthost easily - Support select host instance by os type - Support get fanout host by both mgmtip and hostname Co-authored-by: Jing Kan<[email protected]> * [tacacs]: replace shell command with service module (sonic-net#1550) Signed-off-by: Guohan Lu <[email protected]> * [tests/lag]: Convert lag_fallback.yml to pytest (sonic-net#1526) * [tests/lag]: Convert lag_fallback.yml to pytest - Convert lag_fallback.yml to pytest - Reuse int shutdown mehod to shut a member of lag - Use EOSHost class method shutdown/no_shutdown - Add post check for EOSHost shutdown/no_shutdown - Fix typos Co-authored-by: Jing Kan<[email protected]> * [pytest] Fix get_asic_type method and logging (sonic-net#1557) * [pytest] Fix get_asic_type method and logging The get_asic_type method dereferences dut which is not a member of the the class. the dut is an instance of SonicHost class and so should reference self. signed-off-by: Tamer Ahmed <[email protected]> * Added iptables rules to make sure BGP don't ack back to BGP peer syn messages (sonic-net#1561) * Added iptables rules to make sure BGP don't ack to peer messages. Otherwise this TX packets can make egress buffer accounting off Signed-off-by: Abhishek Dosi <[email protected]> * Review Comments Address * [pytest/hash] Generate available send packet ports instead of hard coding src_ports in hash_test.py. (sonic-net#1511) Generate available send packet ports instead of hard coding src_ports in hash_test.py. * [fanout switch] build fanout switch list from device_conn map (sonic-net#1566) * [fanout switch] build fanout switch list from device_conn map - Build fanout switch from connection map. - Build fanout switch DUT port map for tests. - Build credential dict according to the DUt's inventory. - Set fanout switch password with right variable name. - Return command outpus. Signed-off-by: Ying Xie <[email protected]> * Fix an indentation * add comment for the os type * Stop arp_update before crm test to prevent DUT learning mac address unexpectly, which caused the fdb test fail. (sonic-net#1559) * Stop arp_update before crm test to prevent DUT learning mac address unexpectly, which caused the fdb test fail. * [pytest] Add replace fast-reboot script test option (sonic-net#1563) Adding an option to replace fast reboot script on dut as part of testbed preparation. signed-off-by: Tamer Ahmed <[email protected]> * [pytest/creds]: load groups vars into creds for the dut (sonic-net#1575) Signed-off-by: Guohan Lu <[email protected]> * [pytest/common/devices] Remove immediately checking of shut/no_shut (sonic-net#1576) - The check can be put in a wait_unitl if user want Co-authored-by: Blueve <[email protected]> * SPyTest documentation initial version (sonic-net#1565) Co-authored-by: Rama Sasthri, Kristipati <[email protected]> * [tests/conftest] Read os_type from ansible inventory vars to construct FanoutHost (sonic-net#1577) - Read os var from ansible inventory manager Co-authored-by: Jing Kan<[email protected]> * [link flap] add link flap pytest (sonic-net#1573) [link flap] add link flap pytest * Use show interface status to obtain operational status of interfaces. * Filter out operational down interfaces from test list. * Address show_interface.py issue with single interface output. Signed-off-by: Ying Xie <[email protected]> * Fix sensor data for 3700 (sonic-net#1568) * [Mellanox] Fix issue: remove non-exist sensor sysfs files (sonic-net#1567) * [pytest/snmp_lldp]: exclude mgmt interface from active interface list (sonic-net#1564) align the criteria for checking lldpRemManAddrTable, mgmt interface 'eth0' is ruled out from the lldp neighbor list. * [pytest/features] Add test for show features command (sonic-net#1546) * [pytest assersion] introduce assertion handling code (sonic-net#1592) Signed-off-by: Ying Xie <[email protected]> * [advanced-reboot] Refactor prepare ssh keys into ssh_utils (sonic-net#1571) The ssh keys preparation is also required by wr_arp test suite, and so putting it into common utils file for sharing signed-off-by: Tamer Ahmed <[email protected]> * [tests/pc] Use test_po_update.py in config.yml directly (sonic-net#1589) * [tests/pc] Use test_po_update.py in config.yml directly - Replace origin logic of config.yml with test_po_update.py - Refine the test_po_udpate test with recommand fixture usage - Remove useless import - Remove useless var Co-authored-by: Blueve <[email protected]> * [pytest] Convert control plane assisted warm-reboot test (wr_arp) (sonic-net#1572) * [pytest] Convert control plane assisted warm-reboot test (wr_arp) This PR converts Ansible control assisted warm-reboot (wr_arp) test case to pytest. signed-off-by: Tamer Ahmed <[email protected]> * [recovery] introduce adaptive recover method (sonic-net#1583) * [recovery] introduce adaptive recover method - For interfaces down failure, try to bring up the interfaces. - For service down failure, reload config to bring them back up. - For all other failures, reboot to recover. - Make adaptive the default recover method. - reboot dut to recover if database service is down - Only allow cover service to override None action Signed-off-by: Ying Xie <[email protected]> * [tests/lag_2] Refactor test_lag_2.py (sonic-net#1582) * [tests/lag_2] Refactor test_lag_2.py - Refine the code structure by using class to share a static context - Remove most useless code and defines - Rename some vars - Use fanouthosts fixture for single_lag test - Fix existing LGMT alarm - Use wait_until to check if a int has been shut - Fix pytest warnings regarding Test case detector Co-authored-by: Jing Kan <[email protected]> * [ansible] Fix symlink to ferret.conf.j2 (sonic-net#1595) Template file was moved to arp/files/ferret.conf.j2 and symlink update was missed signed-off-by: Tamer Ahmed <[email protected]> * [test/procdockerstatsd] Verify daemon is active/running and uploads data successfully (sonic-net#1548) * [pfc_storm_icos.j2]: jinja2 template to start PFC storm on ICOS. (sonic-net#1590) [pfc_storm_stop_icos.j2]: jinja2 template to stop PFC storm on ICOS. Note: Jinja2 considers physical to logical mapping of interfaces as per ICOS user manual. fpti1_0_1 0/1 fpti1_0_2 0/2 fpti1_0_3 0/3 Co-authored-by: Praveen Chaudhary <[email protected]> * [pytest/hash] Add hash keys: 'src-mac', 'dst-mac', 'ip-proto', 'vlan-id'. (sonic-net#1512) * Revise according to the following review comments: 1. Not enable src-mac, dst-mac and vlan-id hash keys by default. 2. Get all untag vlan ports move to a separate function. 3. setup vlans for hash_key vlan-id test when vlan-id in hash_keys. * [pytest/default_route_check]: check various aspect related to default route learnt from bgp (sonic-net#1598) - check if default route has correct set src address - check if ipv6 default route use global nexthop or not Signed-off-by: Guohan Lu <[email protected]> * Fix below issue: (sonic-net#1596) add topo is giving error as part of VEOS task TASK [eos : Get VM front panel interface number] with error FAILED! => {"msg": "Incorrect sudo password"} Instead of using ansible_sudo_password make it ansible_become_password based on below thread. ansible/ansible#62042 * [tests/lag_2] Use test_lag_2.py in lag_2.yml directly (sonic-net#1602) - Remove lag_fallback.yml - Remove single_lag_lacp_rate_test.yml - Remove single_lag_test.yml - Use pytest runner to run pytest lag_2 test in lag_2.yml Co-authored-by: Jing Kan<[email protected]> * [tests/sensors] Convert sensors_check.yml to pytest (sonic-net#1601) * [tests/sensors] Convert sensors_check.yml to pytest - Convert sensors_check.yml to test_sensors.py - Skip test if platform not supported - Replace origin playbook with pytest runner - Use pytest_assert helper instead of native assert to reduce noise - Refactor _platform_info method in SonicHost and expose it function as a getter Co-authored-by: JIng Kan<[email protected]> * [tests/telemetry] Verify default config parameters (sonic-net#1530) * [pytest/test_default_route]: support 4.9 kernel 201911/201811 release (sonic-net#1600) Signed-off-by: Guohan Lu <[email protected]> * [TestbedProcessing] Minor fixes to suite latest changes (sonic-net#1604) * Remove witespases * Add ptf_pb_ip parsing * Fix testbed.csv generating * Use ansible_become_pass * [pytest]: reorg tests info subfolder (sonic-net#1613) Signed-off-by: Guohan Lu <[email protected]> * [sanity_checks]: add critical process check in sanity checks (sonic-net#1617) - first read the critical process list (/etc/supervisord/critical_process) from the container, and then check if any of the process crashed. - add snmp container to the critical service list - add auto_recover support Signed-off-by: Guohan Lu <[email protected]> * add comment Signed-off-by: Guohan Lu <[email protected]> * add auto_recover support if process check failed * [tests/sensors] Move test_sensors.py to domain specific folder (sonic-net#1616) Co-authored-by: Jing Kan <[email protected]> * Fix sensors_check link (sonic-net#1611) * [pytest]: add get_ip_route_info in SonicHost (sonic-net#1618) get_ip_route_info returns ip route info in the kernel for a given destination ip refactor test_default_route to use the new method Signed-off-by: Guohan Lu <[email protected]> * [Mellanox/platform]Compare CPU's temperature against critical threshold (sonic-net#1585) * [loganalyzer] Fail flag support in context manager and callback execution (sonic-net#1619) * Fail flag support in context manager and callback execution Signed-off-by: Neetha John <[email protected]> * [Mellanox] add test cases for dynamic minimum fan speed and psu fan speed policy (sonic-net#1552) * [pytest/nbrhost]: add neighbor config info in nbrhost class (sonic-net#1621) * [vxlan-decap]: Flush ptf rx buffer before ptf send packet. (sonic-net#1608) * add links to virtual switch testbed setup * [telemetry certs] deploy certs for telemetry in deploy-mg (sonic-net#1614) * adding server and dsmsroot certs for telemetry * adding support for ptfhost copy certs * [pytest] Add support to populate DUT FDB entries (sonic-net#1593) * [pytest] Add support to populate DUT FDB entries This new PTF plugin and test case that populates DUT FDb entries. It generates n Packets and sends them to DUT vlan IP. The number of distinct MAC to distinct ip addresses is configurable. signed-off-by: Tamer Ahmed <[email protected]> * Revert "[telemetry certs] deploy certs for telemetry in deploy-mg (sonic-net#1614)" (sonic-net#1628) This reverts commit 19e92b1. * [Mellanox]Fix sensor data for 3700/3700c/3800 (sonic-net#1627) * Ignore test in test_turn_on_off_psu_and_check_psustatus (sonic-net#1606) * Fixed fixture scope conflict for DUT monitor (sonic-net#1630) Signed-off-by: Yuriy Volynets <[email protected]> * [test plans] Moving test plans from sonic-wiki repo to sonic-mgmt repo (sonic-net#1631) Signed-off-by: Ying Xie <[email protected]> * [pytest/bgp_gr_test]: add bgp graceful restart helper test (sonic-net#1623) Signed-off-by: Guohan Lu <[email protected]> * [Mellanox] Adjust test cases for fan led support (sonic-net#1580) * Fixes in test_drop_counters.py (sonic-net#1610) - Added more attempts to read and verify if expected drop counter was changed to the specific - value. It was observed delays in counter refreshing, so this fix was added. - Fixed 'test_not_expected_vlan_tag_drop', removed vlan 1, because port channels are members of vlan 1. - Skipped 'test_loopback_filter', added description. Signed-off-by: Yuriy Volynets <[email protected]> * [swap_syncd] Fix failures in swap syncd (sonic-net#1632) Signed-off-by: Danny Allen <[email protected]> * [pytest]: fix typo in parse default route output (sonic-net#1634) * Update README.md * Update README.md * [pytest/ansible] Add support for multi-duts (sonic-net#1432) * [pytest/ansible] Add support for multi-duts * review comment: use duts instead of dut * Fixing various test cases to use duthost instead of testbed_devices['dut'] * trim spaces if any when present in the duts list signed-off-by: Tamer Ahmed <[email protected]> * Pytest organization proposal (sonic-net#1605) * Pytest organization proposal Signed-off-by: Neetha John <[email protected]> * [test/dir_bcast] Convert dir_bcast.yml to pytest (sonic-net#1609) * [test/dir_bcast] Convert dir_bcast.yml to pytest * Force refresh router before testing and move to ipfwd folder * Fix LGTM alerts Co-authored-by: Jing Kan<[email protected]> * [copp] Convert COPP test to pytest (sonic-net#1633) Signed-off-by: Danny Allen <[email protected]> * [doc]: Update document to specify non-empty password file (sonic-net#1638) ansible 2.8 expects a non-empty file * Revert "[copp] Convert COPP test to pytest (sonic-net#1633)" (sonic-net#1643) This reverts commit 9a8fc1e. * [pytest] Fix ptf_runner issue introduced by COPP test conversion (sonic-net#1644) * [copp] Convert COPP test to pytest (sonic-net#1633) * Fix missing space in ptf_runner Signed-off-by: Danny Allen <[email protected]> * [fast-reboot]: Fix IP range overlapping. (sonic-net#1637) Signed-off-by: Nazarii Hnydyn <[email protected]> * Add support of specifying multiple inventory files (sonic-net#1645) The pytest-ansible plugin always assumes that the value of cli argument '--inventory' is a single inventory file. With this enhancement, we can pass in multiple inventory files using the cli argument '--inventory'. The multiple inventory files can be separated by comma ','. For example: pytest --inventory "inventory1, inventory2" <other arguments> pytest --inventory inventory1,inventory2 <other arguments> Signed-off-by: Xin Wang <[email protected]> * [pytest] Fix module import issue when running whole test suite (sonic-net#1642) * [pytest] Fix module import issue when running whole test suite When having multiple conftest, dir leading to this conftest has to be Python package (presence of __init__.py.) Also, adding pytest basedir to conftest.py signed-off-by: Tamer Ahmed <[email protected]> * [advanced-reboot] Fix IP range overalapping (sonic-net#1653) This code ports PR 1637 to advanced reboot. ported-pr: sonic-net#1637 signed-off-by: Tamer Ahmed <[email protected]> * Deprecate ansible_host.py (sonic-net#1658) * Deprecate ansible_host.py The functionalities in ansible_host.py , including the AnsibleHost class and some exceptions, have been implemented in the common library. This file can be deprecated in case people new to sonic-mgmt waste time on old libraries. Changes: 1. Remove ansible_host.py 2. Replace all the AnsibleHost related calls with more appropriate fixtures or functions. 3. Remove duplicated localhost fixture definition Signed-off-by: Xin Wang <[email protected]> * [Mellanox] Fix sensor data for SN4700 (sonic-net#1660) * Fix for SN4700 sensors Signed-off-by: Shlomi Bitton <[email protected]> * Edit sensors file with correct labels * [drop counters] Improve support for combined L2/L3 drop counters (sonic-net#1649) - Get the correct interface for combined L2/L3 counters - Add Arista and Dell SKUs to the combined counter list Signed-off-by: Danny Allen <[email protected]> * [pytest/ntp] Use local time when behind proxy (sonic-net#1640) When testbed is behind a proxy then NTP inside the ptf container cant synchronize with public NTP servers and test hung on ntpd -gq command * [recover] improve adaptive recover methods (sonic-net#1652) - When process is missing, reload_config. - When port channle or vlan link is down, reload_config. - redirect output of config reload and load minigraph to /dev/null. Signed-off-by: Ying Xie <[email protected]> * [sensors] Added support of Montara nad Maverics platforms to sku-sensors-data.yml (sonic-net#1646) Signed-off-by: Vitaliy Senchyshyn <[email protected]> * [pytest] PFCWD config test (sonic-net#1620) * Pytest PFCWD config test Signed-off-by: Neetha John <[email protected]> * Address LGTM Signed-off-by: Neetha John <[email protected]> * Rename marker to syslog_marker Signed-off-by: Neetha John <[email protected]> * Separate out verbose comments Signed-off-by: Neetha John <[email protected]> * [advanced-reboot] Fix testing hang when doing BGP shutdown on Arista VM (sonic-net#1579) Fix warm-reboot-sad-bgp testing hang after vEOS upgraded to 4.20.15M. It pops a confirm message when doing BGP shutdown. * [file organization] Rename folder names to allow markers to work again (sonic-net#1671) * Revert "[pytest] Fix module import issue when running whole test suite (sonic-net#1642)" This reverts commit f88cff2. * [file organization] Rename folder names to allow markers to work again pytest has an issue dealing with sub-folders with the same name and being included from. In this case, the problem was with several components has 'args' as sub-folder to hold argument parsing utilities. This issue was initially caught when we were tryign to run the whole test suite. Attemp was made to address this issue. However there are more in pytest that cannot tolerate same name sub-folders. Change 'args' to '<feature>_args' and change conftest.py accordingly. Signed-off-by: Ying Xie <[email protected]> * Rename 'platform' directory to 'platform_tests' to prevent conflicts (sonic-net#1662) * Deprecate fixture testbed_devices (sonic-net#1665) The testbed_devices fixture is not a good design. Multiple testbed device objects are initialized in this fixture. It is not common that a test script needs all the devices. This fixture may cause unnecessary overhead. It would be better for test scripts to use the fixtures for different devices on needed basis. Changes: 1. Remove the definition of fixture testbed_devices. 2. Replace the call to testbed_devices fixture with other fixtures that fit better. Signed-off-by: Xin Wang <[email protected]> * [Mellanox] Fix sensor data for 2010 (sonic-net#1673) * Update Th buffer params for Alpha change (sonic-net#1676) Signed-off-by: Neetha John <[email protected]> * [QoS] Fix qos issues (sonic-net#1664) Fix some issues found during QoS test. - Support ARP populate for ptf topo - Add debug info in WRRtest for the purpose of providing detail result in case of failure. Co-authored-by: Ying Xie <[email protected]> Co-authored-by: Danny Allen <[email protected]> Co-authored-by: Xin Wang <[email protected]> Co-authored-by: Xin Wang <[email protected]> Co-authored-by: Sujin Kang <[email protected]> Co-authored-by: Junchao-Mellanox <[email protected]> Co-authored-by: William-zx <[email protected]> Co-authored-by: Tamer Ahmed <[email protected]> Co-authored-by: lguohan <[email protected]> Co-authored-by: Renuka Manavalan <[email protected]> Co-authored-by: Ubuntu <remanava@remanava-kube-1.hblknyhzkmnujibhxvn3dmavjb.xx.internal.cloudapp.net> Co-authored-by: Blueve <[email protected]> Co-authored-by: abdosi <[email protected]> Co-authored-by: Iris Hsu <[email protected]> Co-authored-by: Blueve <[email protected]> Co-authored-by: Rama Sasthri, Kristipati <[email protected]> Co-authored-by: Rama Sasthri, Kristipati <[email protected]> Co-authored-by: Kebo Liu <[email protected]> Co-authored-by: pra-moh <[email protected]> Co-authored-by: Praveen Chaudhary <[email protected]> Co-authored-by: Praveen Chaudhary <[email protected]> Co-authored-by: Myron Sosyak <[email protected]> Co-authored-by: Stephen Sun <[email protected]> Co-authored-by: Neetha John <[email protected]> Co-authored-by: yvolynets-mlnx <[email protected]> Co-authored-by: Xin Liu <[email protected]> Co-authored-by: Mahesh Maddikayala <[email protected]> Co-authored-by: Nazarii Hnydyn <[email protected]> Co-authored-by: Xin Wang <[email protected]> Co-authored-by: shlomibitton <[email protected]> Co-authored-by: Vitaliy Senchyshyn <[email protected]> Co-authored-by: Vincent Chiang <[email protected]> Co-authored-by: Joe LeVeque <[email protected]>
Hi ramakristipati Is spytest available now? I noticed that “For Scapy traffic generator refer to README.testbed.Setup.md” in sonic-mgmt/spytest/Doc/install.md. But the link points to sonic-mgmt/ansible/doc/README.testbed.Setup.md. |
Yes, SPyTest works on the same PTF testbed.
Refer to README.testbed.md
<https://github.com/Azure/sonic-mgmt/blob/master/ansible/README.testbed.md> for
setting up PTF-32 or PTF-64 topology.
This step is not needed if we are using Ixia/STC as a traffic generator.
Once the testbed is setup the SPyTest testbed file need to be created to
execute SPyTest tests
<https://github.com/Azure/sonic-mgmt/tree/master/spytest/tests>
…On Wed, Jul 1, 2020 at 7:05 AM Johnny Liu ***@***.***> wrote:
Hi ramakristipati
Is spytest available now? I noticed that “For Scapy traffic generator
refer to README.testbed.Setup.md” in sonic-mgmt/spytest/Doc/install.md.
But the link points to sonic-mgmt/ansible/doc/README.testbed.Setup.md.
So "sonic-mgmt/tests/" and "sonic-mgmt/spytest/" share the same testbed
for PTF? Will "spytest" replace "test" later?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1565 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAXSNHZQTI6MPPVXTJKDTTRZKHFXANCNFSM4MH2NXOQ>
.
--
Thanks
Rama Sasthri, Kristipati
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
SPyTest documentation
Summary:
Fixes # NA
Type of change
Approach
How did you do it?
NA
How did you verify/test it?
NA
Any platform specific information?
NA
Supported testbed topology if it's a new test case?
Documentation
NA