Skip to content
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

ReadSingleIndirectMeterEntryTest test case failure #315

Closed
ffoulkes opened this issue Nov 8, 2024 · 0 comments · Fixed by #318
Closed

ReadSingleIndirectMeterEntryTest test case failure #315

ffoulkes opened this issue Nov 8, 2024 · 0 comments · Fixed by #318
Labels
bug Something isn't working

Comments

@ffoulkes
Copy link
Collaborator

ffoulkes commented Nov 8, 2024

Describe the bug

The ReadSingleIndirectMeterEntryTest test case in TdiTableManagerTest is failing.

[ RUN      ] TdiTableManagerTest.DISABLED_ReadSingleIndirectMeterEntryTest
E20241106 06:19:52.409034 42629 p4_info_manager.cc:222] StratumErrorSpace::ERR_INVALID_P4_INFO: P4Info ID UNSPECIFIED/0x2b67 (0x2b67) is not found
E20241106 06:19:52.409073 42629 tdi_table_manager.cc:972] Return Error: p4_info_manager_->FindResourceTypeByID(table_id) at stratum/hal/lib/tdi/tdi_table_manager.cc:972
stratum/hal/lib/tdi/tdi_table_manager_test.cc:458: Failure
Value of: tdi_table_manager_->ReadMeterEntry(session_mock, entry, &writer_mock)
Expected: is OK
  Actual: StratumErrorSpace::ERR_INVALID_P4_INFO: P4Info ID UNSPECIFIED/0x2b67 (0x2b67) is not found (of type util::Status)
stratum/hal/lib/tdi/tdi_table_manager_test.cc:446: Failure
Actual function call count doesn't match EXPECT_CALL(writer_mock, Write(EqualsProto(resp)))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
stratum/hal/lib/tdi/tdi_table_manager_test.cc:421: Failure
Actual function call count doesn't match EXPECT_CALL(*tdi_sde_wrapper_mock_, ReadIndirectMeters(kDevice1, _, kTdiRtTableId, Optional(kMeterIndex), _, _, _, _, _, _))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
[  FAILED  ] TdiTableManagerTest.DISABLED_ReadSingleIndirectMeterEntryTest (0 ms)

To Reproduce

bazel test //stratum/hal/lib/tdi:tdi_table_manager_test --test_arg=--gtest_also_run_disabled_tests

Expected behavior

The test case is expected to pass.

Additional context

May be related to the failure in WriteIndirectMeterEntryTest. See issue #306.

@ffoulkes ffoulkes added the bug Something isn't working label Nov 8, 2024
@ffoulkes ffoulkes linked a pull request Nov 8, 2024 that will close this issue
@ffoulkes ffoulkes linked a pull request Nov 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant