Skip to content

Commit

Permalink
Added cisco config platform commands
Browse files Browse the repository at this point in the history
Signed-off-by: Yucai Gu <yucgu@cisco.com>
  • Loading branch information
yucgu committed Sep 9, 2022
1 parent dae423f commit f1de6ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,15 +1633,18 @@ def setup_class(cls):
#importlib.reload(config.main)

def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
expected_output = "Enabling TX"
#expected_output = "Enabling TX"
expected_output = "component"
(config, show) = get_cmd_module
db = Db()
runner = CliRunner()
obj = {'config_db': db.cfgdb}
#ctx = None
#config.config(ctx)
#result = runner.invoke(config.config.commands["platform"], ['--help'])
result = runner.invoke(config.config.commands["platform"].commands['cisco'].commands['interface'].commands['tx'].commands['enable'], ['Ethernet60'])
#result = runner.invoke(config.config.commands["platform"].commands['cisco'].commands['interface'].commands['tx'].commands['enable'], ['Ethernet60'])
udo config platform firmware update chassis
result = runner.invoke(config.config.commands["platform"].commands['firmware'].commands['update'].commands['chassis'], [])

print(result.exit_code)
print(result.output)
Expand Down

0 comments on commit f1de6ea

Please sign in to comment.