scouting: Add an endpoint for populating the match schedule
This patch combines the scraping library with the scouting webserver.
There's now also a new end point for the web page (or debug CLI tool)
to ask the server to fetch the match list. The end point is
`/requests/refresh_match_list`.
All the tests are updated. The `cli_test` downloads a 2016 ny_tr match
list that I downloaded from TBA. It should be a decent integration
test as it uses representative data.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I6c540590521b00887eb2ddde2a9369875c659551
diff --git a/scouting/scraping/BUILD b/scouting/scraping/BUILD
index d9248f8..8681ddd 100644
--- a/scouting/scraping/BUILD
+++ b/scouting/scraping/BUILD
@@ -1,5 +1,14 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+filegroup(
+ name = "test_data",
+ srcs = [
+ # Generated with: bazel run //scouting/scraping:scraping_demo -- --json
+ "test_data/2016_nytr.json",
+ ],
+ visibility = ["//visibility:public"],
+)
+
go_library(
name = "scraping",
srcs = [