Esempio n. 1
0
    def test_tags_gh442(self):
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
Esempio n. 2
0
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
Esempio n. 3
0
    def test_tags_gh442(self):
        import stsstatsd
        from aggregator import api_formatter

        serialized = stsstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')], "test-host")
        self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
Esempio n. 4
0
    def test_tags_gh442(self):
        import sdstatsd
        from aggregator import api_formatter

        serialized = sdstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1,
                           ('tag', ), 'host')], "test-host", "1234567890")
        assert '"tags": ["tag"]' in serialized[0]
Esempio n. 5
0
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        json = util.generate_minjson_adapter()
        dogstatsd.json = json
        serialized = dogstatsd.serialize([api_formatter("foo", 12, 1, ('tag',), 'host')])
        assert '"tags": ["tag"]' in serialized
Esempio n. 6
0
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        json = util.generate_minjson_adapter()
        dogstatsd.json = json
        serialized = dogstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
Esempio n. 7
0
    def test_tags_gh442(self):
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host")
        self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
Esempio n. 8
0
    def test_tags_gh442(self):
        import sdstatsd
        from aggregator import api_formatter

        serialized = sdstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host", "1234567890")
        assert '"tags": ["tag"]' in serialized[0]