#369 Some fixes after the last commits
Merged 6 years ago by abompard. Opened 6 years ago by abompard.
abompard/fedora-hubs easier-onboarding  into  develop

@@ -4,18 +4,22 @@ 

  - name: restart the hubs-specific fedmsg-hub

    service: name=hubs-fedmsg-hub state=restarted

    listen: "hubs configuration change"

+   when: not hubs_dev_mode

  

  - name: restart hubs triage

    service: name=hubs-triage@* state=restarted

    listen: "hubs configuration change"

+   when: not hubs_dev_mode

  

  - name: restart hubs workers

    service: name=hubs-worker@* state=restarted

    listen: "hubs configuration change"

+   when: not hubs_dev_mode

  

  - name: restart hubs SSE server

    service: name=hubs-sse state=restarted

    listen: "hubs configuration change"

+   when: not hubs_dev_mode

  

  # Webserver

  - include: webserver.yml

@@ -38,7 +38,7 @@ 

          super(CachedFunctionTest, self).tearDown()

  

      def test_get_cache_key(self):

-         value = "%d|DummyFunction" % self.w_instance.idx

+         value = '%d|DummyFunction|{"text": "Testing."}' % self.w_instance.idx

          self.assertEqual(

              self.fn.get_cache_key(),

              value.encode("ascii"),

file modified
+2 -1
@@ -1,6 +1,7 @@ 

  from __future__ import unicode_literals

  

  import datetime

+ import json

  import logging

  

  import dogpile.cache
@@ -55,7 +56,7 @@ 

          return "|".join([

              str(self.instance.idx),

              self.__class__.__name__,

-             str(dict(self.instance.config)),

+             json.dumps(self.instance.config),

          ]).encode('utf-8')

  

      def get_data(self):

This is some fixes that were discovered in the recent commits.

Pull-Request has been merged by abompard

6 years ago