github.com/Jeffail/benthos/v3@v3.65.0/lib/test/integration/cache/multilevel_test.go (about)

     1  package cache
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/Jeffail/benthos/v3/internal/integration"
     7  )
     8  
     9  var _ = registerIntegrationTest("multilevel", func(t *testing.T) {
    10  	t.Parallel()
    11  
    12  	template := `
    13  cache_resources:
    14    - label: testcache
    15      multilevel: [ first, second ]
    16    - label: first
    17      memory: {}
    18    - label: second
    19      memory: {}
    20  `
    21  	suite := integration.CacheTests(
    22  		integration.CacheTestOpenClose(),
    23  		integration.CacheTestMissingKey(),
    24  		integration.CacheTestDoubleAdd(),
    25  		integration.CacheTestDelete(),
    26  		integration.CacheTestGetAndSet(50),
    27  	)
    28  	suite.Run(t, template)
    29  })