Skip to content

Commit

Permalink
Update symbols to ref with new name...could be problematic.
Browse files Browse the repository at this point in the history
I'll let ci figure it out.
  • Loading branch information
wayneseymour committed Sep 25, 2024
1 parent fa32c58 commit 6848c6d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 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.findRuleInRules(adminRoleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be(expectedConsumer);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ export function AlertingApiProvider({ getService }: DeploymentAgnosticFtrProvide
return body;
},

async findRule(ruleId: string, roleAuthc: RoleCredentials) {
async findRuleInRules(roleAuthc: RoleCredentials, ruleId: string) {
const response = await supertestWithoutAuth
.get('/api/alerting/rules/_find')
.set(roleAuthc.apiKeyHeader)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should find the created rule with correct information about the consumer', async () => {
const match = await alertingApi.findRule(roleAuthc, ruleId);
const match = await alertingApi.findRuleInRules(roleAuthc, ruleId);
expect(match).not.to.be(undefined);
expect(match.consumer).to.be('observability');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function ({ getService }: FtrProviderContext) {
});

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

0 comments on commit 6848c6d

Please sign in to comment.