Newer
Older
package runner
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestConfig(t *testing.T) {
configDir := "fixtures/"
require.NoError(t, err)
// first config.spec.variables entry name should be VAULT_KV in our test file
assert.Equal(t, "VAULT_KV", config.Spec.Variables[0].Name)
assert.Equal(t, "k8s.orus.io", config.Spec.Variables[0].Value)
assert.Equal(t, "vendor/helm/postgresql", config.Spec.Charts.Helm["postgres"].Path)
assert.Equal(t, "vendor/ytt/odoo", config.Spec.Charts.Helm["odoo"].Path)