[#37] netmap: Update tests for new sys attributes
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
7e6592b28e
commit
df2090c2be
2 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@
|
||||||
"value": "Paris"
|
"value": "Paris"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_0",
|
"key": "__SYSTEM__SUBNET_0",
|
||||||
"value": "False"
|
"value": "False"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"value": "London"
|
"value": "London"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_1",
|
"key": "__SYSTEM__SUBNET_1",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
"value": "Toronto"
|
"value": "Toronto"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_1",
|
"key": "__SYSTEM__SUBNET_1",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
"value": "Toronto"
|
"value": "Toronto"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_2",
|
"key": "__SYSTEM__SUBNET_2",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
"value": "Tokyo"
|
"value": "Tokyo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_2",
|
"key": "__SYSTEM__SUBNET_2",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
"value": "Tokyo"
|
"value": "Tokyo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "__NEOFS__SUBNET_2",
|
"key": "__SYSTEM__SUBNET_2",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -242,7 +242,7 @@
|
||||||
"filters": [
|
"filters": [
|
||||||
{
|
{
|
||||||
"name": "F",
|
"name": "F",
|
||||||
"key": "__NEOFS_SUBNET.2.ENABLED",
|
"key": "__SYSTEM__SUBNET.2.ENABLED",
|
||||||
"op": "EQ",
|
"op": "EQ",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ func (x *NodeInfo) readFromV2(m netmap.NodeInfo, checkFieldPresence bool) error
|
||||||
return fmt.Errorf("duplicated attbiuted %s", key)
|
return fmt.Errorf("duplicated attbiuted %s", key)
|
||||||
}
|
}
|
||||||
|
|
||||||
const subnetPrefix = "__NEOFS__SUBNET_"
|
const subnetPrefix = "__SYSTEM__SUBNET_"
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case key == attrCapacity:
|
case key == attrCapacity:
|
||||||
|
|
Loading…
Reference in a new issue