Fix unit tests.
Wouldn't be better to add the search hook programmatically within the test suite setting up the related properties for the bucket rather than do it with the before_script?
@MarcoDeBortoli Yes, if the functionality within the client works. We know that search-cmd works, it's not under test.
The client doesn't have that feature in the meaning that you cannot setup the hook while creating the bucket at first.
But I tried myself to set the relative properties afterwords and it worked. I'll create a quick fix for it and open a PR.
Actually I think I should open some.
When i sent a pull request the test failed because of the line
sudo search-cmd install searchbucket
$ sudo search-cmd install searchbucket
21Attempting to restart script through sudo -H -u riak
22/etc/profile.d/phpenv.sh: line 4: phpenv: command not found
23Node is not running!
26before_script: 'sudo search-cmd install searchbucket' returned false.