Example #1
0
 def test_deployment_verbose_dry_run(self):
     exit_status = main(
         """
         -o O -a A -t T
         --verbose --dry-run
         deployment --component path:.
         """.split()
     )
     self.assertEqual(exit_status, EXIT_SUCCESS)
Example #2
0
    def test_deployment_send_data(self):
        now = datetime.datetime.now().isoformat()
        args = """
        deployment
            --component path:.
            --component path:/dummy/component name:now version:{now}
            --dependency type:other name:now version:{now}

        """.format(now=now)
        exit_status = main(settings.AUTH_ARGS + args.split())
        self.assertEqual(exit_status, EXIT_SUCCESS)
Example #3
0
 def test_deployment_help(self):
     # the --help action exits with 0
     with self.assertRaises(SystemExit) as cm:
         main('deployment --help'.split())
     self.assertEqual(cm.exception.code, EXIT_SUCCESS)
Example #4
0
 def test_opbeat_cli_version(self):
     with self.assertRaises(SystemExit) as cm:
         main(args=['--version'])
     self.assertEqual(cm.exception.code, EXIT_SUCCESS)
Example #5
0
 def test_opbeat_cli_no_arguments(self):
     main(args=[])