Skip to content

Commit

Permalink
Move tam api to separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 23, 2021
1 parent 9d1032b commit a3bc56e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 7 additions & 4 deletions unittest/lib/test_sai_redis_tam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ TEST(libsairedis, tam)

sai_object_id_t id;

sai_object_list_t list;

EXPECT_EQ(SAI_STATUS_NOT_IMPLEMENTED, sai_tam_telemetry_get_data(0,list,0,0,0));

EXPECT_NE(SAI_STATUS_SUCCESS, api->create_tam(&id,0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_tam(0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->set_tam_attribute(0,0));
Expand Down Expand Up @@ -75,3 +71,10 @@ TEST(libsairedis, tam)
EXPECT_NE(SAI_STATUS_SUCCESS, api->set_tam_event_attribute(0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_tam_event_attribute(0,0,0));
}

TEST(libsairedis, sai_tam_telemetry_get_data)
{
sai_object_list_t list;

EXPECT_EQ(SAI_STATUS_NOT_IMPLEMENTED, sai_tam_telemetry_get_data(0,list,0,0,0));
}
5 changes: 5 additions & 0 deletions unittest/vslib/test_sai_vs_tam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ TEST(libsaivs, tam)
EXPECT_NE(SAI_STATUS_SUCCESS, api->set_tam_event_attribute(0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_tam_event_attribute(0,0,0));
}

TEST(libsairedis, sai_tam_telemetry_get_data)
{
EXPECT_EQ(SAI_STATUS_NOT_IMPLEMENTED, sai_tam_telemetry_get_data(0,list,0,0,0));
}

0 comments on commit a3bc56e

Please sign in to comment.