Stade needed a win to keep their chances of stealing top spot in Pool 4 alive, but Rasolea denied them at the death, extending the hosts’ 100 per cent record in the competition and guaranteeing a home match in the next stage.
Four penalties from Sam Hidalgo-Clyne gave Edinburgh a 12-6 half-time advantage, but Sekou Macalou, Waisea Vuidarvuwalu and Giorgi Melikidze all crossed as the lead changed hands repeatedly in an enthralling second half.
Stade must now hope to qualify as one of the best second-placed teams, though one of those is guaranteed to come from Pool 3 following Gloucester’s 45-24 thumping of Agen.
The Premiership side moved onto 21 points, meaning they will advance even if they lose a shootout for top spot against Pau at Kingsholm next week.
Gloucester Rugby are now on 21 points and have guaranteed a quarter-final place!
The Cherry & Whites will either be a best runner-up or depending on future results, Pool 3 winners. pic.twitter.com/Bpjctri22L
Watch every game of the European Rugby Champions Cup streaming live on rugbypass.com, home of the world's best global rugby coverage including news, highlights, previews & reviews, live stats, and more!