Commit Graph

78 Commits (d37755c207f20524839cedd1da4f9a8d0db8d3ce)

Author SHA1 Message Date
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
Jared Scheib 8e0ad0432b Test that KapacitorRules renders one corresponding task row for each rule row 2018-03-21 12:29:26 -07:00
Jared Scheib 317bfd5bfe WIP Test user interaction toggle of checkboxes 2018-03-20 20:47:49 -07:00
Jared Scheib b9c7f16cc4 Refactor KapacitorRules.test to use explicit shallow setup 2018-03-20 20:37:05 -07:00
Jared Scheib 2a77a3b776 Prettier 2018-03-20 18:41:45 -07:00
Jared Scheib 2358cce513 Find by component rather than component name in enzyme tests 2018-03-19 16:52:06 -07:00
Jared Scheib 6feb258c64 Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-16 21:05:01 -07:00
Jared Scheib a1a40ddc01 Add failing test for KapacitorRules renders both tables rows with unique label FORs 2018-03-16 16:04:04 -07:00
Jared Scheib 4080c31e93 Add failing test for KapacitorRules renders both tables with unique checkbox IDs 2018-03-16 16:03:20 -07:00
Jared Scheib 60897b8bc2 Revert "Test KapacitorRulesTable tr keys to be UUIDv4"
This reverts commit 841ae1e60c.
2018-03-16 14:18:57 -07:00
Jared Scheib 841ae1e60c Test KapacitorRulesTable tr keys to be UUIDv4 2018-03-14 18:44:51 -07:00