Skip to content

Commit

Permalink
Refresh snapshots, fix broken tests/types.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Apr 23, 2020
1 parent 0ddd97b commit ef21286
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ describe('status check alert', () => {
Object {
"callES": [MockFunction],
"dynamicSettings": Object {
"certificatesThresholds": Object {
"certThresholds": Object {
"age": 365,
"expiration": 7,
"expiration": 30,
},
"heartbeatIndices": "heartbeat-8*",
},
Expand Down Expand Up @@ -135,9 +135,9 @@ describe('status check alert', () => {
Object {
"callES": [MockFunction],
"dynamicSettings": Object {
"certificatesThresholds": Object {
"certThresholds": Object {
"age": 365,
"expiration": 7,
"expiration": 30,
},
"heartbeatIndices": "heartbeat-8*",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { getCerts } from '../get_certs';
import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../../../legacy/plugins/uptime/common/constants';

describe('getCerts', () => {
let mockHits: any;
Expand Down Expand Up @@ -86,7 +87,10 @@ describe('getCerts', () => {
it('parses query result and returns expected values', async () => {
const result = await getCerts({
callES: mockCallES,
dynamicSettings: { heartbeatIndices: 'heartbeat*' },
dynamicSettings: {
heartbeatIndices: 'heartbeat*',
certThresholds: DYNAMIC_SETTINGS_DEFAULTS.certThresholds,
},
index: 1,
from: 'now-2d',
to: 'now+1h',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function({ getService }: FtrProviderContext) {
it('can change the settings', async () => {
const newSettings = {
heartbeatIndices: 'myIndex1*',
certificatesThresholds: {
certThresholds: {
expiration: 5,
age: 15,
},
Expand Down

0 comments on commit ef21286

Please sign in to comment.