|
| 1 | +# |
| 2 | +# Copyright (C) 2022 Vaticle |
| 3 | +# |
| 4 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 5 | +# or more contributor license agreements. See the NOTICE file |
| 6 | +# distributed with this work for additional information |
| 7 | +# regarding copyright ownership. The ASF licenses this file |
| 8 | +# to you under the Apache License, Version 2.0 (the |
| 9 | +# "License"); you may not use this file except in compliance |
| 10 | +# with the License. You may obtain a copy of the License at |
| 11 | +# |
| 12 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +# |
| 14 | +# Unless required by applicable law or agreed to in writing, |
| 15 | +# software distributed under the License is distributed on an |
| 16 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 | +# KIND, either express or implied. See the License for the |
| 18 | +# specific language governing permissions and limitations |
| 19 | +# under the License. |
| 20 | +# |
| 21 | + |
| 22 | +package(default_visibility = ["//tests/behaviour:__subpackages__"]) |
| 23 | +load("//tools:behave_rule.bzl", "typedb_behaviour_py_test") |
| 24 | +load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") |
| 25 | + |
| 26 | +py_library( |
| 27 | + name = "steps", |
| 28 | + srcs = ["json_steps.py"], |
| 29 | + deps = [], |
| 30 | +) |
| 31 | + |
| 32 | +typedb_behaviour_py_test( |
| 33 | + name = "test", |
| 34 | + feats = ["@vaticle_typedb_behaviour//concept/serialization:json.feature"], |
| 35 | + background_core = ["//tests/behaviour/background:core"], |
| 36 | + background_cluster = ["//tests/behaviour/background:cluster"], |
| 37 | + steps = [ |
| 38 | + ":steps", |
| 39 | + "//tests/behaviour/typeql:steps", |
| 40 | + "//tests/behaviour/connection:steps", |
| 41 | + "//tests/behaviour/connection/database:steps", |
| 42 | + "//tests/behaviour/connection/session:steps", |
| 43 | + "//tests/behaviour/connection/transaction:steps", |
| 44 | + ], |
| 45 | + deps = [ |
| 46 | + "//:client_python", |
| 47 | + "//tests/behaviour:context", |
| 48 | + "//tests/behaviour/util:util", |
| 49 | + "//tests/behaviour/config:parameters", |
| 50 | + "//tests/behaviour/background", |
| 51 | + ], |
| 52 | + native_typedb_artifact = "//tests:native-typedb-artifact", |
| 53 | + native_typedb_cluster_artifact = "//tests:native-typedb-cluster-artifact", |
| 54 | + size = "medium", |
| 55 | +) |
| 56 | + |
| 57 | +checkstyle_test( |
| 58 | + name = "checkstyle", |
| 59 | + include = glob(["*"]), |
| 60 | + license_type = "apache-header", |
| 61 | + size = "small", |
| 62 | +) |
0 commit comments