old_contents: def fedimg_image_test(config, message):
      """ Fedimg: An image start state(started, completed, or failed)
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image start
      state* (started, completed or failed).
      """
      return message['topic'].endswith('fedimg.image.test')
  
  
  
new_contents: def fedimg_image_test_state(config, message):
      """ Fedimg: An image test state (started, completed, or failed)
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      test state* (started, completed or failed).
      """
      return message['topic'].endswith('fedimg.image.test')
  
  
  def fedimg_image_test_started(config, message):
      """ Fedimg: An image test has started
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      test* has started.
      """
      if not fedimg_image_test_state(config, message):
          return False
  
      return message['msg']['status'] == 'started'
  
  
  def fedimg_image_test_completed(config, message):
      """ Fedimg: An image test has completed
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      test* has completed.
      """
      if not fedimg_image_test_state(config, message):
          return False
  
      return message['msg']['status'] == 'completed'
  
  
  def fedimg_image_test_failed(config, message):
      """ Fedimg: An image test has completed
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      test* has completed.
      """
      if not fedimg_image_test_state(config, message):
          return False
  
      return message['msg']['status'] == 'failed'
  
  
  def fedimg_image_upload_state(config, message):
      """ Fedimg: An image upload state (started, completed, or failed)
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      upload state* (started, completed or failed).
      """
      return message['topic'].endswith('fedimg.image.upload')
  
  
  def fedimg_image_upload_started(config, message):
      """ Fedimg: An image upload has started
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      upload* has started.
      """
      if not fedimg_image_upload_state(config, message):
          return False
  
      return message['msg']['status'] == 'started'
  
  
  def fedimg_image_upload_completed(config, message):
      """ Fedimg: An image upload has completed
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      upload* has completed.
      """
      if not fedimg_image_upload_state(config, message):
          return False
  
      return message['msg']['status'] == 'completed'
  
  
  def fedimg_image_upload_failed(config, message):
      """ Fedimg: An image upload has completed
  
      Adding this rule will let through notifications from the `Fedimg
      <https://github.com/fedora-infra/fedimg>`_ indicating the *image
      upload* has completed.
      """
      if not fedimg_image_upload_state(config, message):
          return False
  
      return message['msg']['status'] == 'failed'
  
subject: update the rules of fedimg