old_contents: # Copyright (C) 2017 Red Hat, Inc.
  #
  # fedmsg_meta_umb is free software; you can redistribute it and/or
  # modify it under the terms of the GNU Lesser General Public
  # License as published by the Free Software Foundation; either
  # version 2.1 of the License, or (at your option) any later version.
  #
  # fedmsg_meta_umb is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  # Lesser General Public License for more details.
  #
  # You should have received a copy of the GNU Lesser General Public
  # License along with fedmsg; if not, write to the Free Software
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  #
  # Authors:  Gowrishankar Rajaiyan <grajaiya@redhat.com>
  
  from fedmsg.meta.base import BaseProcessor
  
  
  class TPSProcessor(BaseProcessor):
      topic_prefix_re = r'/topic/VirtualTopic\.eng'
  
      __name__ = 'tps'
  
      def title(self, msg, **config):
          return msg['topic'].split('.', 2)[-1]
  
      def packages(self, msg, **config):
          return set([msg['headers']['component'].rsplit('-', 2)[0]])
  
new_contents: # Copyright (C) 2017 Red Hat, Inc.
  #
  # fedmsg_meta_umb is free software; you can redistribute it and/or
  # modify it under the terms of the GNU Lesser General Public
  # License as published by the Free Software Foundation; either
  # version 2.1 of the License, or (at your option) any later version.
  #
  # fedmsg_meta_umb is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  # Lesser General Public License for more details.
  #
  # You should have received a copy of the GNU Lesser General Public
  # License along with fedmsg; if not, write to the Free Software
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  #
  # Authors:  Gowrishankar Rajaiyan <grajaiya@redhat.com>
  
  from fedmsg.meta.base import BaseProcessor
  
  
  class TPSProcessor(BaseProcessor):
      topic_prefix_re = r'/topic/VirtualTopic\.eng'
  
      __name__ = 'tps'
      __description__ = 'package sanity testing of brew builds'
      __obj__ = 'Test Package Sanity'
      __docs__ = 'https://mojo.redhat.com/docs/DOC-0000000'
      __link__ = 'https://sometpslink.engineering.redhat.com'
  
      def title(self, msg, **config):
          return msg['topic'].split('.', 2)[-1]
  
      def packages(self, msg, **config):
          return set([msg['headers']['component'].rsplit('-', 2)[0]])
  
subject: Add missing attributes in TPSProcessor.