lua shared dict from cm
lua shared dict teml test and update func sign lua shared dict cm test lua shared dict integration test lua shared dict add cm parsing lua shared dict change test header
This commit is contained in:
parent
041a8457aa
commit
a2e667c082
8 changed files with 179 additions and 13 deletions
|
|
@ -70,6 +70,30 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() {
|
|||
})
|
||||
})
|
||||
|
||||
Context("Lua shared dict", func() {
|
||||
It("update config", func() {
|
||||
|
||||
host := "foo.com"
|
||||
ingress := framework.NewSingleIngress(host, "/", host, f.Namespace, "http-svc", 80, nil)
|
||||
f.EnsureIngress(ingress)
|
||||
|
||||
lkey := "lua-shared-dicts"
|
||||
lval := "configuration_data:100,certificate_data:200"
|
||||
|
||||
By("update shared dict")
|
||||
|
||||
f.UpdateNginxConfigMapData(lkey, lval)
|
||||
|
||||
var nginxConfig string
|
||||
f.WaitForNginxConfiguration(func(cfg string) bool {
|
||||
nginxConfig = cfg
|
||||
return true
|
||||
})
|
||||
|
||||
Expect(strings.ContainsAny(nginxConfig, "configuration_data:100M,certificate_data:200M"), true)
|
||||
})
|
||||
})
|
||||
|
||||
Context("when only backends change", func() {
|
||||
It("handles endpoints only changes", func() {
|
||||
var nginxConfig string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue