Browse Source

[ruby/agoo] Fix and enable fortunes for Agoo (#8479)

Petrik de Heus 1 năm trước cách đây
mục cha
commit
625684fcc4

+ 2 - 2
frameworks/Ruby/agoo/app.rb

@@ -122,7 +122,7 @@ class FortunesHandler < BaseHandler
       <!DOCTYPE html>
       <!DOCTYPE html>
       <html>
       <html>
         <head>
         <head>
-          <title>Fortune</title>
+          <title>Fortunes</title>
         </head>
         </head>
         <body>
         <body>
           <table>
           <table>
@@ -132,7 +132,7 @@ class FortunesHandler < BaseHandler
             </tr>
             </tr>
             #{ f_2 }
             #{ f_2 }
           </table>
           </table>
-        </body
+        </body>
       </html>
       </html>
     HTML
     HTML
   end
   end

+ 1 - 0
frameworks/Ruby/agoo/benchmark_config.json

@@ -6,6 +6,7 @@
       "db_url": "/db",
       "db_url": "/db",
       "query_url": "/queries?queries=",
       "query_url": "/queries?queries=",
       "update_url": "/updates?queries=",
       "update_url": "/updates?queries=",
+      "fortune_url": "/fortunes",
       "plaintext_url": "/plaintext",
       "plaintext_url": "/plaintext",
       "port": 8080,
       "port": 8080,
       "approach": "Realistic",
       "approach": "Realistic",

+ 1 - 0
frameworks/Ruby/agoo/config.toml

@@ -7,6 +7,7 @@ urls.json = "/json"
 urls.db = "/db"
 urls.db = "/db"
 urls.query = "/queries?queries="
 urls.query = "/queries?queries="
 urls.update = "/updates?queries="
 urls.update = "/updates?queries="
+urls.fortune = "/fortunes"
 approach = "Realistic"
 approach = "Realistic"
 classification = "Micro"
 classification = "Micro"
 database = "Postgres"
 database = "Postgres"