blob: 01c4d4791be8185b63b437fe9a8483920feb4d3f [file]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
from minifi_test_framework.containers.docker_image_builder import DockerImageBuilder
from minifi_test_framework.core.hooks import common_before_scenario
from minifi_test_framework.core.hooks import common_after_scenario
def before_all(context):
dockerfile = """
FROM python:3.13-slim-bookworm
RUN pip install couchbase==4.3.5 requests"""
builder = DockerImageBuilder(
image_tag="minifi-couchbase-helper:latest",
dockerfile_content=dockerfile
)
builder.build()
def before_scenario(context, scenario):
common_before_scenario(context, scenario)
def after_scenario(context, scenario):
common_after_scenario(context, scenario)