Skip to content

Update Service.Tests snapshots to use Unauthenticated provider

684a9c6
Select commit
Loading
Failed to load commit list.
Open

Introduce new authentication provider Unauthenticated as the default #3075

Update Service.Tests snapshots to use Unauthenticated provider
684a9c6
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PG_SQL Integration Tests failed Mar 8, 2026 in 8m 11s

Build #20260308.2 had test failures

Details

Tests

  • Failed: 36 (4.43%)
  • Passed: 671 (82.64%)
  • Other: 105 (12.93%)
  • Total: 812

Annotations

Check failure on line 1985 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Build log #L1985

Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1

Check failure on line 1991 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Build log #L1991

Dotnet command failed with non-zero exit code on the following projects : [
  '/home/vsts/work/1/s/src/Service.Tests/Azure.DataApiBuilder.Service.Tests.csproj'
]

Check failure on line 1 in Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.PostgresGraphQLQueryPolicyTests.QueryMany_Policy_Nullable

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.PostgresGraphQLQueryPolicyTests.QueryMany_Policy_Nullable

Assert.IsTrue failed. 
Expected:<[
  {
    "region": "southwest",
    "speciesid": 2
  }
]>
Actual:<[
  {
    "speciesid": 1,
    "region": "northeast"
  },
  {
    "speciesid": 2,
    "region": "southwest"
  },
  {
    "speciesid": 3,
    "region": "northeast"
  }
]>
Raw output
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.PerformTestEqualJsonStrings(String expected, String actual) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 180
   at Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.GraphQLQueryDatabasePolicyTestBase.QueryMany_Policy_Nullable(String dbQuery) in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/GraphQLQueryDatabasePolicyTestBase.cs:line 165
   at Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.PostgresGraphQLQueryPolicyTests.QueryMany_Policy_Nullable() in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/PostgresGraphQLQueryPolicyTests.cs:line 110

Check failure on line 1 in Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithOr

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithOr

Test method Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithOr threw exception: 
System.InvalidOperationException: The requested operation requires an element of type 'Object', but the target element has type 'Array'.
Raw output
    at System.Text.Json.ThrowHelper.ThrowJsonElementWrongTypeException(JsonTokenType expectedType, JsonTokenType actualType)
   at System.Text.Json.JsonDocument.TryGetNamedPropertyValue(Int32 index, ReadOnlySpan`1 propertyName, JsonElement& value)
   at System.Text.Json.JsonElement.GetProperty(String propertyName)
   at Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.GraphQLFilterTestBase.ExecuteGraphQLRequestAsync(String graphQLQuery, String graphQLQueryName, Boolean isAuthenticated, Dictionary`2 variables, String clientRoleHeader, Boolean expectsError) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/GraphQLFilterTests/GraphQLFilterTestBase.cs:line 1247
   at Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.GraphQLFilterTestBase.TestNestedFilterWithOr(String existsPredicate, String roleName, Boolean expectsError, String errorMsgFragment) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/GraphQLFilterTests/GraphQLFilterTestBase.cs:line 1131
   at Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithOr() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/GraphQLFilterTests/PostgreSqlGQLFilterTests.cs:line 160

Check failure on line 1 in Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PostgreSqlPutApiTests.PutOne_Update_WithExcludeFields_Test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PostgreSqlPutApiTests.PutOne_Update_WithExcludeFields_Test

Assert.IsTrue failed. 
Expected:<{
  "value": [
    {
      "id": 7,
      "title": "The Hobbit Returns to The Shire"
    }
  ]
}>
Actual:<{
  "value": [
    {
      "id": 7,
      "title": "The Hobbit Returns to The Shire",
      "publisher_id": 1234
    }
  ]
}>
Raw output
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.PerformTestEqualJsonStrings(String expected, String actual) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 180
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.VerifyResultAsync(String expected, HttpRequestMessage request, HttpResponseMessage response, Boolean exceptionExpected, HttpMethod httpMethod, String expectedLocationHeader, Int32 verifyNumRecords, Boolean isExpectedErrorMsgSubstr) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 451
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestBase.SetupAndRunRestApiTest(String primaryKeyRoute, String queryString, String entityNameOrPath, String sqlQuery, EntityActionOperation operationType, String restPath, IHeaderDictionary headers, String requestBody, Boolean exceptionExpected, String expectedErrorMessage, HttpStatusCode expectedStatusCode, Nullable`1 restHttpVerb, String expectedSubStatusCode, String expectedLocationHeader, String expectedAfterQueryString, Boolean paginated, Int32 verifyNumRecords, Boolean expectJson, Boolean isExpectedErrorMsgSubstr, String clientRoleHeader) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestBase.cs:line 603
   at Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PutApiTestBase.PutOne_Update_WithExcludeFields_Test() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Put/PutApiTestBase.cs:line 155

Check failure on line 1 in Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PostgreSqlPutApiTests.PutOne_Update_WithReadDbPolicy_Test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PostgreSqlPutApiTests.PutOne_Update_WithReadDbPolicy_Test

Assert.IsTrue failed. 
Expected:<{
  "value": []
}>
Actual:<{
  "value": [
    {
      "id": 7,
      "title": "Test",
      "publisher_id": 1234
    }
  ]
}>
Raw output
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.PerformTestEqualJsonStrings(String expected, String actual) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 180
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.VerifyResultAsync(String expected, HttpRequestMessage request, HttpResponseMessage response, Boolean exceptionExpected, HttpMethod httpMethod, String expectedLocationHeader, Int32 verifyNumRecords, Boolean isExpectedErrorMsgSubstr) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 451
   at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestBase.SetupAndRunRestApiTest(String primaryKeyRoute, String queryString, String entityNameOrPath, String sqlQuery, EntityActionOperation operationType, String restPath, IHeaderDictionary headers, String requestBody, Boolean exceptionExpected, String expectedErrorMessage, HttpStatusCode expectedStatusCode, Nullable`1 restHttpVerb, String expectedSubStatusCode, String expectedLocationHeader, String expectedAfterQueryString, Boolean paginated, Int32 verifyNumRecords, Boolean expectJson, Boolean isExpectedErrorMsgSubstr, String clientRoleHeader) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestBase.cs:line 603
   at Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Put.PutApiTestBase.PutOne_Update_WithReadDbPolicy_Test() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Put/PutApiTestBase.cs:line 181