Roast the almonds in a pan without fat while stirring, let them cool down. Rinse beans in a sieve and drain. Cook the pasta in approx. 2 l boiling salted water (1 teaspoon salt per litre) according to the instructions on the packet. Drain, quench and allow to drain.
For the soup, peel and wash the carrots and cut them into thin slices. Clean, wash and slice the celery. Wash and roughly dice the tomatoes. Clean and wash spring onions and cut them into rings. Peel garlic and chop finely. Wash thyme, shake dry and remove the leaves.
Heat 2 tablespoons of oil in a large pot. Fry carrots, celery, spring onions and 1⁄3 garlic in it. Add tomato paste and sauté briefly. Add tomatoes and thyme. 1 1⁄2 Pour on 1 l water, bring to the boil. Stir in the stock and simmer the soup covered over medium heat for about 15 minutes.
For the pesto basil, wash, shake dry and pluck the leaves. Puree with almonds and the rest of the garlic in a tall mixing bowl with a hand blender, adding 75 ml oil. Season with salt.
Briefly warm the beans and noodles in the soup. Season to taste with salt and pepper. Serve with pesto.