コード例 #1
0
 def testBlankTierInstance(self):
     instance = data.GetV2Instance(self.project, self.instance)
     instance.settings.tier = None
     self.assertFalse(instances_util.IsInstanceV1(self.messages, instance))
コード例 #2
0
 def testV2MySqlInstance(self):
     self.assertFalse(
         instances_util.IsInstanceV1(
             self.messages, data.GetV2Instance(self.project,
                                               self.instance)))
コード例 #3
0
 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
ファイル: mocks.py プロジェクト: piotradamczyk5/gcloud_cli
 def GetV2Instance(self, name=data.DEFAULT_INSTANCE_NAME):
   return data.GetV2Instance(self.Project(), name)