Skip to content

Commit

Permalink
[CMIS] Return the CDB status value for the caller to check the status…
Browse files Browse the repository at this point in the history
… and perform the corresponding actions

Signed-off-by: xinyu <[email protected]>
  • Loading branch information
xinyulin committed Jul 28, 2024
1 parent a4b63b1 commit 7af283f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/sonic_xcvr/test_cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,8 @@ def test_get_transceiver_info_firmware_versions(self):
assert result == expected_result

@pytest.mark.parametrize("mock_response, expected", [
({'status':1, 'rpl':(18, 0, [0] * 18)}, {'status': True, 'info': "", 'result': None}),
({'status':0, 'rpl':(18, 0, [0] * 18)}, {'status': False, 'info': "", 'result': None}),
({'status':1, 'rpl':(18, 1, [0] * 18)}, {'status': True, 'info': "", 'result': None})
])
def test_get_module_fw_mgmt_feature(self, mock_response, expected):
self.api.cdb = MagicMock()
Expand Down

0 comments on commit 7af283f

Please sign in to comment.