|
7 | 7 | chmodSync,
|
8 | 8 | removeSync,
|
9 | 9 | readFileSync,
|
| 10 | + readDirSync, |
10 | 11 | copySync,
|
11 | 12 | writeFileSync,
|
12 | 13 | statSync,
|
@@ -876,6 +877,27 @@ test(
|
876 | 877 | 'foobar has retained its executable file permissions'
|
877 | 878 | );
|
878 | 879 |
|
| 880 | + t.comment('----------.serverless BEGIN'); |
| 881 | + let files = readDirSync('/serverless'); |
| 882 | + files.forEach(file => { |
| 883 | + t.comment(file); |
| 884 | + }); |
| 885 | + t.comment('----------.serverless/requirements END'); |
| 886 | + |
| 887 | + t.comment('----------.serverless BEGIN'); |
| 888 | + files = readDirSync('/serverless/requirements'); |
| 889 | + files.forEach(file => { |
| 890 | + t.comment(file); |
| 891 | + }); |
| 892 | + t.comment('----------.serverless/requirements END'); |
| 893 | + |
| 894 | + t.comment('----------.serverless/requirements/bin BEGIN'); |
| 895 | + files = readDirSync('/serverless/requirements/bin'); |
| 896 | + files.forEach(file => { |
| 897 | + t.comment(file); |
| 898 | + }); |
| 899 | + t.comment('----------.serverless/requirements/bin END'); |
| 900 | + |
879 | 901 | const flaskPerm = statSync('.serverless/requirements/bin/flask').mode;
|
880 | 902 | t.true(
|
881 | 903 | zipfiles_with_metadata['bin/flask'].unixPermissions === flaskPerm,
|
@@ -1582,13 +1604,14 @@ test(
|
1582 | 1604 | 'foobar has retained its executable file permissions'
|
1583 | 1605 | );
|
1584 | 1606 |
|
1585 |
| - const zipfiles_hello2 = listZipFilesWithMetaData('.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'); |
| 1607 | + const zipfiles_hello2 = listZipFilesWithMetaData( |
| 1608 | + '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip' |
| 1609 | + ); |
1586 | 1610 | const flaskPerm = '755';
|
1587 | 1611 |
|
1588 | 1612 | t.true(
|
1589 |
| - zipfiles_hello2['bin/flask'].unixPermissions |
1590 |
| - .toString(8) |
1591 |
| - .slice(3, 6) === flaskPerm, |
| 1613 | + zipfiles_hello2['bin/flask'].unixPermissions.toString(8).slice(3, 6) === |
| 1614 | + flaskPerm, |
1592 | 1615 | 'bin/flask has retained its executable file permissions'
|
1593 | 1616 | );
|
1594 | 1617 |
|
@@ -1618,13 +1641,14 @@ test(
|
1618 | 1641 | 'foobar has retained its executable file permissions'
|
1619 | 1642 | );
|
1620 | 1643 |
|
1621 |
| - const zipfiles_hello2 = listZipFilesWithMetaData('.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'); |
| 1644 | + const zipfiles_hello2 = listZipFilesWithMetaData( |
| 1645 | + '.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip' |
| 1646 | + ); |
1622 | 1647 | const flaskPerm = '755';
|
1623 | 1648 |
|
1624 | 1649 | t.true(
|
1625 |
| - zipfiles_hello2['bin/flask'].unixPermissions |
1626 |
| - .toString(8) |
1627 |
| - .slice(3, 6) === flaskPerm, |
| 1650 | + zipfiles_hello2['bin/flask'].unixPermissions.toString(8).slice(3, 6) === |
| 1651 | + flaskPerm, |
1628 | 1652 | 'bin/flask has retained its executable file permissions'
|
1629 | 1653 | );
|
1630 | 1654 |
|
|
0 commit comments