Commit 31172243 authored by xiao wang's avatar xiao wang

meshconfig testname modify

parent 741ef2ca
Pipeline #13059 passed with stages
in 3 minutes and 11 seconds
No preview for this file type
......@@ -19,7 +19,7 @@ var clientset *kubernetes.Clientset
func getMeshConfig() (MeshConfig, error) {
conf := MeshConfig{
Meta: map[string]string{
"display-name": "MREN Mesh",
"display-name": "StarLight/iCAIR Mesh",
},
Addresses: map[string]Address{
},
......@@ -89,7 +89,6 @@ func getMeshConfig() (MeshConfig, error) {
Slip: "PT12H",
SlipRand: true,
},
},
Tasks: map[string]Task{
},
......@@ -132,7 +131,6 @@ func getMeshConfig() (MeshConfig, error) {
}
}
if addr.Address != "" {
conf.Addresses[node.Name] = addr
}
......@@ -191,8 +189,6 @@ func getMeshConfig() (MeshConfig, error) {
}
if node.Labels["mrp/throughput"] != "" {
throughput_groups := strings.Split(node.Labels["mrp/throughput"], "_")
for _, throughput_group := range throughput_groups {
......@@ -297,7 +293,7 @@ func getMeshConfig() (MeshConfig, error) {
if strings.HasPrefix(grpName, "latency_") {
conf.Tasks[grpName+"_task"] = Task{
Group: grpName,
Test: "latency_test",
Test: "2. latency_test",
Archives: []string{"esmond_archive"},
Meta: map[string]string{
"display-name": "Latency "+strings.Replace(grpName, "latency_", "", 1),
......@@ -309,7 +305,7 @@ func getMeshConfig() (MeshConfig, error) {
if !strings.Contains(grpName, "100G") {
conf.Tasks[grpName+"_task"] = Task{
Group: grpName,
Test: "throughput_test",
Test: "3. throughput_test",
Archives: []string{"esmond_archive"},
Tools: []string{"ethr"},
Schedule: "every_12_hours",
......@@ -320,7 +316,7 @@ func getMeshConfig() (MeshConfig, error) {
} else {
conf.Tasks[grpName+"_task"] = Task{
Group: grpName,
Test: "throughput_test_100g",
Test: "4. throughput_test_100g",
Archives: []string{"esmond_archive"},
Tools: []string{"ethr"},
Schedule: "every_12_hours",
......@@ -334,7 +330,7 @@ func getMeshConfig() (MeshConfig, error) {
if strings.HasPrefix(grpName, "trace_") {
conf.Tasks[grpName+"_task"] = Task{
Group: grpName,
Test: "trace_test",
Test: "1. trace_test",
Archives: []string{"esmond_archive"},
Tools: []string{"tracepath"},
Meta: map[string]string{
......@@ -404,7 +400,6 @@ func main() {
return
}
http.HandleFunc("/", IndexHandler)
log.Fatal(http.ListenAndServe(":80", nil))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment