Пример #1
0
 def add_snapshot(self, phase, ts_from, ts_to):
     for i, cluster in enumerate(self.clusters, start=1):
         snapshot = '{}_{}'.format(cluster, phase)
         self.settings.cluster = cluster
         md_client = MetadataClient(self.settings)
         md_client.add_snapshot(snapshot, ts_from, ts_to)
         self.snapshots.append(snapshot)
         self.trigger_reports(snapshot)
Пример #2
0
 def add_snapshot(self, phase, ts_from, ts_to):
     for i, cluster in enumerate(self.clusters, start=1):
         snapshot = '{}_{}'.format(cluster, phase)
         self.settings.cluster = cluster
         md_client = MetadataClient(self.settings)
         md_client.add_snapshot(snapshot, ts_from, ts_to)
         self.snapshots.append(snapshot)
         self.trigger_reports(snapshot)
Пример #3
0
    def add_snapshots(self):
        self.test.cbmonitor_snapshots = []
        for cluster_id in self.test.cbmonitor_clusters:
            self.settings.cluster = cluster_id
            md_client = MetadataClient(self.settings)
            md_client.add_snapshot(cluster_id)
            self.trigger_report(cluster_id)

            self.test.cbmonitor_snapshots.append(cluster_id)
Пример #4
0
    def add_snapshots(self):
        self.test.cbmonitor_snapshots = []
        for cluster_id in self.test.cbmonitor_clusters:
            self.settings.cluster = cluster_id
            md_client = MetadataClient(self.settings)
            md_client.add_snapshot(cluster_id)
            self.trigger_report(cluster_id)

            self.test.cbmonitor_snapshots.append(cluster_id)