test_congress
Tests for congress module.
-
class congress.tests.test_congress.APILocalRouting(*args, **kwargs)
Bases: congress.tests.test_congress.BaseTestPolicyCongress
-
setUp()
-
test_internode_pe_routing()
test reach internode PE when intranode PE not available
-
test_intranode_pe_routing()
-
test_non_PE_service_reachable()
-
class congress.tests.test_congress.BaseTestPolicyCongress(*args, **kwargs)
Bases: congress.tests.base.SqlTestCase
-
setUp()
-
class congress.tests.test_congress.TestCongress(*args, **kwargs)
Bases: congress.tests.test_congress.BaseTestPolicyCongress
-
create_fake_datasource(name)
-
create_policy(name)
-
insert_rule(rule, policy)
-
query(tablename, policyname)
-
setUp()
Setup tests that use multiple mock neutron instances.
-
setup_config()
-
test_datasource_poll()
-
test_datasource_request_refresh()
-
test_policy()
-
test_policy_datasource()
-
test_rule_insert_delete()
-
test_startup()
-
class congress.tests.test_congress.TestPolicyExecute(*args, **kwargs)
Bases: congress.tests.test_congress.BaseTestPolicyCongress
-
setUp()
-
test_neutron_policy_execute()
-
test_neutron_policy_poll_and_subscriptions()
Test polling and publishing of neutron updates.
-
test_policy_execute()
-
test_policy_execute_data_first()
-
test_policy_execute_dotted()
-
test_policy_execute_no_args()