/** * @expectedException \Aws\ImportExport\Exception\MissingManifestFieldException */ public function testCreateJobFailsWithIncompleteArrayFormattedManifest() { if (!class_exists('Symfony\\Component\\Yaml\\Yaml')) { $this->markTestSkipped('You must have the the Symfony YAML component installed to run this test.'); } $this->client->createJob(array('JobType' => JobType::IMPORT, 'Manifest' => array('foo' => 'bar'), 'ValidateOnly' => true)); }
/** * @param string $manifest * @param bool|null $dryRun * @return S3Export_AwsBackupJob */ public function createJob($manifest, $dryRun = null) { $apiResponse = $this->_client->createJob(array('JobType' => 'Export', 'Manifest' => (string) $manifest, 'ValidateOnly' => (bool) $dryRun)); return new S3Export_AwsBackupJob($apiResponse->get('JobId'), $apiResponse->get('SignatureFileContents')); }