feat(clients): data: BigQuery, Storage media and signed URLs, Pub/Sub, Firestore, Spanner, Bigtable admin, Secret Manager, Dataplex, DLP, KMS, Datastore
Discovery generated call table (918 rows), typed services, /google/data demo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Route: GET /google/data (page, no credential needed)
|
||||
#include "support/GoogleRig.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1);
|
||||
GoogleRig rig(false);
|
||||
Fixture f(rig.client);
|
||||
auto res = f.client->get("/google/data");
|
||||
check(res.status == 200, "status 200");
|
||||
check(contains(res.headers.get("Content-Type"), "text/html"), "html");
|
||||
check(contains(res.body, "Google data") && contains(res.body, "viewport"), "page and mobile viewport");
|
||||
check(contains(res.body, "/embedded/google_data.js"), "script wired");
|
||||
check(contains(res.body, "<select id=\"gd-service\">"), "services are a dropdown, not a button group");
|
||||
check(f.client->post("/google/data", "{}", "application/json").status == 405, "post is 405");
|
||||
check(f.client->get("/embedded/google_data.js").status == 200, "script is served");
|
||||
check(rig.mock->send_count() == 0, "no network");
|
||||
return finish("google/data");
|
||||
}
|
||||
Reference in New Issue
Block a user