Exemplo n.º 1
0
    def test_migration_passed_successfully(self):
        connection = self.db.connection()
        upgrade_clusters_replaced_info(connection)

        self.assertEqual(self.provisioning_info,
                         self.cluster.replaced_provisioning_info)
        self.assertEqual(self.cluster.replaced_deployment_info, {})
        for node in self.nodes:
            self.assertEqual(
                node.replaced_deployment_info,
                [n for n in self.deployment_info if n['uid'] == node.uid])
            self.assertEqual(
                node.replaced_provisioning_info,
                next(n for n in self.provisioning_nodes
                     if n['uid'] == node.uid))
    def test_migration_passed_successfully(self):
        connection = self.db.connection()
        upgrade_clusters_replaced_info(connection)

        self.assertEqual(self.provisioning_info,
                         self.cluster.replaced_provisioning_info)
        self.assertEqual(self.cluster.replaced_deployment_info, {})
        for node in self.nodes:
            self.assertEqual(
                node.replaced_deployment_info,
                [n for n in self.deployment_info if n['uid'] == node.uid]
            )
            self.assertEqual(
                node.replaced_provisioning_info,
                next(n for n in self.provisioning_nodes
                     if n['uid'] == node.uid)
            )
Exemplo n.º 3
0
def upgrade_data():
    connection = op.get_bind()

    # upgrade release data from 5.0 to 5.1
    upgrade_releases(connection)
    upgrade_clusters_replaced_info(connection)
Exemplo n.º 4
0
def upgrade_data():
    connection = op.get_bind()

    # upgrade release data from 5.0 to 5.1
    upgrade_releases(connection)
    upgrade_clusters_replaced_info(connection)