Commit Graph

5098 Commits

Author SHA1 Message Date
Matthew Stidham
ff0b787d8a test_ipv4_ps: Pass debug information to rm_port
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
2b6a74914b test_ip_connection: Pass debug information to rm_port command
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
7233c31940 sta_scan_test: Pass debug argument to wait_until_ports_appear
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
07f6bf3ca6 sta_connect2: Pass debug argument to wait_until_ports_disappear
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
35e21fdd68 sta_connect2: use debug argument flag and pass on to functions
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
44a260be66 create_vr: Create more debug output when debug is on
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
90cf89fa05 sta_connect: add debug when wait_until_something_something
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
7d4cf97a23 test_l3_unicast_traffic_gen: Output more debug output when debug is turned on
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
ac9d722a18 regression_test: add back logging recording logic
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
0c28b8745c scenario.py: Python logic allows us to easily compare lists of integers the way we want to
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
c9cdfe40be scenario.py: Use logic to test versions so that when we upgrade LANforge to 5.4.6 that scenario will still use the events tab without manual fixing.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
f86e86545e scenario.py: Also check if LANforge version is 5.4.5 when determining whether to use events json data or not
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
38724f7daa regression_test: Check if user is using anaconda, if so, install lanforge-scripts appropriately
if the user is not using any virtual environment, install from pip using --user flag

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
ea9bad3ce6 regression_test: append to filename.txt, don't overwrite data from scenario.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
63211997a9 regression_test: Use correct arguments for lf_dataplane_test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
4c1ab7edbc regression_test: Fix mamin logic of regression-test which was broken. Restore it back to where it was and add in the new features
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
2901944573 test_l3_powersave_traffic: make the local_realm input argument for modules explicit
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
a6241dc08c regression_test: Store report_data in report_data
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
c89b3930e0 regression_test: fix logic, fix arguments
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
a19b9e42ab test_l3_powersave_traffic: print ports when debug is on at beginning and end of test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
8a502c918c station_profile: Do not try to run set() on a dictionary, that does not work.
port_list needs to be a list of the keys in the 'interfaces' output of lanforge json

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Jed Reynolds
e646d20141 adjust_apache.pl: fixes bug where tab character could break file
- Regex was assuming spaces, now looking for \s patterns.
- Improves debug output
- adds gaurd against blank hostname

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
91259d1474 regression_test: Save report-data to report-data.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
d135d1ee6e StationProfile.create: LFRequest needs to be fed the url to make the request to
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
ffacc6dde3 regression_test: ADd debug to three commands
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
9c5223637f Revert "regression_test: Add debug to three more commands": Broke debugging
This reverts commit da8109a14b295b83c6e28af5de9eeef9acb9b8ea.
2022-07-12 15:45:33 +05:30
Matthew Stidham
f0694033dd StationProfile.create: Pretty print out current ports as soon as function starts when debug is on.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
27f24bf2bd regression_test: Add debug to three more commands
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
cc3d02a577 test_l3_longevity: Don't use a stand-in variable for args.debug. Call it directly
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
4e4276002f LFUtils: Replace nc_show_ports with show_ports in wait_until_ports_appear to enable caching
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
e709fd711c station_profile: Remove unused import
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
d6db3d0a2d station_profile: Remove unused arguments and make station_mode_to_number static
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
f4ddf7010b station_profile: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
d824dc0116 station_profile: Massively improve debug information so we have a better idea when scripts fail
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
0438e6f7db create_l3_stations: declare the function has begun in debug, use correct grammar at the end of the function
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
c950789af6 l3_cxprofile: Declare the beginning of l3_cxprofile.create when it starts when debug is turned on
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
642aab2dd4 LFUtils.wait_until_ports_disappear: remove ports if they still exist.
LFUtils.wait_until_ports_appear: Improve debug by printing existing stations and adding more information to debug string

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
24f7a64092 regression-test: if exit on error is 0, run the test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
0563d0bb46 regression_test: bash varibles need to be in curly braces
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
739b12d8e1 regression_test: Add exit on error flag
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
d6060dbe5c station_profile: Improve debug output when creating stations to make it more legible
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Scott Wedge
a13f8260d2 http_profile.py: update ftp feature for hard-code resource and upstream-port
Signed-off-by: Scott Wedge <wedges@candelatech.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
c7ae54338e regression_test: Name log from gui log as gui_log.txt
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
530551dd48 regression_test: Save LANforge logs to logging directory
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
95777f8b31 scenario.py: Print existing ports at the end of the test when debug is turned on
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
6c8e2dd9cb regression_test: Append scenario.py output to STDOUT file
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
aa5b4b14ef regression_test: log_filter isn't ready for production
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
f53050bb3d test_l3_unicast_traffic_gen: Add comment clearly stating what pre_cleanup does
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
6933884f70 test_l3_unicast_traffic_gen: Add comment explaining why we remove any existing br0 at the beginning of the test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
8ad0da6651 test_l3_unicast_traffic_gen: add pre_cleanup function
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30