Skip to content

Commit

Permalink
WIP - Update test CIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Oct 2, 2024
1 parent ddc7a87 commit 28dd949
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion tests/integration/mutation/create/with_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestMutationCreate_ReturnsVersionCID(t *testing.T) {
{
"_version": []map[string]any{
{
"cid": "bafyreia5ph2hvwebdsxe7m2f6bwuq7ngwxzqp7esiuzjihtcz2jswma6xu",
"cid": "bafyreib7afkd5hepl45wdtwwpai433bhnbd3ps5m2rv3masctda7b6mmxe",
},
},
},
Expand Down
18 changes: 9 additions & 9 deletions tests/integration/query/simple/with_cid_doc_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestQuerySimpleWithCidAndDocID(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreia5ph2hvwebdsxe7m2f6bwuq7ngwxzqp7esiuzjihtcz2jswma6xu",
cid: "bafyreib7afkd5hepl45wdtwwpai433bhnbd3ps5m2rv3masctda7b6mmxe",
docID: "bae-6845cfdf-cb0f-56a3-be3a-b5a67be5fbdc"
) {
name
Expand Down Expand Up @@ -137,7 +137,7 @@ func TestQuerySimpleWithUpdateAndFirstCidAndDocID(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreia5ph2hvwebdsxe7m2f6bwuq7ngwxzqp7esiuzjihtcz2jswma6xu",
cid: "bafyreib7afkd5hepl45wdtwwpai433bhnbd3ps5m2rv3masctda7b6mmxe",
docID: "bae-6845cfdf-cb0f-56a3-be3a-b5a67be5fbdc"
) {
name
Expand Down Expand Up @@ -181,7 +181,7 @@ func TestQuerySimpleWithUpdateAndLastCidAndDocID(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreid2idg2eod3zv7zqxnv7pvrbcmlxiizho3s6xnk6c5zmxemi5gcxu",
cid: "bafyreig2j5zwcozovwzrxr7ivfnptlj7urlabzjbv4lls64hlkh6jmhfim",
docID: "bae-6845cfdf-cb0f-56a3-be3a-b5a67be5fbdc"
) {
name
Expand Down Expand Up @@ -230,7 +230,7 @@ func TestQuerySimpleWithUpdateAndMiddleCidAndDocID(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreid2idg2eod3zv7zqxnv7pvrbcmlxiizho3s6xnk6c5zmxemi5gcxu",
cid: "bafyreig2j5zwcozovwzrxr7ivfnptlj7urlabzjbv4lls64hlkh6jmhfim",
docID: "bae-6845cfdf-cb0f-56a3-be3a-b5a67be5fbdc"
) {
name
Expand Down Expand Up @@ -274,7 +274,7 @@ func TestQuerySimpleWithUpdateAndFirstCidAndDocIDAndSchemaVersion(t *testing.T)
testUtils.Request{
Request: `query {
Users (
cid: "bafyreia5ph2hvwebdsxe7m2f6bwuq7ngwxzqp7esiuzjihtcz2jswma6xu",
cid: "bafyreib7afkd5hepl45wdtwwpai433bhnbd3ps5m2rv3masctda7b6mmxe",
docID: "bae-6845cfdf-cb0f-56a3-be3a-b5a67be5fbdc"
) {
name
Expand Down Expand Up @@ -334,7 +334,7 @@ func TestCidAndDocIDQuery_ContainsPNCounterWithIntKind_NoError(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreib4e2q5uvv6iabkja4s4yoep6b4ifs7rclkteqhwrwr7lkzn56po4",
cid: "bafyreihsqayh6zvmjrvmma3sjmrb4bkeiyy6l56nt6y2t2tm4xajkif3gu",
docID: "bae-d8cb53d4-ac5a-5c55-8306-64df633d400d"
) {
name
Expand Down Expand Up @@ -388,7 +388,7 @@ func TestCidAndDocIDQuery_ContainsPNCounterWithFloatKind_NoError(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreia4qbtcckxhyaplunzj5waoli5btfpwyhsx5fpk7o62xawuqjxjti",
cid: "bafyreigkdjnvkpqfjoqoke3aqc3b6ibb45xjuxx5djpk7c6tart2lw3dcm",
docID: "bae-d420ebcd-023a-5800-ae2e-8ea89442318e"
) {
name
Expand Down Expand Up @@ -437,7 +437,7 @@ func TestCidAndDocIDQuery_ContainsPCounterWithIntKind_NoError(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreibkt7zaipwafro2wajbsqbipma27g6hc2uedquhtjfwyulmwzz4ry",
cid: "bafyreihxjjootrhxhapn563gsoagmtpld6uqhzf5mtn3fmmzp5sawadheu",
docID: "bae-d8cb53d4-ac5a-5c55-8306-64df633d400d"
) {
name
Expand Down Expand Up @@ -486,7 +486,7 @@ func TestCidAndDocIDQuery_ContainsPCounterWithFloatKind_NoError(t *testing.T) {
testUtils.Request{
Request: `query {
Users (
cid: "bafyreihbfsbje6lqmot6xpv2hcseduxu5rv5hf3adsmk7hlkzfuaa6lj5e",
cid: "bafyreihf2nipoyoxu3wjicqj6pftndjnnxljdw6nephkamgwyw5n6lcwca",
docID: "bae-d420ebcd-023a-5800-ae2e-8ea89442318e"
) {
name
Expand Down
30 changes: 15 additions & 15 deletions tests/integration/query/simple/with_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ func TestQuerySimpleWithEmbeddedLatestCommit(t *testing.T) {
"Age": int64(21),
"_version": []map[string]any{
{
"cid": "bafyreiby7drdzfsg4wwo7f6vkdqhurbe74s4lhayn3k3226zvkgwjd2fbu",
"cid": "bafyreidwu4r345cq63vwr7p3hjekedge457y3tp32w7run76uj3le2zx34",
"links": []map[string]any{
{
"cid": "bafyreid4sasigytiflrh3rupyevo6wy43b6mlfi4jwkjjwvohgjcd3oscu",
"cid": "bafyreidqxuofjmcmo6cmoesfcozsixgh7pghbl57mcstlqqausvswutzzm",
"name": "Age",
},
{
"cid": "bafyreieg3p2kpyxwiowskvb3pp35nedzawmapjuib7glrvszcgmv6z37fm",
"cid": "bafyreiercz7wngub3kxluee2mevdtis7la6piunceuol63qv5u32ngm3zu",
"name": "Name",
},
},
Expand Down Expand Up @@ -184,14 +184,14 @@ func TestQuerySimpleWithMultipleAliasedEmbeddedLatestCommit(t *testing.T) {
"Age": int64(21),
"_version": []map[string]any{
{
"cid": "bafyreiby7drdzfsg4wwo7f6vkdqhurbe74s4lhayn3k3226zvkgwjd2fbu",
"cid": "bafyreidwu4r345cq63vwr7p3hjekedge457y3tp32w7run76uj3le2zx34",
"L1": []map[string]any{
{
"cid": "bafyreid4sasigytiflrh3rupyevo6wy43b6mlfi4jwkjjwvohgjcd3oscu",
"cid": "bafyreidqxuofjmcmo6cmoesfcozsixgh7pghbl57mcstlqqausvswutzzm",
"name": "Age",
},
{
"cid": "bafyreieg3p2kpyxwiowskvb3pp35nedzawmapjuib7glrvszcgmv6z37fm",
"cid": "bafyreiercz7wngub3kxluee2mevdtis7la6piunceuol63qv5u32ngm3zu",
"name": "Name",
},
},
Expand Down Expand Up @@ -259,7 +259,7 @@ func TestQuery_WithAllCommitFields_NoError(t *testing.T) {
"_docID": docID,
"_version": []map[string]any{
{
"cid": "bafyreiby7drdzfsg4wwo7f6vkdqhurbe74s4lhayn3k3226zvkgwjd2fbu",
"cid": "bafyreidwu4r345cq63vwr7p3hjekedge457y3tp32w7run76uj3le2zx34",
"collectionID": int64(1),
"delta": nil,
"docID": "bae-d4303725-7db9-53d2-b324-f3ee44020e52",
Expand All @@ -268,11 +268,11 @@ func TestQuery_WithAllCommitFields_NoError(t *testing.T) {
"height": int64(1),
"links": []map[string]any{
{
"cid": "bafyreid4sasigytiflrh3rupyevo6wy43b6mlfi4jwkjjwvohgjcd3oscu",
"cid": "bafyreidqxuofjmcmo6cmoesfcozsixgh7pghbl57mcstlqqausvswutzzm",
"name": "Age",
},
{
"cid": "bafyreieg3p2kpyxwiowskvb3pp35nedzawmapjuib7glrvszcgmv6z37fm",
"cid": "bafyreiercz7wngub3kxluee2mevdtis7la6piunceuol63qv5u32ngm3zu",
"name": "Name",
},
},
Expand Down Expand Up @@ -340,7 +340,7 @@ func TestQuery_WithAllCommitFieldsWithUpdate_NoError(t *testing.T) {
"_docID": docID,
"_version": []map[string]any{
{
"cid": "bafyreigfstknvmsl77pg443lqqf2g64y7hr575tts5c4nxuzk3dynffkem",
"cid": "bafyreichg2fm3tzwibfzakwmzguk5wlmyw7vmyhz6zt6gqu37pnzywk564",
"collectionID": int64(1),
"delta": nil,
"docID": docID,
Expand All @@ -349,18 +349,18 @@ func TestQuery_WithAllCommitFieldsWithUpdate_NoError(t *testing.T) {
"height": int64(2),
"links": []map[string]any{
{
"cid": "bafyreiby7drdzfsg4wwo7f6vkdqhurbe74s4lhayn3k3226zvkgwjd2fbu",
"cid": "bafyreidwu4r345cq63vwr7p3hjekedge457y3tp32w7run76uj3le2zx34",
"name": "_head",
},
{
"cid": "bafyreiapjg22e47sanhjtqgu453mvmxcfcl4ksrcoctyfl6nfsh3xwfcvm",
"cid": "bafyreib7cyhflarpdlelordkmfaqppggvgtxl67tykpzrvsof7e764q5cy",
"name": "Age",
},
},
"schemaVersionId": "bafkreigqmcqzkbg3elpe24vfza4rjle2r6cxu7ihzvg56aov57crhaebry",
},
{
"cid": "bafyreiby7drdzfsg4wwo7f6vkdqhurbe74s4lhayn3k3226zvkgwjd2fbu",
"cid": "bafyreidwu4r345cq63vwr7p3hjekedge457y3tp32w7run76uj3le2zx34",
"collectionID": int64(1),
"delta": nil,
"docID": docID,
Expand All @@ -369,11 +369,11 @@ func TestQuery_WithAllCommitFieldsWithUpdate_NoError(t *testing.T) {
"height": int64(1),
"links": []map[string]any{
{
"cid": "bafyreid4sasigytiflrh3rupyevo6wy43b6mlfi4jwkjjwvohgjcd3oscu",
"cid": "bafyreidqxuofjmcmo6cmoesfcozsixgh7pghbl57mcstlqqausvswutzzm",
"name": "Age",
},
{
"cid": "bafyreieg3p2kpyxwiowskvb3pp35nedzawmapjuib7glrvszcgmv6z37fm",
"cid": "bafyreiercz7wngub3kxluee2mevdtis7la6piunceuol63qv5u32ngm3zu",
"name": "Name",
},
},
Expand Down
16 changes: 8 additions & 8 deletions tests/integration/schema/updates/add/field/create_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ func TestSchemaUpdatesAddFieldWithCreateWithUpdateAfterSchemaUpdateAndVersionJoi
"name": "John",
"email": "[email protected]",
"_version": []map[string]any{
{
// Update commit
"schemaVersionId": updatedSchemaVersionID,
},
{
// Create commit
"schemaVersionId": initialSchemaVersionID,
},
{
// Update commit
"schemaVersionId": updatedSchemaVersionID,
},
},
},
},
Expand Down Expand Up @@ -150,14 +150,14 @@ func TestSchemaUpdatesAddFieldWithCreateWithUpdateAfterSchemaUpdateAndCommitQuer
}`,
Results: map[string]any{
"commits": []map[string]any{
{
// Update commit
"schemaVersionId": updatedSchemaVersionID,
},
{
// Create commit
"schemaVersionId": initialSchemaVersionID,
},
{
// Update commit
"schemaVersionId": updatedSchemaVersionID,
},
},
},
},
Expand Down

0 comments on commit 28dd949

Please sign in to comment.