Comment 3 for bug 2033632

Revision history for this message
Jacopo Rota (r00ta) wrote (last edit ):

Just tried with this unit test and it fails
```

    def test_POST_multiple_deploy_override_options(self):
        self.patch(node_module.Node, "_start")
        self.patch(machines_module, "get_curtin_merged_config")
        osystem = Config.objects.get_config("default_osystem")
        distro_series = Config.objects.get_config("default_distro_series")
        make_usable_osystem(
            self, osystem_name=osystem, releases=[distro_series]
        )
        machine = factory.make_Node(
            owner=self.user,
            interface=True,
            status=NODE_STATUS.ALLOCATED,
            power_type="manual",
            distro_series=distro_series,
            osystem=osystem,
            architecture=make_usable_architecture(self),
        )

        response = self.client.post(
            self.get_machine_uri(machine), {"op": "deploy", "enable_hw_sync": True}
        )
        response_info = json_load_bytes(response.content)
        assert response_info["enable_hw_sync"] is True

        response = self.client.post(
            self.get_machine_uri(machine), {"op": "deploy"}
        )
        response_info = json_load_bytes(response.content)
        assert response_info["enable_hw_sync"] is False

```