...

Source file src/edge-infra.dev/pkg/edge/datasync/couchdb/couchb_test.go

Documentation: edge-infra.dev/pkg/edge/datasync/couchdb

     1  package couchdb
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  var (
     9  	SecretUsernameData  = []byte("SecretUsername")
    10  	SecretPasswordData  = []byte("SecretPassword")
    11  	SecretCookieData    = []byte("SecretCookie")
    12  	SecretURIData       = []byte("SecretURI")
    13  	SecretDBNameData    = []byte("SecretDBName")
    14  	SecretAdminsIniData []byte
    15  )
    16  
    17  func TestMain(m *testing.M) {
    18  	hashed, _ := pbkdf2Hash(SecretPasswordData)
    19  	SecretAdminsIniData = toAdminIni(string(SecretUsernameData), hashed)
    20  	os.Exit(m.Run())
    21  }
    22  

View as plain text