fix(clients): express endpoints are key-only; has_oauth covers service accounts; make google-live
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ GOOGLE_OBJS := $(patsubst $(ROOT)/%.cpp,$(GOOGLE_OBJDIR)/%.o,$(GOOGLE_SRCS))
|
||||
# layout corrupts the heap).
|
||||
-include $(GOOGLE_OBJS:.o=.d)
|
||||
|
||||
.PHONY: google google-test google-clean google-token
|
||||
.PHONY: google google-test google-clean google-token google-live
|
||||
|
||||
# Dev tool: prints a service-account access token (see tools/google_sa_token.cpp).
|
||||
google-token: build/google/sa-token
|
||||
@@ -54,5 +54,11 @@ $(GOOGLE_TEST_BIN): $(GOOGLE_OBJS) $(GOOGLE_TEST_SRCS) $(CLIENTS_LIB) $(OPERABIL
|
||||
@mkdir -p $(dir $@)
|
||||
$(CXX) $(GOOGLE_CXXFLAGS) $(GOOGLE_INCS) $(GOOGLE_OBJS) $(GOOGLE_TEST_SRCS) $(ROOT)/tests/src/clients/main.cpp $(CLIENTS_LIB) $(OPERABILITY_LIB) -lwolfssl -o $@
|
||||
|
||||
# Opt-in live checks against real Google (read-only, a few tokens). Mints a
|
||||
# service-account access token for the OAuth-only APIs; needs
|
||||
# GOOGLE_APPLICATION_CREDENTIALS and GOOGLE_CLOUD_PROJECT configured.
|
||||
google-live: $(GOOGLE_TEST_BIN) build/google/sa-token
|
||||
GOOGLE_ACCESS_TOKEN=`build/google/sa-token` MOLO_LIVE_NET=1 $(GOOGLE_TEST_BIN)
|
||||
|
||||
google-clean:
|
||||
rm -rf $(GOOGLE_BUILD) $(GOOGLE_TEST_BIN)
|
||||
|
||||
Reference in New Issue
Block a user