Skip to content

Commit

Permalink
minor fixes (passed value and removal ordering) in testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Legrand authored and vincent-xs committed Mar 20, 2023
1 parent 40b7797 commit c496896
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/test-cases/functional/ptf/saidasheni.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def createDirectionLookupTest(self):
"""
Verifies Direction Lookup creation
"""
self.dir_lookup = self.direction_lookup_create(vni=self.outbound_vnet)
self.dir_lookup = self.direction_lookup_create(vni=self.vm_vni)

def createEniTest(self):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ def test_vnet_outbound_routing_entry_get2(self, dpu):
assert all( [result == 0 for result in results]), "SAI_OUTBOUND_ROUTING_ENTRY_ACTION_ROUTE_VNET Get error"

def test_vnet_outbound_routing_entry_remove(self, dpu):
commands = [
{
"name": "ore",
"op": "remove",
"type": "SAI_OBJECT_TYPE_OUTBOUND_ROUTING_ENTRY",
},
]
results = [*dpu.process_commands(commands)]
print("\n======= SAI commands RETURN values create =======")
pprint(results)

assert all( [result == 0 for result in results]), "SAI_OBJECT_TYPE_OUTBOUND_ROUTING_ENTRY Remove error"

# Remove ENI
commands = [
Expand Down Expand Up @@ -212,15 +224,3 @@ def test_vnet_outbound_routing_entry_remove(self, dpu):

assert all( [result == 0 for result in results]), "SAI_OBJECT_TYPE_VNET Remove error"

commands = [
{
"name": "ore",
"op": "remove",
"type": "SAI_OBJECT_TYPE_OUTBOUND_ROUTING_ENTRY",
},
]
results = [*dpu.process_commands(commands)]
print("\n======= SAI commands RETURN values create =======")
pprint(results)

assert all( [result == 0 for result in results]), "SAI_OBJECT_TYPE_OUTBOUND_ROUTING_ENTRY Remove error"

0 comments on commit c496896

Please sign in to comment.