WIFI-13443: Add: Schema Validation (#913)

* Added Schema Validation.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Added schema_validation/base.txt

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modified static commit-id in base.txt and sub-suites in schema_validation.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Updated base.text commit-id to check scenario of no new firmware found.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Add: Schema Validation through AP Terminal (State Messages)

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modified: Schema Validation using AP State Messages.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Add/Modify: Marker and Description to Schema Validation test plan.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify: Allure reporting for Schema Validation through AP Terminal testcase.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify Schema Validation reporting.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify: Fail message in allure for schema validation.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Add: --commit-id parameter in CLI and modified schema validation through Github test case.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Remove unused function from schema validation.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify: Allure reporting for schema validation. Fix: bug in schema_validation through github.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify: Schema Validation through GitHub.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modify: Schema Validation Testplan.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Moved SV files from test/ -> basic/

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Added ow_sanity_lf marker to Schema Validation tests.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modified schema validation code to handle cases where 'properties' or 'items' are missing from schema.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modified the Schema Validation through Github to bypass wlan-ap repo and directly fetch latest commit from wlan-ucentral-schema repo.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Modified Schema Validation through github to not report properties key missing when patternProperties or  key present.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Increased time before fetching state message and added additional checks.

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

---------

Co-authored-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
YashSaxenaCT
2024-06-06 13:58:03 +05:30
committed by GitHub
parent 628bc2bb0b
commit df016b29c1
6 changed files with 1263 additions and 0 deletions

View File

@@ -141,6 +141,11 @@ def pytest_addoption(parser):
default=False,
help="Select the port for AP Up Down tests"
)
parser.addoption(
"--commit-id",
default=None,
help="Used to pass the full SHA of a commit-id."
)
@pytest.fixture(scope="session")
@@ -176,6 +181,13 @@ def selected_port(request):
yield current_port
@pytest.fixture(scope="session")
def commit_id(request):
"""yields the commit-id option selection"""
commit_id = request.config.getoption("--commit-id")
yield commit_id
@pytest.fixture(scope="session")
def num_stations(request):
"""yields the testbed option selection"""