Refactor all references to computer to Superbrain
release gate / check (push) Failing after 6m55s

This commit is contained in:
Andrew S Erwin
2026-10-22 00:33:44 -05:00
parent 45aa3c80aa
commit d870eece1e
84 changed files with 438 additions and 381 deletions
+6 -6
View File
@@ -17,8 +17,8 @@ func collectionBookmark(t *testing.T, c apiClient, url string) string {
func TestCollectionsLifecycle(t *testing.T) {
srv := testServer(t)
alice := newAPIUser(t, srv, "coll-life@computer.test")
bob := newAPIUser(t, srv, "coll-other@computer.test")
alice := newAPIUser(t, srv, "coll-life@superbrain.test")
bob := newAPIUser(t, srv, "coll-other@superbrain.test")
bm1 := collectionBookmark(t, alice, "https://127.0.0.1/one")
@@ -149,7 +149,7 @@ func TestCollectionsLifecycle(t *testing.T) {
func TestCollectionViewsFilterSortPaginate(t *testing.T) {
srv := testServer(t)
alice := newAPIUser(t, srv, "coll-views@computer.test")
alice := newAPIUser(t, srv, "coll-views@superbrain.test")
col := alice.request("POST", "/api/collections", map[string]any{"name": "Pipeline"}, 201)
cid := col["id"].(string)
@@ -278,9 +278,9 @@ func TestCollectionViewsFilterSortPaginate(t *testing.T) {
func TestCollectionRevocationReachesItems(t *testing.T) {
srv := testServer(t)
alice := newAPIUser(t, srv, "coll-rev@computer.test")
alice := newAPIUser(t, srv, "coll-rev@superbrain.test")
aliceID := alice.request("GET", "/api/me", nil, 200)["user"].(map[string]any)["id"].(string)
bob := newAPIUser(t, srv, "coll-rev-owner@computer.test")
bob := newAPIUser(t, srv, "coll-rev-owner@superbrain.test")
// Bob owns a bookmark and shares it with Alice; Alice puts it in HER
// collection. Revocation must make the item vanish from every surface
@@ -338,7 +338,7 @@ func TestCollectionRevocationReachesItems(t *testing.T) {
// based on the pre-reorder / pre-deletion state get 409s.
func TestCollectionIndirectMutationsAdvanceVersions(t *testing.T) {
srv := testServer(t)
alice := newAPIUser(t, srv, "coll-rev@computer.test")
alice := newAPIUser(t, srv, "coll-rev@superbrain.test")
bm1 := collectionBookmark(t, alice, "https://127.0.0.1/r1")
bm2 := collectionBookmark(t, alice, "https://127.0.0.1/r2")
col := alice.request("POST", "/api/collections", map[string]any{"name": "Revisions"}, 201)