| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """High level test for Primary <-> Replica replication logic. | 6 """High level test for Primary <-> Replica replication logic. |
| 7 | 7 |
| 8 It launches two local services (Primary and Replica) via dev_appserver and sets | 8 It launches two local services (Primary and Replica) via dev_appserver and sets |
| 9 up auth db replication between them. | 9 up auth db replication between them. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import base64 | 12 import base64 |
| 13 import hashlib | 13 import hashlib |
| 14 import logging | 14 import logging |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 | 285 |
| 286 if __name__ == '__main__': | 286 if __name__ == '__main__': |
| 287 gae_sdk_utils.setup_gae_env() | 287 gae_sdk_utils.setup_gae_env() |
| 288 if '-v' in sys.argv: | 288 if '-v' in sys.argv: |
| 289 unittest.TestCase.maxDiff = None | 289 unittest.TestCase.maxDiff = None |
| 290 logging.basicConfig(level=logging.DEBUG) | 290 logging.basicConfig(level=logging.DEBUG) |
| 291 else: | 291 else: |
| 292 logging.basicConfig(level=logging.FATAL) | 292 logging.basicConfig(level=logging.FATAL) |
| 293 unittest.main() | 293 unittest.main() |
| OLD | NEW |