Skip to content

Revert integration test config files to use AppService - Unauthentica…

78e3476
Select commit
Loading
Failed to load commit list.
Open

Introduce new authentication provider Unauthenticated as the default #3075

Revert integration test config files to use AppService - Unauthentica…
78e3476
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PG_SQL Integration Tests failed Mar 11, 2026 in 8m 21s

Build #20260311.5 had test failures

Details

Tests

  • Failed: 37 (4.56%)
  • Passed: 670 (82.51%)
  • Other: 105 (12.93%)
  • Total: 812

Annotations

Check failure on line 4720 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Build log #L4720

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

Check failure on line 4726 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Build log #L4726

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.SqlTests.RestApiTests.Patch.PostgreSqlPatchApiTests.Patch_Update_WithReadDatabasePolicyUnsatisfiedTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Patch.PostgreSqlPatchApiTests.Patch_Update_WithReadDatabasePolicyUnsatisfiedTest

Assert.IsTrue failed. 
Expected:<{
  "value": [
    {
      "id": 8,
      "title": "Heart of Darkness"
    }
  ]
}>
Actual:<{
  "value": [
    {
      "id": 8,
      "title": "Heart of Darkness",
      "publisher_id": 2324
    }
  ]
}>
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.Patch.PatchApiTestBase.Patch_Update_WithReadDatabasePolicyUnsatisfiedTest() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Patch/PatchApiTestBase.cs:line 586

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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

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

Test method Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithAnd 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.TestNestedFilterWithAnd(String existsPredicate, String roleName, Boolean expectsError, String errorMsgFragment) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/GraphQLFilterTests/GraphQLFilterTestBase.cs:line 1083
   at Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLFilterTests.PostgreSqlGQLFilterTests.TestNestedFilterWithAnd() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/GraphQLFilterTests/PostgreSqlGQLFilterTests.cs:line 139

Check failure on line 1 in Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Find.PostgreSqlFindApiTests.FindTestOnTableWithDatabasePolicy

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PG_SQL Integration Tests

Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Find.PostgreSqlFindApiTests.FindTestOnTableWithDatabasePolicy

Assert.IsTrue failed. 
Expected:<{
  "value": [
    {
      "id": 1156,
      "name": "The First Publisher"
    },
    {
      "id": 1940,
      "name": "Policy Publisher 01"
    },
    {
      "id": 1941,
      "name": "Policy Publisher 02"
    },
    {
      "id": 2323,
      "name": "TBD Publishing One"
    },
    {
      "id": 2324,
      "name": "TBD Publishing Two Ltd"
    },
    {
      "id": 2345,
      "name": "Small Town Publisher"
    }
  ]
}>
Actual:<{
  "value": [
    {
      "id": 1156,
      "name": "The First Publisher"
    },
    {
      "id": 1234,
      "name": "Big Company"
    },
    {
      "id": 1940,
      "name": "Policy Publisher 01"
    },
    {
      "id": 1941,
      "name": "Policy Publisher 02"
    },
    {
      "id": 2323,
      "name": "TBD Publishing One"
    },
    {
      "id": 2324,
      "name": "TBD Publishing Two Ltd"
    },
    {
      "id": 2345,
      "name": "Small Town Publisher"
    }
  ]
}>
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.Find.FindApiTestBase.FindTestOnTableWithDatabasePolicy() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Find/FindApiTestBase.cs:line 1413

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