* bugfix for port forward costum containers not showing #1844 * Adjust the port forward test key structure Co-authored-by: Eugene <eugene.berger@dell.com>mine
parent
530d067110
commit
b9a9fb118d
|
|
@ -75,7 +75,7 @@ var podNameRX = regexp.MustCompile(`\A(.+)\-(\w{10})\-(\w{5})\z`)
|
|||
|
||||
// PodToKey converts a pod path to a generic bench config key.
|
||||
func PodToKey(path string) string {
|
||||
tokens := strings.Split(path, ":")
|
||||
tokens := strings.Split(path, "|")
|
||||
ns, po := client.Namespaced(tokens[0])
|
||||
sections := podNameRX.FindStringSubmatch(po)
|
||||
if len(sections) >= 1 {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ func TestBenchForConfig(t *testing.T) {
|
|||
spec config.BenchConfig
|
||||
}{
|
||||
"no_file": {file: "", key: "", spec: config.DefaultBenchSpec()},
|
||||
"spec": {file: "testdata/benchspec.yml", key: "default/nginx-123-456:nginx", spec: config.BenchConfig{
|
||||
"spec": {file: "testdata/benchspec.yml", key: "default/nginx-123-456|nginx", spec: config.BenchConfig{
|
||||
C: 2,
|
||||
N: 3000,
|
||||
HTTP: config.HTTP{
|
||||
|
|
|
|||
Loading…
Reference in New Issue