- Implement tests for KubernetesCluster including registration, connectivity status, and error handling. - Create tests for Tenant creation, member management, and status changes. - Add tests for ServiceInstance provisioning and state management. - Introduce RegisterClusterHandler tests to validate registration requests and error scenarios. - Set up project files for new test projects with necessary dependencies.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
@using Microsoft.AspNetCore.Antiforgery
|
|
@inject IServiceProvider Services
|
|
|
|
<button type="submit" name="__passkeySubmit" @attributes="AdditionalAttributes">@ChildContent</button>
|
|
<passkey-submit
|
|
operation="@Operation"
|
|
name="@Name"
|
|
email-name="@EmailName"
|
|
request-token-name="@tokens?.HeaderName"
|
|
request-token-value="@tokens?.RequestToken">
|
|
</passkey-submit>
|
|
|
|
@code {
|
|
private AntiforgeryTokenSet? tokens;
|
|
|
|
[CascadingParameter]
|
|
private HttpContext HttpContext { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
[EditorRequired]
|
|
public PasskeyOperation Operation { get; set; }
|
|
|
|
[Parameter]
|
|
[EditorRequired]
|
|
public string Name { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
public string? EmailName { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment? ChildContent { get; set; }
|
|
|
|
[Parameter(CaptureUnmatchedValues = true)]
|
|
public IDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
tokens = Services.GetService<IAntiforgery>()?.GetTokens(HttpContext);
|
|
}
|
|
}
|