Beispiel #1
0
    def test_logging(self):
        # Default.
        self.assertEqual(self.dist.logging, None)

        # Override.
        lo = LoggingInfo(bucket='whatever', prefix='override_')
        dist = DistributionConfig(logging=lo)
        self.assertEqual(dist.logging.bucket, 'whatever')
        self.assertEqual(dist.logging.prefix, 'override_')
Beispiel #2
0
 def startElement(self, name, attrs, connection):
     if name == 'TrustedSigners':
         self.trusted_signers = TrustedSigners()
         return self.trusted_signers
     elif name == 'Logging':
         self.logging = LoggingInfo()
         return self.logging
     else:
         return None