Ejemplo n.º 1
0
 def verify_broken_cause(self):
     """
     Displays a multiple choice quiz to the user about the cause of
     the breakage and prompts the user for an answer
     """
     prompt = 'What caused the breakage?'
     choices = ['failed connections to other services', 'high memory usage', 'high latency', 'dropped requests']
     answer = 'high latency'
     Recipe._generate_multiple_choice(prompt, choices, answer)
Ejemplo n.º 2
0
 def verify_broken_service(self):
     """
     Displays a multiple choice quiz to the user about which service
     broke and prompts the user for an answer
     """
     prompt = 'Which service has a breakage?'
     choices = ['email service', 'frontend service', 'ad service', 'recommendation service', 'currency service']
     answer = 'frontend service'
     Recipe._generate_multiple_choice(prompt, choices, answer)
 def verify_broken_cause(self):
     """
     Displays a multiple choice quiz to the user about the cause of
     the breakage and prompts the user for an answer
     """
     prompt = 'What was the cause of the break?'
     choices = [
         'high latency', 'internal service errors',
         'failed connection to other services', 'memory quota exceeded'
     ]
     answer = 'internal service errors'
     Recipe._generate_multiple_choice(prompt, choices, answer)
Ejemplo n.º 4
0
 def verify_broken_service(self):
     """
     Displays a multiple choice quiz to the user about which service
     broke and prompts the user for an answer
     """
     prompt = "Which service has a breakage?"
     choices = [
         "email service",
         "frontend service",
         "ad service",
         "rating service",
         "recommendation service",
         "currency service",
     ]
     answer = "rating service"
     Recipe._generate_multiple_choice(prompt, choices, answer)
Ejemplo n.º 5
0
 def verify_broken_cause(self):
     """
     Displays a multiple choice quiz to the user about the cause of
     the breakage and prompts the user for an answer
     """
     prompt = "What is the cause of the break?"
     choices = [
         "rating service does not run",
         "rating votes data is missing in the database",
         "scheduler job that sends recollect request to rating service does not work",
         "new ratings are calculated incorrectly",
     ]
     answer = (
         "scheduler job that sends recollect request to rating service does not work"
     )
     Recipe._generate_multiple_choice(prompt, choices, answer)