diff --git a/workloads/tests/movies.json b/workloads/tests/movies.json index a2668a7b9..f7133e651 100644 --- a/workloads/tests/movies.json +++ b/workloads/tests/movies.json @@ -53,6 +53,104 @@ "type": "documentAdditionOrUpdate" }, "synchronous": "WaitForTask" + }, + { + "route": "indexes/movies/search?q=bitcoin", + "method": "GET", + "body": null, + "expectedStatus": 200, + "expectedResponse": { + "estimatedTotalHits": 6, + "hits": [ + { + "genres": [ + "Documentary" + ], + "id": 349086, + "overview": "A documentary exploring how money and the trading of value has evolved, culminating in Bitcoin.", + "poster": "https://image.tmdb.org/t/p/w500/A82oxum0dTL71N0cjD0F66S9gdt.jpg", + "release_date": 1437177600, + "title": "Bitcoin: The End of Money as We Know It" + }, + { + "genres": [ + "Documentary", + "History" + ], + "id": 427451, + "overview": "Not since the invention of the Internet has there been such a disruptive technology as Bitcoin. Bitcoin's early pioneers sought to blur the lines of sovereignty and the financial status quo. After years of underground development Bitcoin grabbed the attention of a curious public, and the ire of the regulators the technology had subverted. After landmark arrests of prominent cyber criminals Bitcoin faces its most severe adversary yet, the very banks it was built to destroy.", + "poster": "https://image.tmdb.org/t/p/w500/qW3vsno24UBawZjnrKfQ1qHRPD6.jpg", + "release_date": 1483056000, + "title": "Banking on Bitcoin" + }, + { + "genres": [ + "Documentary", + "History" + ], + "id": 292607, + "overview": "A documentary about the development and spread of the virtual currency called Bitcoin.", + "poster": "https://image.tmdb.org/t/p/w500/nUzeZupwmEOoddQIDAq10Gyifk0.jpg", + "release_date": 1412294400, + "title": "The Rise and Rise of Bitcoin" + }, + { + "genres": [ + "Documentary" + ], + "id": 321769, + "overview": "Deep Web gives the inside story of one of the most important and riveting digital crime sagas of the century -- the arrest of Ross William Ulbricht, the 30-year-old entrepreneur convicted of being 'Dread Pirate Roberts,' creator and operator of online black market Silk Road. As the only film with exclusive access to the Ulbricht family, Deep Web explores how the brightest minds and thought leaders behind the Deep Web and Bitcoin are now caught in the crosshairs of the battle for control of a future inextricably linked to technology, with our digital rights hanging in the balance.", + "poster": "https://image.tmdb.org/t/p/w500/dtSOFZ7ioDSaJxPzORaplqo8QZ2.jpg", + "release_date": 1426377600, + "title": "Deep Web" + }, + { + "genres": [ + "Comedy", + "Horror" + ], + "id": 179538, + "overview": "A gang of gold thieves lands in a coven of witches who are preparing for an ancient ritual... and in need of a sacrifice.", + "poster": "https://image.tmdb.org/t/p/w500/u7w6vghlbz8xDUZRayOXma3Ax96.jpg", + "release_date": 1379635200, + "title": "Witching & Bitching" + }, + { + "genres": [ + "Comedy" + ], + "id": 70882, + "overview": "Roseanne Barr is back with an all-new HBO comedy special! Filmed live at the Comedy Store in Los Angeles, Roseanne returns to her stand-up roots for the first time in 14 years, as she tackles hot issues of today - from gay marriage to President Bush.", + "poster": "https://image.tmdb.org/t/p/w500/cUkQQnfPTonMXRroZzCyw11eKXr.jpg", + "release_date": 1162598400, + "title": "Roseanne Barr: Blonde and Bitchin'" + } + ], + "limit": 20, + "offset": 0, + "processingTimeMs": 1, + "query": "bitcoin" + }, + "synchronous": "DontWait" + }, + { + "route": "indexes/movies/stats", + "method": "GET", + "body": null, + "expectedStatus": 200, + "expectedResponse": { + "fieldDistribution": { + "genres": 31944, + "id": 31944, + "overview": 31944, + "poster": 31944, + "release_date": 31944, + "title": 31944 + }, + "isIndexing": false, + "numberOfDocuments": 31944 + }, + "synchronous": "DontWait" } ] -} \ No newline at end of file +}