1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00

10 Commits

Author SHA1 Message Date
Prashanth Pai
936f040f10 e2e: Create separate localstatedirs for each test
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-09-17 17:45:31 +05:30
Oshank Kumar
38d20ee280 restclient: refactor some of the rest client code .
added separate method to create http.Request.
Initializing underlying http.Client while initializing
GlusterD rest client

Signed-off-by: Oshank Kumar <okumar@redhat.com>
2018-08-14 18:28:18 +05:30
Madhu Rajanna
0b99b82c35 Implemented webhook/test rest API in glusterd2
Implemented wehook/test rest API in glusterd2
which will be called by clients to test webhook
connections between all peers in glusterd2
and webhook URL

added rest client code to call webhook/test API

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-13 13:52:59 +05:30
John Mulligan
bab15926c0 e2e: create a testCluster type
The system is going to grow more services that need management.
Instead of passing a gds array around pass a higher level
testCluster type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2018-07-13 10:56:50 +05:30
John Mulligan
9dafebcea5 e2e: stop using a gds global
A fair number of test cases were sharing the "gds" variable defined
in the volume ops test. Instead of sharing this variable across
test instances we make it local to the function and pass the
parameter as needed. The one unfortunate thing about this change
is that is requires a few wrappers around the functions passed
to t.Run to capture the local variable.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2018-07-13 10:56:50 +05:30
Madhu Rajanna
b83184c462 e2e cleanup
instead of passing LocalStateDir and ClientAddress
of gdProcess to initRestClient function,
pass gdProcess object to initRestClient

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-10 15:58:09 +05:30
Madhu Rajanna
0190411220 Enable Rest Authentication by default
if a restauth key is missing in config
file or if restauth is set to true,
glusterd2 will do token authentication.

Authentication can be disabled by
by setting restauth key in the configuration
to false.

updated test cases to use authentication
if auth file is present

added default rest authentication in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-10 13:52:48 +05:30
John Mulligan
35ec52b6a8 e2e: establish a common approach to creating per-test temp dirs
Add a helper function for tests that need unique test dirs that
creates test directories like /[base]/[testname]/[unique].

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2018-07-09 09:36:47 +05:30
Prashanth Pai
dd2a8f7507 Remove 'workdir' config in favour of 'localstatedir'
For all practical purposes, in real usage and in tests, the configurable
paths `workdir` and `localstatedir` are set to the same directory which
defaults to `/var/lib/glusterd2` or `/user/local/var/lib/glusterd2`

Unlike glusterd1, glusterd2 does not daemonize itself. The working
directory of the process can be meaningfully set to either current
working directory from where glusterd2 process is started or to
`localstatedir` where glusterd2 stores all its data. We choose the
latter.

This change also reduces ambiguity for users and one less thing to
configure.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-02 09:44:30 +05:30
Madhu Rajanna
951c0d786b e2e weebhooks: e2e test cases for webhooks
added e2e test cases for webhook rest API's

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-26 10:27:45 +05:30