Commit Graph

88 Commits (ReaderRole)

Author SHA1 Message Date
Pavel Zavora 44c8d56637 feat(ui/kapacitor): improve rule reducer test 2022-03-15 09:15:08 +01:00
mmdoogie 19a57487a7 feat(kapacitor): also expose stateChangesOnly option 2022-03-15 08:31:47 +01:00
mmdoogie 9e1add4cb9 test(kapacitor): add reducers test 2022-03-15 08:31:47 +01:00
Pavel Zavora 3e0a7a9d85 fix(ui/kapacitor): remove tests for TICKscript on Alert Rules page 2022-03-12 06:26:56 +01:00
Pavel Zavora 4e187ffece feat(ui): add Alert Rule Builder button to open builder UI 2022-03-02 06:59:21 +01:00
Pavel Zavora 05a024dbbb feat(ui): enhance TickscriptPage test 2022-02-22 16:58:05 +01:00
Pavel Zavora 10455c3c1b chore(ui): rename activeKapacitorFromSources helper 2022-02-17 15:20:09 +01:00
Pavel Zavora 2933b1d493 feat(ui): implement tickscript name change 2022-01-04 11:44:01 +01:00
Pavel Zavora 23e60b2400 fix(ui): update KapactiorRules test 2021-06-12 15:39:54 +02:00
Pavel Zavora 50cb2ddbe9 feat(ui): test fluxTasks reducer 2021-06-12 15:39:54 +02:00
Pavel Zavora 698e64538a feat(ui): remove hipchat 2021-03-15 18:27:51 +01:00
Pavel Zavora 96a095f6f3 chore(prettier): apply to test ts 2021-03-08 12:47:41 +01:00
Pavel Zavora 05dad39a04 chore(prettier): apply arrow parens rule to ts test files 2021-03-08 12:34:19 +01:00
Pavel Zavora f3f3b6e27e chore(prettier): require arrow parens in tests 2021-03-08 10:31:13 +01:00
Pavel Zavora de96add671 fix(kapacitor/alert): accept valid templates #5343 2020-06-18 08:58:07 +02:00
Pavel Zavora c61e25171b fix(kapacitor): change routing paths of kapacitor rules to include kapacitor ID 2020-06-17 05:04:51 +02:00
Pavel Zavora 6a390479d0 fix(kapacitor/alert): support .Time.Unix message validation #5492 2020-06-16 06:54:22 +02:00
Andrew Watkins 2dadcaf8dc
fix: alert rule message text template parsing (#5228)
* feat: add go text template parsing endpoint

* chore: yarn.lock

* chore(routes): change text validation endpoint name

* feat: validate kapacitor rule templates

* test(alerts): remove redundant tests

* chore(routes): update validate endpoint name

* test(routes): add validate endpoint to tests

* test(server): add validation endpoints

* feat(alerts): change template validation to 204

* chore: update react et al
2019-07-09 12:31:56 -07:00
Andrew Watkins f0d260e73a
fix(alert): message validation (#5107) 2019-03-13 16:41:44 -07:00
Delmer df41635301
fix: active kapacitor updating and ui defaults (#5079)
* fix(server): fix active kapacitor settings

Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Chris Goller <goller@gmail.com>
2019-02-12 18:50:56 -05:00
Andrew Watkins 8145c25104 Remove irrelevant tests 2018-10-30 14:17:18 -07:00
Andrew Watkins 5983ef2dfc Display kapacitor name and url in header 2018-10-30 13:41:59 -07:00
Deniz Kusefoglu 7e2c7877bb Add validation to Alert Rule message templates 2018-09-24 10:52:34 -07:00
Christopher Henn c4684151b0 Fix all existing type errors 2018-07-25 12:37:30 -07:00
Andrew Watkins 5da4cf9e4c Add test for bug 2018-07-12 09:05:02 -07:00
Alex P 722d75a2a0 Move PageHeader and associated components into reusable UI directory 2018-06-28 10:34:41 -07:00
Alex P 6e220c1672 Provide mock context in test to prevent fail 2018-06-19 15:06:21 -07:00
Alex P aa4a6461b6 Remove only from test 2018-06-19 13:47:00 -07:00
Alex P a3c3fc6e1e fix nesting issue in test 2018-06-19 11:29:56 -07:00
Alex P 913239bf7c Fix nesting issue in test 2018-06-19 11:29:45 -07:00
Iris Scholten 268a6df500 Add test for tasktable sorting 2018-05-16 14:38:23 -07:00
Andrew Watkins db98e429a6 Update tests and bugfix 2018-04-10 14:26:21 -07:00
Andrew Watkins c15fa1afe1 Add test for bug 2018-04-10 13:56:53 -07:00
Andrew Watkins a1a755016f Move TickscriptSave button to own file 2018-04-09 11:59:00 -07:00
Andrew Watkins 9f4faf6fb5 Disables saveing tickscript if no databases are selected 2018-04-06 17:56:02 -07:00
Andrew Watkins 09ccd3b152 Add test resources 2018-04-06 17:56:02 -07:00
Andrew Watkins 21754a10f9 Convert TickscriptEditor to TypesScript and add initial test 2018-04-06 17:56:02 -07:00
ebb-tide d2b70acdb0 Implement suggestions from PR review 2018-04-03 12:00:53 -07:00
ebb-tide fb37c548e2 Add some tests 2018-04-02 17:16:45 -07:00
Jared Scheib 504e6f938e Make tslint happy for tests 2018-03-22 15:51:54 -07:00
Jared Scheib 2419890f7d Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-22 14:08:45 -07:00
Jared Scheib a741a3f04c Test that KapacitorRules renders corresponding rule/task rows with same enabled status 2018-03-22 13:09:57 -07:00
Jared Scheib 7f4779b9ba Refactor KapacitorRules test to share common helpers & schema 2018-03-22 13:01:49 -07:00
Jared Scheib 5e7cbede07 Test that 'change' event on TaskRow calls onChangeRuleStatus on that rule 2018-03-21 16:48:57 -07:00
Jared Scheib 04bfbbfa09 Refactor TasksTable test to per-test shallow
Make dedicated describe block props
2018-03-21 16:43:19 -07:00
Jared Scheib dd46e6e43d Test that 'change' event on RuleRow calls onChangeRuleStatus on that rule 2018-03-21 16:42:03 -07:00
Jared Scheib 82910d0a19 Remove improper user interaction work-in-progress
Enzyme is not intended to test toggling a checkbox.
See https://github.com/airbnb/enzyme/issues/952.

Test initial render RuleRow.
Make query an optional property in AlertRule definition.
2018-03-21 16:14:20 -07:00
Andrew Watkins 16dfa23477 Add tslint to test runner / watcher 2018-03-21 16:12:42 -07:00
Andrew Watkins 9c1799c50d Fix linting errors 2018-03-21 16:12:42 -07:00
Jared Scheib 366cf0c7c4 Get rows & props for testing of KapacitorRulesTable & TasksTable 2018-03-21 13:14:52 -07:00