Skip to content

Commit 5b44ea4

Browse files
Revert "Add test to check meta in operation level"
This reverts commit 5ee4d79.
1 parent 5ee4d79 commit 5b44ea4

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

run-docker-postgres.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Requires -Version 7.0
12

23
# This script starts a PostgreSQL database in a docker container, which is required for running tests locally.
34
# When the -UI switch is passed, pgAdmin (a web-based PostgreSQL management tool) is started in a second container, which lets you query the database.

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public async Task Accepts_meta_in_atomic_remove_resource_operation()
106106
var store = _testContext.Factory.Services.GetRequiredService<RequestDocumentStore>();
107107

108108
Dictionary<string, object?> documentMeta = _fakers.DocumentMeta.GenerateOne();
109-
Dictionary<string, object?> operationMeta = _fakers.ResourceMeta.GenerateOne();
110109

111110
SupportTicket existingTicket = _fakers.SupportTicket.GenerateOne();
112111

@@ -127,8 +126,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
127126
{
128127
type = "supportTickets",
129128
id = existingTicket.StringId
130-
},
131-
meta = operationMeta
129+
}
132130
}
133131
},
134132
meta = documentMeta
@@ -147,13 +145,6 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
147145
store.Document.Should().NotBeNull();
148146

149147
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
150-
151-
store.Document.Operations.Should().HaveCount(1);
152-
153-
AtomicOperationObject? operation = store.Document.Operations[0];
154-
operation.Should().NotBeNull();
155-
156-
operation.Meta.Should().BeEquivalentToJson(operationMeta);
157148
}
158149

159150
[Fact]

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
178178
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
179179

180180
store.Document.Data.SingleValue.Should().NotBeNull();
181-
182181
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(resourceMeta);
183182

184183
store.Document.Data.SingleValue.Relationships.Should().NotBeNull();
@@ -504,7 +503,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
504503
type = "supportTickets",
505504
id = existingTicket2.StringId,
506505
meta = identifierMeta2
507-
}
506+
},
508507
},
509508
meta = documentMeta
510509
};

0 commit comments

Comments
 (0)