github.com/dustinrc/deis@v1.10.1-0.20150917223407-0894a5fb979e/builder/confd/confd_test.go (about)

     1  package confd
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/Masterminds/cookoo"
     7  )
     8  
     9  func TestRunOnce(t *testing.T) {
    10  	reg, _, _ := cookoo.Cookoo()
    11  
    12  	reg.Route("test", "Test route").
    13  		Does(RunOnce, "res").
    14  		Using("node").WithDefault("localhost:4001")
    15  }
    16  func TestRun(t *testing.T) {
    17  	reg, _, _ := cookoo.Cookoo()
    18  
    19  	reg.Route("test", "Test route").
    20  		Does(Run, "res").
    21  		Using("node").WithDefault("localhost:4001").
    22  		Using("interval").WithDefault(200)
    23  
    24  }