Skip to content
Snippets Groups Projects
Commit 76c9b5b2 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

add unit test for product validation workflow

parent 0c060540
No related branches found
No related tags found
1 merge request!139Feature/add validation workflows
......@@ -7,8 +7,8 @@ from orchestrator.utils.json import json_dumps
from orchestrator.workflow import StepList, done, init, step, workflow
from orchestrator.workflows.steps import resync, store_process_subscription, unsync
from orchestrator.workflows.utils import wrap_modify_initial_input_form
from products import Router
from gso.products.product_types.router import Router
from gso.services.provisioning_proxy import execute_playbook, pp_interaction
from gso.workflows.router.create_router import verify_ipam_loopback
......
import pytest
from test.workflows import assert_complete, extract_state, run_workflow
@pytest.mark.workflow()
def test_task_validate_products(responses, faker):
result, _, _ = run_workflow("task_validate_products", [{}])
assert_complete(result)
state = extract_state(result)
assert state["check_all_workflows_are_in_db"]
assert state["check_workflows_for_matching_targets_and_descriptions"]
assert state["check_that_products_have_at_least_one_workflow"]
assert state["check_db_fixed_input_config"]
assert state["check_that_products_have_create_modify_and_terminate_workflows"]
assert state["check_subscription_models"]
......@@ -9,6 +9,7 @@ filterwarnings = "ignore,default:::gso"
passenv = DATABASE_URI_TEST,SKIP_ALL_TESTS,ENVIRONMENT_IGNORE_MUTATION_DISABLED
setenv =
OAUTH2_ACTIVE = False
TRANSLATIONS_DIR = ./gso/translations
deps =
coverage
-r requirements.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment