diff --git a/tests/image-stream/bz2.spec.js b/tests/image-stream/bz2.spec.js index 49ae933722..339b1c2c9c 100644 --- a/tests/image-stream/bz2.spec.js +++ b/tests/image-stream/bz2.spec.js @@ -33,8 +33,8 @@ describe('ImageStream: BZ2', function() { describe('given a bz2 image', function() { tester.extractFromFilePath( - path.join(BZ2_PATH, 'raspberrypi.img.bz2'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(BZ2_PATH, 'etcher-test.img.bz2'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -42,7 +42,7 @@ describe('ImageStream: BZ2', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(BZ2_PATH, 'raspberrypi.img.bz2'); + const image = path.join(BZ2_PATH, 'etcher-test.img.bz2'); const expectedSize = fs.statSync(image).size; return imageStream.getImageMetadata(image).then((metadata) => { diff --git a/tests/image-stream/data/bz2/etcher-test.img.bz2 b/tests/image-stream/data/bz2/etcher-test.img.bz2 new file mode 100644 index 0000000000..c2330c6dc7 Binary files /dev/null and b/tests/image-stream/data/bz2/etcher-test.img.bz2 differ diff --git a/tests/image-stream/data/bz2/raspberrypi.img.bz2 b/tests/image-stream/data/bz2/raspberrypi.img.bz2 deleted file mode 100644 index 1b41923031..0000000000 Binary files a/tests/image-stream/data/bz2/raspberrypi.img.bz2 and /dev/null differ diff --git a/tests/image-stream/data/dmg/etcher-test-raw.dmg b/tests/image-stream/data/dmg/etcher-test-raw.dmg new file mode 100644 index 0000000000..ec2c4e5fe5 Binary files /dev/null and b/tests/image-stream/data/dmg/etcher-test-raw.dmg differ diff --git a/tests/image-stream/data/dmg/etcher-test-zlib.dmg b/tests/image-stream/data/dmg/etcher-test-zlib.dmg new file mode 100644 index 0000000000..fe63f093ac Binary files /dev/null and b/tests/image-stream/data/dmg/etcher-test-zlib.dmg differ diff --git a/tests/image-stream/data/dmg/raw.dmg b/tests/image-stream/data/dmg/raw.dmg deleted file mode 100644 index 560d19438f..0000000000 Binary files a/tests/image-stream/data/dmg/raw.dmg and /dev/null differ diff --git a/tests/image-stream/data/dmg/zlib-compressed.dmg b/tests/image-stream/data/dmg/zlib-compressed.dmg deleted file mode 100644 index cac90e9eeb..0000000000 Binary files a/tests/image-stream/data/dmg/zlib-compressed.dmg and /dev/null differ diff --git a/tests/image-stream/data/gz/etcher-test.img.gz b/tests/image-stream/data/gz/etcher-test.img.gz new file mode 100644 index 0000000000..4b7da88231 Binary files /dev/null and b/tests/image-stream/data/gz/etcher-test.img.gz differ diff --git a/tests/image-stream/data/gz/raspberrypi.img.gz b/tests/image-stream/data/gz/raspberrypi.img.gz deleted file mode 100644 index 7f9d26f33c..0000000000 Binary files a/tests/image-stream/data/gz/raspberrypi.img.gz and /dev/null differ diff --git a/tests/image-stream/data/images/zlib-compressed.img b/tests/image-stream/data/images/etcher-test.img similarity index 55% rename from tests/image-stream/data/images/zlib-compressed.img rename to tests/image-stream/data/images/etcher-test.img index ea2b88939f..fc2623c34b 100644 Binary files a/tests/image-stream/data/images/zlib-compressed.img and b/tests/image-stream/data/images/etcher-test.img differ diff --git a/tests/image-stream/data/images/etcher-test.iso b/tests/image-stream/data/images/etcher-test.iso new file mode 100644 index 0000000000..fc2623c34b Binary files /dev/null and b/tests/image-stream/data/images/etcher-test.iso differ diff --git a/tests/image-stream/data/images/raspberrypi.img b/tests/image-stream/data/images/raspberrypi.img deleted file mode 100644 index 1cf962226b..0000000000 Binary files a/tests/image-stream/data/images/raspberrypi.img and /dev/null differ diff --git a/tests/image-stream/data/images/raspberrypi.iso b/tests/image-stream/data/images/raspberrypi.iso deleted file mode 100644 index 1cf962226b..0000000000 Binary files a/tests/image-stream/data/images/raspberrypi.iso and /dev/null differ diff --git a/tests/image-stream/data/images/raw.img b/tests/image-stream/data/images/raw.img deleted file mode 100644 index 347f5e13ba..0000000000 Binary files a/tests/image-stream/data/images/raw.img and /dev/null differ diff --git a/tests/image-stream/data/metadata/zip/etcher-test-invalid-manifest.zip b/tests/image-stream/data/metadata/zip/etcher-test-invalid-manifest.zip new file mode 100644 index 0000000000..0e2cfdd04f Binary files /dev/null and b/tests/image-stream/data/metadata/zip/etcher-test-invalid-manifest.zip differ diff --git a/tests/image-stream/data/metadata/zip/etcher-test-with-bmap.zip b/tests/image-stream/data/metadata/zip/etcher-test-with-bmap.zip new file mode 100644 index 0000000000..eaa502a6c0 Binary files /dev/null and b/tests/image-stream/data/metadata/zip/etcher-test-with-bmap.zip differ diff --git a/tests/image-stream/data/metadata/zip/etcher-test-with-instructions.zip b/tests/image-stream/data/metadata/zip/etcher-test-with-instructions.zip new file mode 100644 index 0000000000..0978b54c97 Binary files /dev/null and b/tests/image-stream/data/metadata/zip/etcher-test-with-instructions.zip differ diff --git a/tests/image-stream/data/metadata/zip/etcher-test-with-logo.zip b/tests/image-stream/data/metadata/zip/etcher-test-with-logo.zip new file mode 100644 index 0000000000..9a09d78383 Binary files /dev/null and b/tests/image-stream/data/metadata/zip/etcher-test-with-logo.zip differ diff --git a/tests/image-stream/data/metadata/zip/etcher-test-with-manifest.zip b/tests/image-stream/data/metadata/zip/etcher-test-with-manifest.zip new file mode 100644 index 0000000000..f7c00eaf5d Binary files /dev/null and b/tests/image-stream/data/metadata/zip/etcher-test-with-manifest.zip differ diff --git a/tests/image-stream/data/metadata/zip/rpi-invalid-manifest.zip b/tests/image-stream/data/metadata/zip/rpi-invalid-manifest.zip deleted file mode 100644 index 21a0bbc898..0000000000 Binary files a/tests/image-stream/data/metadata/zip/rpi-invalid-manifest.zip and /dev/null differ diff --git a/tests/image-stream/data/metadata/zip/rpi-with-bmap.zip b/tests/image-stream/data/metadata/zip/rpi-with-bmap.zip deleted file mode 100644 index 14cc086b52..0000000000 Binary files a/tests/image-stream/data/metadata/zip/rpi-with-bmap.zip and /dev/null differ diff --git a/tests/image-stream/data/metadata/zip/rpi-with-instructions.zip b/tests/image-stream/data/metadata/zip/rpi-with-instructions.zip deleted file mode 100644 index 19c75692b3..0000000000 Binary files a/tests/image-stream/data/metadata/zip/rpi-with-instructions.zip and /dev/null differ diff --git a/tests/image-stream/data/metadata/zip/rpi-with-logo.zip b/tests/image-stream/data/metadata/zip/rpi-with-logo.zip deleted file mode 100644 index 5b0158f6af..0000000000 Binary files a/tests/image-stream/data/metadata/zip/rpi-with-logo.zip and /dev/null differ diff --git a/tests/image-stream/data/metadata/zip/rpi-with-manifest.zip b/tests/image-stream/data/metadata/zip/rpi-with-manifest.zip deleted file mode 100644 index 15289b19f2..0000000000 Binary files a/tests/image-stream/data/metadata/zip/rpi-with-manifest.zip and /dev/null differ diff --git a/tests/image-stream/data/xz/etcher-test.img.xz b/tests/image-stream/data/xz/etcher-test.img.xz new file mode 100644 index 0000000000..bf5ff41b75 Binary files /dev/null and b/tests/image-stream/data/xz/etcher-test.img.xz differ diff --git a/tests/image-stream/data/xz/raspberrypi.img.xz b/tests/image-stream/data/xz/raspberrypi.img.xz deleted file mode 100644 index 5e33ece2ac..0000000000 Binary files a/tests/image-stream/data/xz/raspberrypi.img.xz and /dev/null differ diff --git a/tests/image-stream/data/zip/zip-directory-etcher-test-and-misc.zip b/tests/image-stream/data/zip/zip-directory-etcher-test-and-misc.zip new file mode 100644 index 0000000000..00acf33a24 Binary files /dev/null and b/tests/image-stream/data/zip/zip-directory-etcher-test-and-misc.zip differ diff --git a/tests/image-stream/data/zip/zip-directory-etcher-test-only.zip b/tests/image-stream/data/zip/zip-directory-etcher-test-only.zip new file mode 100644 index 0000000000..685e43fba2 Binary files /dev/null and b/tests/image-stream/data/zip/zip-directory-etcher-test-only.zip differ diff --git a/tests/image-stream/data/zip/zip-directory-rpi-and-misc.zip b/tests/image-stream/data/zip/zip-directory-rpi-and-misc.zip deleted file mode 100644 index ea202cd6bf..0000000000 Binary files a/tests/image-stream/data/zip/zip-directory-rpi-and-misc.zip and /dev/null differ diff --git a/tests/image-stream/data/zip/zip-directory-rpi-only.zip b/tests/image-stream/data/zip/zip-directory-rpi-only.zip deleted file mode 100644 index 50ed1539b9..0000000000 Binary files a/tests/image-stream/data/zip/zip-directory-rpi-only.zip and /dev/null differ diff --git a/tests/image-stream/dmg.spec.js b/tests/image-stream/dmg.spec.js index 938f3008fe..98fb463243 100644 --- a/tests/image-stream/dmg.spec.js +++ b/tests/image-stream/dmg.spec.js @@ -29,14 +29,14 @@ describe('ImageStream: DMG', function() { this.timeout(20000); - context('compressed', function() { + context('zlib compressed', function() { describe('.getFromFilePath()', function() { describe('given an dmg image', function() { tester.extractFromFilePath( - path.join(DMG_PATH, 'zlib-compressed.dmg'), - path.join(IMAGES_PATH, 'zlib-compressed.img')); + path.join(DMG_PATH, 'etcher-test-zlib.dmg'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -44,8 +44,8 @@ describe('ImageStream: DMG', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(DMG_PATH, 'zlib-compressed.dmg'); - const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'zlib-compressed.img')).size; + const image = path.join(DMG_PATH, 'etcher-test-zlib.dmg'); + const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'etcher-test.img')).size; const compressedSize = fs.statSync(image).size; return imageStream.getImageMetadata(image).then((metadata) => { @@ -73,8 +73,8 @@ describe('ImageStream: DMG', function() { describe('given an dmg image', function() { tester.extractFromFilePath( - path.join(DMG_PATH, 'raw.dmg'), - path.join(IMAGES_PATH, 'raw.img')); + path.join(DMG_PATH, 'etcher-test-raw.dmg'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -82,8 +82,8 @@ describe('ImageStream: DMG', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(DMG_PATH, 'raw.dmg'); - const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'raw.img')).size; + const image = path.join(DMG_PATH, 'etcher-test-raw.dmg'); + const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'etcher-test.img')).size; const compressedSize = fs.statSync(image).size; return imageStream.getImageMetadata(image).then((metadata) => { diff --git a/tests/image-stream/gz.spec.js b/tests/image-stream/gz.spec.js index fa55bb43e5..dfe8a36fb2 100644 --- a/tests/image-stream/gz.spec.js +++ b/tests/image-stream/gz.spec.js @@ -33,8 +33,8 @@ describe('ImageStream: GZ', function() { describe('given a gz image', function() { tester.extractFromFilePath( - path.join(GZ_PATH, 'raspberrypi.img.gz'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(GZ_PATH, 'etcher-test.img.gz'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -42,9 +42,9 @@ describe('ImageStream: GZ', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(GZ_PATH, 'raspberrypi.img.gz'); - const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'raspberrypi.img')).size; - const compressedSize = fs.statSync(path.join(GZ_PATH, 'raspberrypi.img.gz')).size; + const image = path.join(GZ_PATH, 'etcher-test.img.gz'); + const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'etcher-test.img')).size; + const compressedSize = fs.statSync(path.join(GZ_PATH, 'etcher-test.img.gz')).size; return imageStream.getImageMetadata(image).then((metadata) => { m.chai.expect(metadata).to.deep.equal({ diff --git a/tests/image-stream/img.spec.js b/tests/image-stream/img.spec.js index 8338e6f563..dbe8c95841 100644 --- a/tests/image-stream/img.spec.js +++ b/tests/image-stream/img.spec.js @@ -32,8 +32,8 @@ describe('ImageStream: IMG', function() { describe('given an img image', function() { tester.extractFromFilePath( - path.join(IMAGES_PATH, 'raspberrypi.img'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(IMAGES_PATH, 'etcher-test.img'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -41,7 +41,7 @@ describe('ImageStream: IMG', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(IMAGES_PATH, 'raspberrypi.img'); + const image = path.join(IMAGES_PATH, 'etcher-test.img'); const expectedSize = fs.statSync(image).size; return imageStream.getImageMetadata(image).then((metadata) => { diff --git a/tests/image-stream/iso.spec.js b/tests/image-stream/iso.spec.js index 8d95aed50d..b26b568a4a 100644 --- a/tests/image-stream/iso.spec.js +++ b/tests/image-stream/iso.spec.js @@ -32,8 +32,8 @@ describe('ImageStream: ISO', function() { describe('given an iso image', function() { tester.extractFromFilePath( - path.join(IMAGES_PATH, 'raspberrypi.iso'), - path.join(IMAGES_PATH, 'raspberrypi.iso')); + path.join(IMAGES_PATH, 'etcher-test.iso'), + path.join(IMAGES_PATH, 'etcher-test.iso')); }); }); @@ -41,7 +41,7 @@ describe('ImageStream: ISO', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(IMAGES_PATH, 'raspberrypi.iso'); + const image = path.join(IMAGES_PATH, 'etcher-test.iso'); const expectedSize = fs.statSync(image).size; return imageStream.getImageMetadata(image).then((metadata) => { diff --git a/tests/image-stream/metadata/zip.spec.js b/tests/image-stream/metadata/zip.spec.js index cd13e38420..ac88ed1506 100644 --- a/tests/image-stream/metadata/zip.spec.js +++ b/tests/image-stream/metadata/zip.spec.js @@ -41,18 +41,17 @@ describe('ImageStream: Metadata ZIP', function() { describe('given an archive with an invalid `manifest.json`', function() { tester.expectError( - path.join(ZIP_PATH, 'rpi-invalid-manifest.zip'), + path.join(ZIP_PATH, 'etcher-test-invalid-manifest.zip'), 'Invalid archive manifest.json'); describe('.getImageMetadata()', function() { - it('should be rejected with an error', function(done) { - const image = path.join(ZIP_PATH, 'rpi-invalid-manifest.zip'); + it('should be rejected with an error', function() { + const image = path.join(ZIP_PATH, 'etcher-test-invalid-manifest.zip'); - imageStream.getImageMetadata(image).catch((error) => { + return imageStream.getImageMetadata(image).catch((error) => { m.chai.expect(error).to.be.an.instanceof(Error); m.chai.expect(error.message).to.equal('Invalid archive manifest.json'); - done(); }); }); @@ -62,14 +61,14 @@ describe('ImageStream: Metadata ZIP', function() { describe('given an archive with a `manifest.json`', function() { - const archive = path.join(ZIP_PATH, 'rpi-with-manifest.zip'); + const archive = path.join(ZIP_PATH, 'etcher-test-with-manifest.zip'); tester.extractFromFilePath( archive, - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(IMAGES_PATH, 'etcher-test.img')); it('should read the manifest name property', function() { - return testMetadataProperty(archive, 'name', 'Raspberry Pi'); + return testMetadataProperty(archive, 'name', 'Etcher Test'); }); it('should read the manifest version property', function() { @@ -77,16 +76,16 @@ describe('ImageStream: Metadata ZIP', function() { }); it('should read the manifest url property', function() { - return testMetadataProperty(archive, 'url', 'https://www.raspberrypi.org'); + return testMetadataProperty(archive, 'url', 'https://www.example.com'); }); it('should read the manifest supportUrl property', function() { - const expectedValue = 'https://www.raspberrypi.org/forums/'; + const expectedValue = 'https://www.example.com/support/'; return testMetadataProperty(archive, 'supportUrl', expectedValue); }); it('should read the manifest releaseNotesUrl property', function() { - const expectedValue = 'http://downloads.raspberrypi.org/raspbian/release_notes.txt'; + const expectedValue = 'http://downloads.example.com/release_notes.txt'; return testMetadataProperty(archive, 'releaseNotesUrl', expectedValue); }); @@ -110,7 +109,7 @@ describe('ImageStream: Metadata ZIP', function() { describe('given an archive with a `logo.svg`', function() { - const archive = path.join(ZIP_PATH, 'rpi-with-logo.zip'); + const archive = path.join(ZIP_PATH, 'etcher-test-with-logo.zip'); const logo = [ '', @@ -127,19 +126,18 @@ describe('ImageStream: Metadata ZIP', function() { describe('given an archive with a bmap file', function() { - const archive = path.join(ZIP_PATH, 'rpi-with-bmap.zip'); + const archive = path.join(ZIP_PATH, 'etcher-test-with-bmap.zip'); const bmap = [ '', '', - ' 36864 ', + ' 5242880 ', ' 4096 ', - ' 9 ', - ' 4 ', - ' d90f372215cbbef8801caca7b1dd7e587b2142cc ', + ' 1280 ', + ' 1280 ', + ' cc6f077565c73a46198777b259c231875df4e709 ', ' ', - ' 0-1 ', - ' 7-8 ', + ' 0-1280 ', ' ', '', '' @@ -153,10 +151,10 @@ describe('ImageStream: Metadata ZIP', function() { describe('given an archive with instructions', function() { - const archive = path.join(ZIP_PATH, 'rpi-with-instructions.zip'); + const archive = path.join(ZIP_PATH, 'etcher-test-with-instructions.zip'); const instructions = [ - '# Raspberry Pi Next Steps', + '# Example Next Steps', '', 'Lorem ipsum dolor sit amet.', '' diff --git a/tests/image-stream/utils.spec.js b/tests/image-stream/utils.spec.js index 942e6bf438..87afeb68a6 100644 --- a/tests/image-stream/utils.spec.js +++ b/tests/image-stream/utils.spec.js @@ -27,56 +27,56 @@ describe('ImageStream: Utils', function() { describe('.getArchiveMimeType()', function() { it('should resolve application/x-bzip2 for a bz2 archive', function() { - const file = path.join(DATA_PATH, 'bz2', 'raspberrypi.img.bz2'); + const file = path.join(DATA_PATH, 'bz2', 'etcher-test.img.bz2'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/x-bzip2'); }); }); it('should resolve application/x-xz for a xz archive', function() { - const file = path.join(DATA_PATH, 'xz', 'raspberrypi.img.xz'); + const file = path.join(DATA_PATH, 'xz', 'etcher-test.img.xz'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/x-xz'); }); }); it('should resolve application/gzip for a gz archive', function() { - const file = path.join(DATA_PATH, 'gz', 'raspberrypi.img.gz'); + const file = path.join(DATA_PATH, 'gz', 'etcher-test.img.gz'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/gzip'); }); }); it('should resolve application/zip for a zip archive', function() { - const file = path.join(DATA_PATH, 'zip', 'zip-directory-rpi-only.zip'); + const file = path.join(DATA_PATH, 'zip', 'zip-directory-etcher-only.zip'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/zip'); }); }); it('should resolve application/octet-stream for an uncompressed image', function() { - const file = path.join(DATA_PATH, 'images', 'raspberrypi.img'); + const file = path.join(DATA_PATH, 'images', 'etcher-test.img'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/octet-stream'); }); }); it('should resolve application/x-iso9660-image for an uncompressed iso', function() { - const file = path.join(DATA_PATH, 'images', 'raspberrypi.iso'); + const file = path.join(DATA_PATH, 'images', 'etcher-test.iso'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/x-iso9660-image'); }); }); it('should resolve application/x-apple-diskimage for a compressed Apple disk image', function() { - const file = path.join(DATA_PATH, 'dmg', 'zlib-compressed.dmg'); + const file = path.join(DATA_PATH, 'dmg', 'etcher-test-zlib.dmg'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/x-apple-diskimage'); }); }); it('should resolve application/x-apple-diskimage for an uncompressed Apple disk image', function() { - const file = path.join(DATA_PATH, 'dmg', 'raw.dmg'); + const file = path.join(DATA_PATH, 'dmg', 'etcher-test-raw.dmg'); return utils.getArchiveMimeType(file).then((type) => { m.chai.expect(type).to.equal('application/x-apple-diskimage'); }); diff --git a/tests/image-stream/xz.spec.js b/tests/image-stream/xz.spec.js index 02a58dd6e3..d05099dc93 100644 --- a/tests/image-stream/xz.spec.js +++ b/tests/image-stream/xz.spec.js @@ -33,8 +33,8 @@ describe('ImageStream: XZ', function() { describe('given a xz image', function() { tester.extractFromFilePath( - path.join(XZ_PATH, 'raspberrypi.img.xz'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(XZ_PATH, 'etcher-test.img.xz'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -42,9 +42,9 @@ describe('ImageStream: XZ', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(XZ_PATH, 'raspberrypi.img.xz'); + const image = path.join(XZ_PATH, 'etcher-test.img.xz'); const compressedSize = fs.statSync(image).size; - const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'raspberrypi.img')).size; + const uncompressedSize = fs.statSync(path.join(IMAGES_PATH, 'etcher-test.img')).size; return imageStream.getImageMetadata(image).then((metadata) => { m.chai.expect(metadata).to.deep.equal({ diff --git a/tests/image-stream/zip.spec.js b/tests/image-stream/zip.spec.js index 4aa556d886..e9e58d4204 100644 --- a/tests/image-stream/zip.spec.js +++ b/tests/image-stream/zip.spec.js @@ -51,14 +51,14 @@ describe('ImageStream: ZIP', function() { describe('given a zip directory containing only an image', function() { tester.extractFromFilePath( - path.join(ZIP_PATH, 'zip-directory-rpi-only.zip'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(ZIP_PATH, 'zip-directory-etcher-test-only.zip'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); describe('given a zip directory containing an image and other misc files', function() { tester.extractFromFilePath( - path.join(ZIP_PATH, 'zip-directory-rpi-and-misc.zip'), - path.join(IMAGES_PATH, 'raspberrypi.img')); + path.join(ZIP_PATH, 'zip-directory-etcher-test-and-misc.zip'), + path.join(IMAGES_PATH, 'etcher-test.img')); }); }); @@ -66,8 +66,8 @@ describe('ImageStream: ZIP', function() { describe('.getImageMetadata()', function() { it('should return the correct metadata', function() { - const image = path.join(ZIP_PATH, 'zip-directory-rpi-only.zip'); - const expectedSize = fs.statSync(path.join(IMAGES_PATH, 'raspberrypi.img')).size; + const image = path.join(ZIP_PATH, 'zip-directory-etcher-test-only.zip'); + const expectedSize = fs.statSync(path.join(IMAGES_PATH, 'etcher-test.img')).size; return imageStream.getImageMetadata(image).then((metadata) => { m.chai.expect(metadata).to.deep.equal({