Skip to content

Commit

Permalink
Merge pull request #204 from biomage-ltd/feature/cache-on
Browse files Browse the repository at this point in the history
Turn on caching for testing datasets and other things
  • Loading branch information
marcellp authored Aug 20, 2021
2 parents dba6d0d + 7d540df commit 85f0488
Show file tree
Hide file tree
Showing 23 changed files with 1,034 additions and 147 deletions.
6 changes: 3 additions & 3 deletions __mocks__/@kubernetes/client-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ const logger = require('../../src/utils/logging');

const mockApi = {
createNamespacedJob: jest.fn(() => {
logger.log('creating a fake namespace obj');
logger.debug('creating a fake namespace obj');
return new Promise((resolve) => {
resolve({
status: 200,
});
});
}),
createNamespacedPersistentVolumeClaim: jest.fn(() => {
logger.log('creating a fake namespace obj');
logger.debug('creating a fake namespace obj');
return new Promise((resolve) => {
resolve({
status: 200,
Expand All @@ -24,7 +24,7 @@ const mockApi = {
};

k8s.KubeConfig.mockImplementation(() => {
logger.log('mocking the constructor');
logger.debug('mocking the constructor');
return {
loadFromDefault: jest.fn(),
makeApiClient: jest.fn(() => mockApi),
Expand Down
Loading

0 comments on commit 85f0488

Please sign in to comment.