blob: f79886a8b571271e478c32905f75b75fb99f8266 [file] [log] [blame]
Mohammed Naserc6e431b2024-03-15 01:21:44 -04001package keystone
2
3import (
4 _ "embed"
5 "testing"
6
7 "github.com/goccy/go-yaml"
8 "github.com/stretchr/testify/require"
9
10 "github.com/vexxhost/atmosphere/internal/openstack_helm"
11 "github.com/vexxhost/atmosphere/internal/testutils"
12)
13
14var (
15 //go:embed vars/main.yml
16 varsFile []byte
17 vars Vars
18)
19
20type Vars struct {
21 openstack_helm.HelmValues `yaml:"_keystone_helm_values"`
22}
23
24func TestHelmValues(t *testing.T) {
25 err := yaml.UnmarshalWithOptions(varsFile, &vars)
26 require.NoError(t, err)
27
28 vals, err := openstack_helm.CoalescedHelmValues("../../charts/keystone", &vars.HelmValues)
29 require.NoError(t, err)
30
31 testutils.TestDatabaseConf(t, vals.Conf.Keystone.Database)
Mohammed Naser60bb74c2025-02-10 10:52:10 -050032 testutils.TestAllPodsHaveRuntimeClass(t, vals)
33 testutils.TestAllPodsHavePriorityClass(t, vals)
Mohammed Naserc6e431b2024-03-15 01:21:44 -040034}