Working on converting sensu-plugins-postfix from Sensu 1.x to Sensu go ruby, giving errors

  1. What have you already tried? Please include links to gists and/or code blocks (if relatively small)
    Forked from https://github.com/sensu-plugins/sensu-plugins-postfix -->
    https://github.com/fxsti01/sensu-plugins-postfix
    After a lot of trial and error, matched the settings from:
    https://github.com/sensu-plugins/sensu-plugins-dns

Running on travis, getting errors:
https://travis-ci.com/fxsti01/sensu-plugins-postfix/jobs/241250452
#----------------------------------------------
0.01s$ sudo iptables -L DOCKER || ( echo “DOCKER iptables chain missing” ; sudo iptables -N DOCKER )
before_install.2
0.61s$ gem install bundler -v 1.15
install
19.56s$ bundle install
0.59s$ bundle exec rake quick
rake aborted!
Don’t know how to build task ‘quick’ (See the list of available tasks with rake --tasks)
/home/travis/.rvm/gems/ruby-2.3.0/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /home/travis/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval’
/home/travis/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in <main>' (See full trace by running task with --trace) The command "bundle exec rake quick" exited with 1. 0.60s$ bundle exec rake kitchen:ruby-echo $TRAVIS_RUBY_VERSION | sed -e "s/.//g"-debian-8 rake aborted! Don't know how to build task 'kitchen:ruby-230-debian-8' (See the list of available tasks withrake --tasks) /home/travis/.rvm/gems/ruby-2.3.0/gems/rake-12.3.3/exe/rake:27:in<top (required)>’
. . . .
It will eventually finish, but showing red X as errorred out
#----------------------------------------------
Copied the files over from old Sensu 1.x to Sensu GO server, (.rb,doc,spec, etc…), can run the check-mailq.rb manually and runs fine, so code is good overall, would like to get moved over to new Sensu.

  1. Tell us about your setup
    CentOS 7, Sensu GO core

  2. Is there a Github issue related to your issue?
    nope

  3. Is there anything else that can help us effectively help you?
    I am new to building gems and Sensu plugins. Not sure if going about this the right way or not.

thanks.

Hey!

I should be able to help you with this. I’ll spend some time looking at your fork tomorrow and see what’s going on. Most likely based on your errors, some of the additional TravisCI tasks meant to provide integration testing may be out of date and no longer functional. I’ve run into this a lot myself as I convert things over.