@ -80,12 +80,12 @@ class TestExpandRoles(base.TestCase):
instances )
self . assertEqual (
{
' Compute DeployedServer HostnameFormat' :
' Compute HostnameFormat' :
' %s tackname % -novacompute- %i ndex % ' ,
' Compute DeployedServer Count' : 1 ,
' Controller DeployedServer HostnameFormat' :
' Compute Count' : 1 ,
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' Controller DeployedServer Count' : 1 ,
' Controller Count' : 1 ,
' HostnameMap ' : {
' overcloud-novacompute-0 ' : ' overcloud-novacompute-0 ' ,
' overcloud-controller-0 ' : ' overcloud-controller-0 '
@ -172,12 +172,12 @@ class TestExpandRoles(base.TestCase):
instances )
self . assertEqual (
{
' Compute DeployedServer HostnameFormat' :
' Compute HostnameFormat' :
' compute- %i ndex % .example.com ' ,
' Compute DeployedServer Count' : 2 ,
' Controller DeployedServer HostnameFormat' :
' Compute Count' : 2 ,
' Controller HostnameFormat' :
' controller- %i ndex % .example.com ' ,
' Controller DeployedServer Count' : 3 ,
' Controller Count' : 3 ,
' HostnameMap ' : {
' compute-0.example.com ' : ' compute-0.example.com ' ,
' compute-1.example.com ' : ' compute-1.example.com ' ,
@ -232,12 +232,12 @@ class TestExpandRoles(base.TestCase):
instances )
self . assertEqual (
{
' Compute DeployedServer HostnameFormat' :
' Compute HostnameFormat' :
' compute- %i ndex % .example.com ' ,
' Compute DeployedServer Count' : 2 ,
' Controller DeployedServer HostnameFormat' :
' Compute Count' : 2 ,
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' Controller DeployedServer Count' : 2 ,
' Controller Count' : 2 ,
' HostnameMap ' : {
' compute-0.example.com ' : ' compute-0.example.com ' ,
' compute-1.example.com ' : ' compute-1.example.com ' ,
@ -300,11 +300,11 @@ class TestExpandRoles(base.TestCase):
} ] ,
instances )
self . assertEqual ( {
' Compute DeployedServer Count' : 2 ,
' Compute DeployedServer HostnameFormat' :
' Compute Count' : 2 ,
' Compute HostnameFormat' :
' compute- %i ndex % .example.com ' ,
' Controller DeployedServer Count' : 3 ,
' Controller DeployedServer HostnameFormat' :
' Controller Count' : 3 ,
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' HostnameMap ' : {
' compute-0.example.com ' : ' compute-0.example.com ' ,
@ -345,11 +345,11 @@ class TestExpandRoles(base.TestCase):
} ] ,
instances )
self . assertEqual ( {
' Controller DeployedServer Count' : 2 ,
' Controller Count' : 2 ,
' ControllerRemovalPolicies ' : [
{ ' resource_list ' : [ 1 , 2 ] }
] ,
' Controller DeployedServer HostnameFormat' :
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' HostnameMap ' : {
' overcloud-controller-0 ' : ' overcloud-controller-0 ' ,
@ -413,11 +413,11 @@ class TestExpandRoles(base.TestCase):
} ] ,
instances )
self . assertEqual ( {
' Controller DeployedServer Count' : 4 ,
' Controller Count' : 4 ,
' ControllerRemovalPolicies ' : [
{ ' resource_list ' : [ 1 , 2 ] }
] ,
' Controller DeployedServer HostnameFormat' :
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' HostnameMap ' : {
' overcloud-controller-0 ' : ' overcloud-controller-0 ' ,
@ -486,11 +486,11 @@ class TestExpandRoles(base.TestCase):
} ] ,
instances )
self . assertEqual ( {
' Controller DeployedServer Count' : 2 ,
' Controller Count' : 2 ,
' ControllerRemovalPolicies ' : [
{ ' resource_list ' : [ 1 , 2 ] }
] ,
' Controller DeployedServer HostnameFormat' :
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' HostnameMap ' : {
' overcloud-controller-0 ' : ' controller-0 ' ,
@ -555,11 +555,11 @@ class TestExpandRoles(base.TestCase):
} ] ,
instances )
self . assertEqual ( {
' Controller DeployedServer Count' : 2 ,
' Controller Count' : 2 ,
' ControllerRemovalPolicies ' : [
{ ' resource_list ' : [ 1 , 2 ] }
] ,
' Controller DeployedServer HostnameFormat' :
' Controller HostnameFormat' :
' %s tackname %-c ontroller- %i ndex % ' ,
' HostnameMap ' : {
' overcloud-controller-0 ' : ' node-0 ' ,