Fix fcgi configmap value parsing (#10528)
This commit is contained in:
parent
96112d93f4
commit
a879829408
7 changed files with 95 additions and 8 deletions
|
|
@ -371,6 +371,18 @@ func Test_fastcgi_Parse(t *testing.T) {
|
|||
want: Config{Index: "indexxpto-92123.php"},
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "invalid configmap values val",
|
||||
index: "indexxpto-92123.php",
|
||||
configmapname: "default/fcgiconfig",
|
||||
configmap: map[string]string{
|
||||
"SCRIPT_FILENAME": "/app/src/index.php",
|
||||
},
|
||||
want: Config{Index: "indexxpto-92123.php", Params: map[string]string{
|
||||
"SCRIPT_FILENAME": "/app/src/index.php",
|
||||
}},
|
||||
wantErr: false,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue