Introduce new authentication provider Unauthenticated as the default
#3075
Build #20260221.4 had test failures
Details
- Failed: 37 (4.59%)
- Passed: 664 (82.38%)
- Other: 105 (13.03%)
- Total: 806
Annotations
Check failure on line 4720 in Build log
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
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'
]
azure-pipelines / PG_SQL Integration Tests
Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Find.PostgreSqlFindApiTests.FindTestsWithFilterQueryStringOneOpFilter
Assert.IsTrue failed.
Expected:<{
"value": [
{
"id": 5,
"color": null,
"ownername": "Abhishek",
"journalname": "Journal5"
}
]
}>
Actual:<{
"error": {
"code": "AuthorizationCheckFailed",
"message": "Authorization Failure: Access Not Allowed.",
"status": 403
}
}>
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 594
at Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Find.FindApiTestBase.FindTestsWithFilterQueryStringOneOpFilter() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Find/FindApiTestBase.cs:line 584
azure-pipelines / PG_SQL Integration Tests
Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.Mutation.Update.PostgresGraphQLUpdateMutationPolicyTests.Update Mutation Prohibited by Policy
Assert.IsTrue failed. Message "Could not find item with" not found in error [{"message":"The current user is not authorized to access this resource.","locations":[{"line":2,"column":17}],"path":["updateJournal"],"extensions":{"code":"AUTH_NOT_AUTHENTICATED"}}]
Raw output
at Azure.DataApiBuilder.Service.Tests.SqlTests.SqlTestHelper.TestForErrorInGraphQLResponse(String response, String message, String statusCode, String path) in /home/vsts/work/1/s/src/Service.Tests/SqlTests/SqlTestHelper.cs:line 194
at Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.GraphQLUpdateMutationDatabasePolicyTestBase.UpdateMutation_ErrorMessage_Policy(String dbQuery, String roleName, Boolean isAuthenticated, String expectedErrorMessage, Boolean mutationShouldComplete) in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/GraphQLUpdateMutationDatabasePolicyTestBase.cs:line 96
at Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.Mutation.Update.PostgresGraphQLUpdateMutationPolicyTests.UpdateMutation_ErrorMessage_Policy(String roleName, Boolean isAuthenticated, String expectedErrorMessage, Boolean mutationShouldComplete) in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/PostgresGraphQLUpdateMutationPolicyTests.cs:line 76
azure-pipelines / PG_SQL Integration Tests
Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.PostgresGraphQLQueryPolicyTests.QueryMany_Policy
Assert.IsTrue failed.
Expected:<[
{
"id": 1,
"title": "Awesome book"
},
{
"id": 2,
"title": "Also Awesome book"
},
{
"id": 3,
"title": "Great wall of china explained"
},
{
"id": 4,
"title": "US history in a nutshell"
},
{
"id": 5,
"title": "Chernobyl Diaries"
},
{
"id": 6,
"title": "The Palace Door"
},
{
"id": 7,
"title": "The Groovy Bar"
},
{
"id": 8,
"title": "Time to Eat"
},
{
"id": 10,
"title": "Policy-Test-02"
},
{
"id": 11,
"title": "Policy-Test-04"
},
{
"id": 12,
"title": "Time to Eat 2"
},
{
"id": 13,
"title": "Before Sunrise"
},
{
"id": 14,
"title": "Before Sunset"
},
{
"id": 15,
"title": "SQL_CONN"
},
{
"id": 16,
"title": "SOME%CONN"
},
{
"id": 17,
"title": "CONN%_CONN"
},
{
"id": 18,
"title": "[Special Book]"
},
{
"id": 19,
"title": "ME\\YOU"
},
{
"id": 20,
"title": "C:\\\\LIFE"
},
{
"id": 21,
"title": ""
}
]>
Actual:<[
{
"id": 1,
"title": "Awesome book"
},
{
"id": 2,
"title": "Also Awesome book"
},
{
"id": 3,
"title": "Great wall of china explained"
},
{
"id": 4,
"title": "US history in a nutshell"
},
{
"id": 5,
"title": "Chernobyl Diaries"
},
{
"id": 6,
"title": "The Palace Door"
},
{
"id": 7,
"title": "The Groovy Bar"
},
{
"id": 8,
"title": "Time to Eat"
},
{
"id": 9,
"title": "Policy-Test-01"
},
{
"id": 10,
"title": "Policy-Test-02"
},
{
"id": 11,
"title": "Policy-Test-04"
},
{
"id": 12,
"title": "Time to Eat 2"
},
{
"id": 13,
"title": "Before Sunrise"
},
{
"id": 14,
"title": "Before Sunset"
},
{
"id": 15,
"title": "SQL_CONN"
},
{
"id": 16,
"title": "SOME%CONN"
},
{
"id": 17,
"title": "CONN%_CONN"
},
{
"id": 18,
"title": "[Special Book]"
},
{
"id": 19,
"title": "ME\\YOU"
},
{
"id": 20,
"title": "C:\\\\LIFE"
},
{
"id": 21,
"title": ""
}
]>
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(String dbQuery, String roleName) in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/GraphQLQueryDatabasePolicyTestBase.cs:line 134
at Azure.DataApiBuilder.Service.Tests.Authorization.GraphQL.Policies.PostgresGraphQLQueryPolicyTests.QueryMany_Policy() in /home/vsts/work/1/s/src/Service.Tests/Authorization/GraphQL/Policies/PostgresGraphQLQueryPolicyTests.cs:line 71
azure-pipelines / PG_SQL Integration Tests
Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Insert.PostgreSqlInsertApiTests.InsertOneWithNoReadPermissionsTest
Assert.IsTrue failed.
Expected:<{
"value": []
}>
Actual:<{
"value": [
{
"id": 5001,
"title": "My New Book",
"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 594
at Azure.DataApiBuilder.Service.Tests.SqlTests.RestApiTests.Insert.InsertApiTestBase.InsertOneWithNoReadPermissionsTest() in /home/vsts/work/1/s/src/Service.Tests/SqlTests/RestApiTests/Insert/InsertApiTestBase.cs:line 416