@@ -1632,11 +1632,11 @@ test(
1632
1632
{ skip : ! canUseDocker ( ) || process . platform === 'win32' }
1633
1633
) ;
1634
1634
1635
- test ( 'py3.6 uses download cache with useDownloadCache option' , t => {
1635
+ test ( 'py3.6 uses download cache by default option' , t => {
1636
1636
process . chdir ( 'tests/base' ) ;
1637
1637
const path = npm ( [ 'pack' , '../..' ] ) ;
1638
1638
npm ( [ 'i' , path ] ) ;
1639
- sls ( [ '--useDownloadCache=true' , ' package'] ) ;
1639
+ sls ( [ 'package' ] ) ;
1640
1640
const cachepath = getUserCachePath ( ) ;
1641
1641
t . true (
1642
1642
pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
@@ -1645,12 +1645,11 @@ test('py3.6 uses download cache with useDownloadCache option', t => {
1645
1645
t . end ( ) ;
1646
1646
} ) ;
1647
1647
1648
- test ( 'py3.6 uses download cache with cacheLocation option' , t => {
1648
+ test ( 'py3.6 uses download cache by defaul option' , t => {
1649
1649
process . chdir ( 'tests/base' ) ;
1650
1650
const path = npm ( [ 'pack' , '../..' ] ) ;
1651
1651
npm ( [ 'i' , path ] ) ;
1652
1652
sls ( [
1653
- '--useDownloadCache=true' ,
1654
1653
'--cacheLocation=.requirements-cache' ,
1655
1654
'package'
1656
1655
] ) ;
@@ -1667,7 +1666,7 @@ test(
1667
1666
process . chdir ( 'tests/base' ) ;
1668
1667
const path = npm ( [ 'pack' , '../..' ] ) ;
1669
1668
npm ( [ 'i' , path ] ) ;
1670
- sls ( [ '--useDownloadCache=true' , '-- dockerizePip=true', 'package' ] ) ;
1669
+ sls ( [ '--dockerizePip=true' , 'package' ] ) ;
1671
1670
const cachepath = getUserCachePath ( ) ;
1672
1671
t . true (
1673
1672
pathExistsSync ( `${ cachepath } ${ sep } downloadCacheslspyc${ sep } http` ) ,
@@ -1679,13 +1678,12 @@ test(
1679
1678
) ;
1680
1679
1681
1680
test (
1682
- 'py3.6 uses download cache with dockerizePip + cacheLocation option' ,
1681
+ 'py3.6 uses download cache with dockerizePip by default option' ,
1683
1682
t => {
1684
1683
process . chdir ( 'tests/base' ) ;
1685
1684
const path = npm ( [ 'pack' , '../..' ] ) ;
1686
1685
npm ( [ 'i' , path ] ) ;
1687
1686
sls ( [
1688
- '--useDownloadCache=true' ,
1689
1687
'--dockerizePip=true' ,
1690
1688
'--cacheLocation=.requirements-cache' ,
1691
1689
'package'
@@ -1703,7 +1701,7 @@ test('py3.6 uses static and download cache', t => {
1703
1701
process . chdir ( 'tests/base' ) ;
1704
1702
const path = npm ( [ 'pack' , '../..' ] ) ;
1705
1703
npm ( [ 'i' , path ] ) ;
1706
- sls ( [ '--useDownloadCache=true' , '--useStaticCache=true' , ' package'] ) ;
1704
+ sls ( [ 'package' ] ) ;
1707
1705
const cachepath = getUserCachePath ( ) ;
1708
1706
const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1709
1707
t . true (
@@ -1724,8 +1722,6 @@ test(
1724
1722
const path = npm ( [ 'pack' , '../..' ] ) ;
1725
1723
npm ( [ 'i' , path ] ) ;
1726
1724
sls ( [
1727
- '--useDownloadCache=true' ,
1728
- '--useStaticCache=true' ,
1729
1725
'--dockerizePip=true' ,
1730
1726
'package'
1731
1727
] ) ;
@@ -1748,7 +1744,7 @@ test('py3.6 uses static cache', t => {
1748
1744
process . chdir ( 'tests/base' ) ;
1749
1745
const path = npm ( [ 'pack' , '../..' ] ) ;
1750
1746
npm ( [ 'i' , path ] ) ;
1751
- sls ( [ '--useStaticCache=true' , ' package'] ) ;
1747
+ sls ( [ 'package' ] ) ;
1752
1748
const cachepath = getUserCachePath ( ) ;
1753
1749
const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1754
1750
t . true (
@@ -1767,7 +1763,7 @@ test('py3.6 uses static cache', t => {
1767
1763
`${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } injected_file_is_bad_form` ,
1768
1764
'injected new file into static cache folder'
1769
1765
) ;
1770
- sls ( [ '--useStaticCache=true' , ' package'] ) ;
1766
+ sls ( [ 'package' ] ) ;
1771
1767
1772
1768
const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
1773
1769
t . true (
@@ -1783,7 +1779,7 @@ test('py3.6 uses static cache with cacheLocation option', t => {
1783
1779
const path = npm ( [ 'pack' , '../..' ] ) ;
1784
1780
npm ( [ 'i' , path ] ) ;
1785
1781
const cachepath = '.requirements-cache' ;
1786
- sls ( [ '--useStaticCache=true' , `--cacheLocation=${ cachepath } ` , 'package' ] ) ;
1782
+ sls ( [ `--cacheLocation=${ cachepath } ` , 'package' ] ) ;
1787
1783
const cacheFolderHash = sha256Path ( '.serverless/requirements.txt' ) ;
1788
1784
t . true (
1789
1785
pathExistsSync ( `${ cachepath } ${ sep } ${ cacheFolderHash } _slspyc${ sep } flask` ) ,
@@ -1805,7 +1801,6 @@ test(
1805
1801
const path = npm ( [ 'pack' , '../..' ] ) ;
1806
1802
npm ( [ 'i' , path ] ) ;
1807
1803
sls ( [
1808
- '--useStaticCache=true' ,
1809
1804
'--dockerizePip=true' ,
1810
1805
'--slim=true' ,
1811
1806
'package'
@@ -1829,7 +1824,6 @@ test(
1829
1824
'injected new file into static cache folder'
1830
1825
) ;
1831
1826
sls ( [
1832
- '--useStaticCache=true' ,
1833
1827
'--dockerizePip=true' ,
1834
1828
'--slim=true' ,
1835
1829
'package'
@@ -1858,7 +1852,6 @@ test(
1858
1852
const path = npm ( [ 'pack' , '../..' ] ) ;
1859
1853
npm ( [ 'i' , path ] ) ;
1860
1854
sls ( [
1861
- '--useDownloadCache=true' ,
1862
1855
'--dockerizePip=true' ,
1863
1856
'--slim=true' ,
1864
1857
'package'
0 commit comments