Import apache2 for testing
Create `971-Robot-Code/ldap.json`. It is a JSON file with the LDAP URL
and password.
{
"ldap_bind_dn": "...",
"ldap_url": "...",
"ldap_password": "..."
}
Run like this:
$ bazel run //build_tests:apache_https_demo
Then you can navigate to `https://localhost:7000`.
If the ports are taken, customize with:
* `--https_port`
* `--wrapped_port`
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I56432388b774932fc6cf295da52ac8bc9e974cd7
diff --git a/build_tests/BUILD b/build_tests/BUILD
index c74407e..ca34de2 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -1,6 +1,7 @@
load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library")
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_py_library")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+load("//tools/build_rules:apache.bzl", "apache_wrapper")
cc_test(
name = "gflags_build_test",
@@ -113,3 +114,15 @@
visibility = ["//visibility:private"],
deps = ["//build_tests/go_greeter"],
)
+
+py_binary(
+ name = "dummy_http_server",
+ srcs = ["dummy_http_server.py"],
+ target_compatible_with = ["@platforms//cpu:x86_64"],
+)
+
+apache_wrapper(
+ name = "apache_https_demo",
+ binary = ":dummy_http_server",
+ target_compatible_with = ["@platforms//cpu:x86_64"],
+)