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

Add BcmSwitch test commit and save pipe #1040

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
126abba
fix test write table entry and add modify and delete table entry test
Dscano Jun 4, 2022
ac4fc17
fix test write table entry and add modify and delete table entry test
Dscano Jun 4, 2022
13f5178
fix test write table entry and add modify and delete table entry test
Dscano Jun 4, 2022
2610da8
fix test write table entry and add modify and delete table entry test
Dscano Jun 4, 2022
643ecea
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
d034504
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
fe6a4e0
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
2938585
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
7b82b7c
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
bcf5342
move the table entry constant into BfrtManagerTest Class
Dscano Jun 7, 2022
c1c448d
Merge branch 'stratum:main' into main
Dscano Jun 9, 2022
60e6f56
Write table various reject cases
Dscano Jun 11, 2022
84f4792
Write table various reject cases
Dscano Jun 11, 2022
d267a8f
Write table various reject cases
Dscano Jun 11, 2022
b1cef10
Write table various reject cases
Dscano Jun 15, 2022
9c18ad9
Merge branch 'main' into main
Dscano Jun 16, 2022
85464d1
Update bfrt_table_manager_test.cc
Dscano Jun 16, 2022
5945379
Update bfrt_table_manager_test.cc
Dscano Jun 16, 2022
4f355da
Update bfrt_table_manager_test.cc
Dscano Jun 16, 2022
9411b23
Style fixed
Dscano Jun 16, 2022
96c49ee
check fixed
Dscano Jun 16, 2022
0a67843
Proto format fixed
Dscano Jun 20, 2022
510c631
Update bfrt_table_manager_test.cc
Dscano Jun 20, 2022
307e991
Update bfrt_table_manager_test.cc
Dscano Jun 20, 2022
217687c
Merge branch 'main' into main
pudelkoM Jun 28, 2022
1226d09
Test Register, Action Profile Member
Dscano Jun 28, 2022
0638cbd
Merge branch 'main' of github.com:Dscano/stratum into main
Dscano Jun 28, 2022
333ae08
Test Register, Action Profile Member, Meters
Dscano Jun 28, 2022
50e3c40
Test Register, Action Profile Member, Meters fixed test format
Dscano Jun 28, 2022
5d640db
Merge branch 'stratum:main' into main
Dscano Jun 29, 2022
386a00a
Test Default Table, Register, Action Profile Member, Meters
Dscano Jun 29, 2022
ceea3b4
Test Default Table, Register, Action Profile Member, Meters
Dscano Jun 29, 2022
1a0f3a3
Test Default Table, Register, Action Profile Member, Meters
Dscano Jun 29, 2022
8b1a630
Test Default Table, Register, Action Profile Member, Meters
Dscano Jun 29, 2022
b436301
Merge branch 'main' into main
Dscano Jun 30, 2022
28b4cc4
Remove duplicate test
pudelkoM Jun 30, 2022
dc4a894
fixing test
Dscano Jun 30, 2022
23e5423
Merge branch 'main' of github.com:Dscano/stratum into main
Dscano Jun 30, 2022
5789552
fixing test code
Dscano Jun 30, 2022
929ff68
Update bfrt_table_manager_test.cc
Dscano Jun 30, 2022
6cad0a1
Update openconfig-goog-bcm.proto
Dscano Jun 30, 2022
a7fb151
fixing test code
Dscano Jun 30, 2022
a31433d
commite bfrt_table_manager_test_old
Dscano Jul 2, 2022
343e05b
fixing neetd to update
Dscano Jul 2, 2022
4ba56d6
Merge branch 'stratum:main' into main
Dscano Jul 2, 2022
b7014f3
Merge branch 'main' of github.com:Dscano/stratum into main
Dscano Jul 2, 2022
24027f4
fixing neetd to update
Dscano Jul 2, 2022
90bd881
fixing neetd to update
Dscano Jul 2, 2022
82b6167
Merge branch 'stratum:main' into main
Dscano Jul 16, 2022
fb6b587
table manager test old
Dscano Jul 16, 2022
b0e19ba
add test reject write direct counter entry type insert
Dscano Jul 16, 2022
17b29d7
add test reject write direct counter entry type insert
Dscano Jul 16, 2022
2b3f182
Merge branch 'stratum:main' into main
Dscano Jul 21, 2022
42b63eb
Merge branch 'stratum:main' into main
Dscano Jul 27, 2022
92ecdae
Merge branch 'stratum:main' into main
Dscano Jul 31, 2022
34c8121
Merge branch 'stratum:main' into main
Dscano Aug 3, 2022
be9dcf2
Merge branch 'stratum:main' into main
Dscano Aug 5, 2022
3f20ea7
Merge branch 'stratum:main' into main
Dscano Aug 15, 2022
b7c3a99
Add BcmSwitch tests commit and save fwd pipe
Dscano Aug 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions stratum/hal/lib/bcm/bcm_switch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,28 @@ TEST_F(BcmSwitchTest, PushChassisConfigFailureWhenNodePushFails) {
DerivedFromStatus(DefaultError()));
}

TEST_F(BcmSwitchTest, SaveForwardingPipelineConfig) {
const ::p4::v1::ForwardingPipelineConfig config;
::util::Status status =
bcm_switch_->SaveForwardingPipelineConfig(kNodeId, config);
ASSERT_FALSE(status.ok());
EXPECT_EQ(ERR_UNIMPLEMENTED, status.error_code());
EXPECT_THAT(
status.error_message(),
HasSubstr(
"SaveForwardingPipelineConfig not implemented for this target"));
}

TEST_F(BcmSwitchTest, CommitForwardingPipelineConfig) {
::util::Status status = bcm_switch_->CommitForwardingPipelineConfig(kNodeId);
ASSERT_FALSE(status.ok());
EXPECT_EQ(ERR_UNIMPLEMENTED, status.error_code());
EXPECT_THAT(
status.error_message(),
HasSubstr(
"CommitForwardingPipelineConfig not implemented for this target"));
}

TEST_F(BcmSwitchTest, VerifyChassisConfigSuccess) {
ChassisConfig config;
config.add_nodes()->set_id(kNodeId);
Expand Down