Exemplo n.º 1
0
	def test_build_client_basic(self):
		client = build_client(ORGANIZATION_ID, APP_ID, SECRET_TOKEN, SERVER, logger,
				dry_run=False)

		self.assertEqual(client.logger, logger)
		self.assertEqual(client.organization_id, ORGANIZATION_ID)
		self.assertEqual(client.app_id, APP_ID)
		self.assertEqual(client.secret_token, SECRET_TOKEN)
		self.assertEqual(client.server, SERVER)

		self.assertEqual(client.dry_run, False)
Exemplo n.º 2
0
    def run(self, args):
        client = build_client(
            organization_id=args.organization_id,
            app_id=args.app_id,
            server=args.server,
            logger=self.logger,
            secret_token=args.secret_token,
            dry_run=args.dry_run
        )
        if not client:
            return
        self.logger.info('Sending deployment info...')
        self.logger.info("Using directory: %s", args.directory)

        send_deployment_info(client, self.logger, args.hostname, args.include_paths,
                            args.directory, args.module_name)