chore: build
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package demos
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -64,9 +65,16 @@ func TestVitrineValuesRenderWithCharts(t *testing.T) {
|
||||
"name: " + vitrineFrontendService(p.Namespace) + "\n",
|
||||
"tls: {}", // certificat servi par le TLSStore, pas par projet
|
||||
}},
|
||||
// Domaine personnalisé : servi EN PLUS de l'hôte par défaut, sur les
|
||||
// trois routes (API, médias, frontend).
|
||||
{"ingressroute", h.buildVitrineIngressRouteValues(p, "boutique.client.fr"), []string{
|
||||
"(Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)) && PathPrefix(`/api/`)",
|
||||
"(Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)) && PathPrefix(`/uploads/`)",
|
||||
"match: Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)\n",
|
||||
}},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.chart, func(t *testing.T) {
|
||||
for i, c := range cases {
|
||||
t.Run(fmt.Sprintf("%s-%d", c.chart, i), func(t *testing.T) {
|
||||
raw, err := yaml.Marshal(c.values)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user