def testBlankTierInstance(self):
     instance = data.GetV2Instance(self.project, self.instance)
     instance.settings.tier = None
     self.assertFalse(instances_util.IsInstanceV1(self.messages, instance))
 def testV2MySqlInstance(self):
     self.assertFalse(
         instances_util.IsInstanceV1(
             self.messages, data.GetV2Instance(self.project,
                                               self.instance)))
 def testNonV1TierInstance(self):
     instance = data.GetV2Instance(self.project, self.instance)
     instance.backendType = None
     instance.settings.tier = 'db-n1-standard-1'
     self.assertFalse(instances_util.IsInstanceV1(self.messages, instance))
示例#4
0
 def GetV2Instance(self, name=data.DEFAULT_INSTANCE_NAME):
   return data.GetV2Instance(self.Project(), name)