two functional test cases are skipped when running using tox

Bug #1718198 reported by Ankaiah
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-sfc
Invalid
Undecided
Louis Fourie

Bug Description

Hi Team,

When i run networking-sfc functional tests two test cases are skipped, Could you please let me know it is expected and if there is any specific reason for skipping the test cases.
I am running on newton based code.

{0} networking_sfc.tests.functional.db.test_models.TestDBCreation.test_head_creation [1.432333s] ... ok
{0} networking_sfc.tests.functional.services.sfc.agent.extensions.test_ovs_agent_sfc_extension.TestOVSAgentSfcExtension.test_run(vsctl) ... SKIPPED: Testing with sudo is not enabled
{0} networking_sfc.tests.functional.services.sfc.agent.extensions.test_ovs_agent_sfc_extension.TestOVSAgentSfcExtension.test_run(native) ... SKIPPED: Testing with sudo is not enabled
Could not load networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin
Could not load networking_sfc.services.sfc.plugin.SfcPlugin
{1} networking_sfc.tests.functional.test_service.TestService.test_start [8.083597s] ... ok
Slowest Tests
Test id Runtime (s)
------------------------------------------------------------------------------------------------------------------------------------ -----------
networking_sfc.tests.functional.test_service.TestService.test_start 8.084
networking_sfc.tests.functional.db.test_models.TestDBCreation.test_head_creation 1.432
networking_sfc.tests.functional.services.sfc.agent.extensions.test_ovs_agent_sfc_extension.TestOVSAgentSfcExtension.test_run(native) 0.103
networking_sfc.tests.functional.services.sfc.agent.extensions.test_ovs_agent_sfc_extension.TestOVSAgentSfcExtension.test_run(vsctl) 0.101

======
Totals
======
Run: 4 in 9.719352 sec.
 - Passed: 2
 - Skipped: 2
 - Failed: 0

==============
Worker Balance
==============
 - Worker 0 (3 tests) => 0:00:01.636940s
 - Worker 1 (1 tests) => 0:00:08.083597s
_____________________________________________ summary _____________________________________________
  functional: commands succeeded
  congratulations :)

Thanks,
Anki

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Yes this is normal:
SKIPPED: Testing with sudo is not enabled

To run these tests, you need to set OS_SUDO_TESTING=1 (and be allowed to sudo of course)

In the tox targets, you can run the dsvm-* variants that have this set

Louis Fourie (lfourie)
Changed in networking-sfc:
status: New → Invalid
assignee: nobody → Louis Fourie (lfourie)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.