@@ -118,6 +118,36 @@ Live testing found and fixed several integration issues:
118118- The OAuth broker project must have both Google Docs API and Google Drive API
119119 enabled.
120120
121+ ## Live E2E
122+
123+ ` tests/live_google_docs_vfs_roundtrip.sh ` exercises the live Google Docs API,
124+ CLI mount/pull/diff/push paths, ` localityd ` , and the Linux FUSE projection. It
125+ uses isolated Locality state and a temporary shared root, creates one generated
126+ Google Docs page through the mounted filesystem, verifies the create marker
127+ survives a pull after push, edits the created document through mounted
128+ ` page.md ` , verifies the edit marker survives another pull, and trashes the
129+ created Drive file during cleanup.
130+
131+ Set the required environment from a stored ` connection:google-docs-live `
132+ credential and choose a scratch workspace folder:
133+
134+ ``` bash
135+ secret_ref=' connection:google-docs-live'
136+ secret_hex=" $( printf ' %s' " $secret_ref " | od -An -tx1 -v | tr -d ' \n' ) "
137+ export LOCALITY_GOOGLE_DOCS_LIVE_CREDENTIAL_JSON=" $( cat " $HOME /.loc/credentials/$secret_hex " ) "
138+ export LOCALITY_GOOGLE_DOCS_LIVE_WORKSPACE_FOLDER=' Locality Live E2E'
139+ ```
140+
141+ Use the full stored credential JSON. The live harness requires
142+ ` access_token ` , ` oauth_broker_url ` , ` refresh_token_handle ` , and numeric
143+ ` expires_at ` so it can exercise broker refresh when the token expires.
144+
145+ Run the gated test explicitly:
146+
147+ ``` bash
148+ LOCALITY_LIVE_GOOGLE_DOCS_VFS=1 tests/live_google_docs_vfs_roundtrip.sh
149+ ```
150+
121151## Useful Commands
122152
123153Connect with the local broker:
0 commit comments