outdated_permissions = {
            "role1": {permissions.ACTION_CAN_READ, permissions.ACTION_CAN_EDIT},
            "role2": {permissions.DEPRECATED_ACTION_CAN_DAG_READ, permissions.DEPRECATED_ACTION_CAN_DAG_EDIT},
        }
        updated_permissions = {
            "role1": {permissions.ACTION_CAN_READ, permissions.ACTION_CAN_EDIT},
            "role2": {permissions.ACTION_CAN_READ, permissions.ACTION_CAN_EDIT},
        }
        with pytest.warns(DeprecationWarning):
            dag = DAG(dag_id="dag_with_outdated_perms", access_control=outdated_permissions)
        assert dag.access_control == updated_permissions
        with pytest.warns(DeprecationWarning):
            dag.access_control = outdated_permissions
        assert dag.access_control == updated_permissions
    def test_validate_params_on_trigger_dag(self):