Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
309 changes: 296 additions & 13 deletions tests/functional/config.py

Large diffs are not rendered by default.

77 changes: 0 additions & 77 deletions tests/functional/config_template.json

This file was deleted.

195 changes: 0 additions & 195 deletions tests/functional/conftest.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019 Intel Corporation
# Copyright (c) 2026 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,9 +14,8 @@
# limitations under the License.
#

MODEL_SERVICE = 1
PREDICTION_SERVICE = 2
from tests.functional.utils.marks import MarkMeta

ERROR_SHAPE = 'response has invalid output'

NOT_TO_BE_REPORTED_IF_SKIPPED = "NOT_TO_BE_REPORTED_IF_SKIPPED"
class OvmsComponents(MarkMeta):
OVMS = "ovms"
21 changes: 21 additions & 0 deletions tests/functional/constants/core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2026 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

CONTAINER_STATUS_RUNNING = "running"
CONTAINER_STATUS_EXITED = "exited"
CONTAINER_STATUS_DEAD = "dead"
CONTAINER_STATUS_CREATED = "created"
CONTAINER_STATUS_RESTARTING = "restarting"
44 changes: 44 additions & 0 deletions tests/functional/constants/custom_loader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# Copyright (c) 2026 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import os

from tests.functional.config import ovms_c_repo_path
from tests.functional.constants.ovms_messages import OvmsMessages
from tests.functional.constants.paths import Paths


class CustomLoaderConsts:
SAMPLE_CUSTOM_LOADER_NAME = "SampleCustomLoader"
SAMPLE_CUSTOM_LOADER_LIB_NAME = "libsampleloader.so"
SAMPLE_CUSTOM_LOADER_SRC_DIR = os.path.join(ovms_c_repo_path, "src", "example", SAMPLE_CUSTOM_LOADER_NAME)
SAMPLE_CUSTOM_LOADER_DOCKER_LIB = os.path.join(
Paths.CUSTOM_LOADER_LIBRARIES_PATH_INTERNAL, SAMPLE_CUSTOM_LOADER_NAME, SAMPLE_CUSTOM_LOADER_LIB_NAME
)
SAMPLE_CUSTOM_LOADER_LIB = os.path.join(SAMPLE_CUSTOM_LOADER_SRC_DIR, "lib", SAMPLE_CUSTOM_LOADER_LIB_NAME)
SAMPLE_LOADER_HEADER = os.path.join(ovms_c_repo_path, "src", "customloaderinterface.hpp")
DEFAULT_LOADER_NAME = "sampleloader"

@staticmethod
def get_debug_logs_for_loaded_loader(loader_name):
return [
OvmsMessages.CUSTOM_LOADER_LOOKING_FOR_LOADER.format(loader_name),
OvmsMessages.CUSTOM_LOADER_TO_BE_USED.format(loader_name),
]

@staticmethod
def get_logs_for_loaded_loader(loader_name):
return [OvmsMessages.CUSTOM_LOADER_READING_CONFIGURATION.format(loader_name)]
Loading