Skip to content

Double output if no password provided #284

@maxdevyatov

Description

@maxdevyatov

If you don't specify password in configuration or CLI then verification will be done and displayed twice.

jsnapy --snapcheck -f main_test_test.yml
Connecting to device router1 ................

Enter Password for username <username1> :
Connecting to device router1 ................
Taking snapshot of COMMAND: show chassis alarms
Taking snapshot of COMMAND: show system alarms
***************************** Device: router1 *****************************
Tests Included: show_chassis_alarms
************************ Command: show chassis alarms ************************
PASS | All "alarm-description" do not exists at xpath "alarm-summary[boolean(no-active-alarms)] | alarm-detail" [ 1 matched ]
Tests Included: show_system_alarms
************************ Command: show system alarms ************************
PASS | All "alarm-description" do not exists at xpath "alarm-summary[boolean(no-active-alarms)] | alarm-detail" [ 1 matched ]
------------------------------- Final Result!! -------------------------------
show_system_alarms : Passed
show_chassis_alarms : Passed
Total No of tests passed: 2
Total No of tests failed: 0
Overall Tests passed!!!
***************************** Device: router1 *****************************
Tests Included: show_chassis_alarms
************************ Command: show chassis alarms ************************
PASS | All "alarm-description" do not exists at xpath "alarm-summary[boolean(no-active-alarms)] | alarm-detail" [ 1 matched ]
Tests Included: show_system_alarms
************************ Command: show system alarms ************************
PASS | All "alarm-description" do not exists at xpath "alarm-summary[boolean(no-active-alarms)] | alarm-detail" [ 1 matched ]
------------------------------- Final Result!! -------------------------------
show_system_alarms : Passed
show_chassis_alarms : Passed
Total No of tests passed: 2
Total No of tests failed: 0
Overall Tests passed!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions