Skip to content

Commit

Permalink
"GetAllTriggerBindings" is not a thing because you can only ever get …
Browse files Browse the repository at this point in the history
…the bindings for a specific trigger.
  • Loading branch information
robertmclaws committed Apr 30, 2024
1 parent 1a9f2f8 commit 74b8540
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Clients/ActionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public Task<ActionVersionBase> GetVersionAsync(string actionId, string versionId
/// <param name="pagination">Specifies pagination info to use.</param>
/// <param name="cancellationToken">The cancellation token to cancel operation.</param>
/// <returns>The retrieved trigger bindings.</returns>
public Task<IPagedList<TriggerBinding>> GetAllTriggerBindingsAsync(string triggerId, PaginationInfo pagination, CancellationToken cancellationToken = default)
public Task<IPagedList<TriggerBinding>> GetTriggerBindingsAsync(string triggerId, PaginationInfo pagination, CancellationToken cancellationToken = default)
{
var queryStrings = new Dictionary<string, string>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Clients/IActionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public interface IActionsClient
/// <param name="pagination">Specifies pagination info to use.</param>
/// <param name="cancellationToken">The cancellation token to cancel operation.</param>
/// <returns>The retrieved trigger bindings.</returns>
Task<IPagedList<TriggerBinding>> GetAllTriggerBindingsAsync(string triggerId, PaginationInfo pagination, CancellationToken cancellationToken = default);
Task<IPagedList<TriggerBinding>> GetTriggerBindingsAsync(string triggerId, PaginationInfo pagination, CancellationToken cancellationToken = default);

/// <summary>
/// Update the actions that are bound (i.e. attached) to a trigger.
Expand Down
4 changes: 2 additions & 2 deletions tests/Auth0.ManagementApi.IntegrationTests/ActionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public async Task Test_get_triggers()
[Fact]
public async Task Test_get_and_update_trigger_bindings()
{
var triggerBindingsBeforeCreate = await fixture.ApiClient.Actions.GetAllTriggerBindingsAsync("post-login", new PaginationInfo());
var triggerBindingsBeforeCreate = await fixture.ApiClient.Actions.GetTriggerBindingsAsync("post-login", new PaginationInfo());

var createdAction = await fixture.ApiClient.Actions.CreateAsync(new CreateActionRequest
{
Expand Down Expand Up @@ -116,7 +116,7 @@ public async Task Test_get_and_update_trigger_bindings()
}
});

var triggerBindingsAfterCreate = await fixture.ApiClient.Actions.GetAllTriggerBindingsAsync("post-login", new PaginationInfo());
var triggerBindingsAfterCreate = await fixture.ApiClient.Actions.GetTriggerBindingsAsync("post-login", new PaginationInfo());

triggerBindingsAfterCreate.Count.Should().Be(triggerBindingsBeforeCreate.Count + 1);

Expand Down

0 comments on commit 74b8540

Please sign in to comment.