Skip to content

Commit

Permalink
[FTR] Merge Alerting Apis from x-pack/test_serverless/shared into `…
Browse files Browse the repository at this point in the history
…x-pack/test/api_integration/deployment_agnostic` (elastic#193975)

## Summary

Follow up of [this pr](elastic#192216),
per [this
discussion](elastic#192216 (comment)).

Also, switch from `svlCommonApi` to `samlAuth` for internal headers.

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Dzmitry Lemechko <[email protected]>
(cherry picked from commit 10c3373)

# Conflicts:
#	x-pack/test_serverless/shared/services/alerting_api.ts
  • Loading branch information
wayneseymour committed Oct 25, 2024
1 parent b7ad3e2 commit 0444305
Show file tree
Hide file tree
Showing 11 changed files with 910 additions and 1,045 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(ruleId, adminRoleAuthc);
const match = await alertingApi.findInRules(adminRoleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be(expectedConsumer);
});
Expand Down
Loading

0 comments on commit 0444305

Please sign in to comment.