forked from flomesh-io/osm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
e2e_init_controller_test.go
38 lines (32 loc) · 1.17 KB
/
e2e_init_controller_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package e2e
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/openservicemesh/osm/tests/framework"
)
var _ = OSMDescribe("Test osm-mesh-config functionalities",
OSMDescribeInfo{
Tier: 2,
Bucket: 5,
},
func() {
Context("When OSM is Installed", func() {
It("create default MeshConfig resource", func() {
if Td.InstType == "NoInstall" {
Skip("Skipping test: NoInstall marked on a test that requires fresh installation")
}
instOpts := Td.GetOSMInstallOpts()
// Install OSM
Expect(Td.InstallOSM(instOpts)).To(Succeed())
meshConfig, err := Td.GetMeshConfig(Td.OsmNamespace)
Expect(err).ShouldNot(HaveOccurred())
// validate osm MeshConfig
Expect(meshConfig.Spec.Traffic.EnablePermissiveTrafficPolicyMode).Should(BeFalse())
Expect(meshConfig.Spec.Traffic.EnableEgress).Should(BeFalse())
Expect(meshConfig.Spec.Sidecar.LogLevel).Should(Equal("debug"))
Expect(meshConfig.Spec.Observability.EnableDebugServer).Should(BeTrue())
Expect(meshConfig.Spec.Observability.Tracing.Enable).Should(BeFalse())
Expect(meshConfig.Spec.Certificate.ServiceCertValidityDuration).Should(Equal("24h"))
})
})
})