Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkoSekulic committed Oct 28, 2024
1 parent 98b4948 commit 32d9d6c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion backend/src/Designer/Controllers/AppScopesController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static IServiceCollection AddGiteaOidcAuthentication(this IServiceCollec
NameClaimType = GiteaUserNameClaim
};
options.Events.OnRedirectToIdentityProvider = context =>
{
// AspNetCore.OpenIdConnect.Nonce being created after each login
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Altinn.Studio.Designer.Repository.Models.AppScope;
using Altinn.Studio.Designer.Repository.ORMImplementation.Models;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,19 @@ private async Task CallUpsertEndpointAndAssertFromDb(string org, string app, App

public static IEnumerable<object[]> TestData()
{
yield return ["ttd", TestDataHelper.GenerateTestRepoName(), new AppScopesUpsertRequest()
{
Scopes = new HashSet<MaskinPortenScopeDto>()
yield return ["ttd",
TestDataHelper.GenerateTestRepoName(),
new AppScopesUpsertRequest()
{
Scopes = new HashSet<MaskinPortenScopeDto>()
{
new()
{
Scope = "test",
Description = "test"
}
}
}];
}];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public static AppScopesEntity GenerateAppScopesEntity(string org, string app = n
public static MaskinPortenScopeEntity GenerateMaskinPortenScopeEntity() =>
new()
{
Scope = Guid.NewGuid().ToString(), Description = Guid.NewGuid().ToString(),
Scope = Guid.NewGuid().ToString(),
Description = Guid.NewGuid().ToString(),
};

public static ISet<MaskinPortenScopeEntity> GenerateMaskinPortenScopeEntities(int count) =>
Expand Down

0 comments on commit 32d9d6c

Please sign in to comment.