Jared Scheib
3754fa6dfa
Test UpdateSource (including defaultRP)
...
Uses a test server to mock the server responses
necessary for update.
Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-12 17:54:21 -07:00
Iris Scholten
c3bed99a92
Complete test for get SourcesID
...
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 14:20:02 -07:00
Iris Scholten
8d7107093c
WIP create test for getting a source with no defaultRP
...
Co-authored-by Jared Scheib <jared.scheib@gmail.com>
2018-04-11 13:34:58 -07:00
Andrew Watkins
8f770c4636
Update server tests
2018-04-03 16:38:52 -07:00
Chris Goller
7555783638
Update influxdb annotation store to support update/delete
2018-01-18 21:50:46 -06:00
Jared Scheib
6b7a18d666
Complete 9ef1e57
by removing Role concept from sources in server
2017-11-30 19:03:56 -08:00
Michael Desa
d9a29cab89
Fix ValidSourceRequest to modify pointer when needed
...
Add tests for Store.SourcesAll
2017-11-10 12:15:04 -05:00
Michael Desa
5f63e2738a
Refactor data stores into a common interface
2017-10-31 16:41:17 -04:00
Michael Desa
0d235f646d
Generalize chronograf.UsersStore Get method
...
The `Get` method on the UsersStore was generalize by changing the second
parameter to a struct. This allows the Store to retrieve users by more
than simply their name.
-Get(ctx context.Context, name string) (*User, error)
+Get(ctx context.Context, q UserQuery) (*User, error)
2017-10-18 14:17:42 -04:00
Jared Scheib
0d2715048d
Rename Role CRUD methods & structs w Source prefix
...
Move server/roles.go and server/roles_test.go into server/sources.go and
server/sources_test.go respectively.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:25:33 -04:00
Michael de Sa
5a9772822e
Move source_users & source_users_test code into sources.go & sources_test.go
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 14:32:41 -07:00
Chris Goller
c2adec4709
Add JWT shared secret influxdb auth
...
Refactor --new-sources to simplify adding shared secrets
2017-07-19 01:39:06 -05:00
Chris Goller
86575b2cde
Add line-protocol /write endpoint to all data sources
2017-05-03 00:06:40 -05:00
Chris Goller
84e9e0018a
Update queries endpoint to return InfluxQL, queryConfig, queryAST
2017-04-07 16:58:56 -05:00
Chris Goller
98799cc442
Fix sources test to include databases link
2017-03-23 14:06:52 -07:00
Chris Goller
d1c71a1afe
Fix server tests with additional links
2017-02-19 14:37:45 -06:00
Chris Goller
923a9d3c31
Update sources endpoint to take optional telegraf database name.
2016-11-18 16:07:53 -06:00