Skip to content

Commit

Permalink
Can't get this test to pass still
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff McMillen authored and Jeff McMillen committed Dec 6, 2024
1 parent 3ef04df commit b7f8389
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/components/DataFiles/tests/DataFiles.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import systemsFixture from '../fixtures/DataFiles.systems.fixture';
import filesFixture from '../fixtures/DataFiles.files.fixture';
import renderComponent from 'utils/testing';
import { projectsFixture } from '../../../redux/sagas/fixtures/projects.fixture';
import { dataFilesAllocations } from '../../../hooks/datafiles/useDataFilesAllocations';
// import { allocations } from 'redux/reducers/allocations.reducers';

const mockStore = configureStore();

Expand All @@ -19,6 +21,10 @@ describe('DataFiles', () => {
compress: '',
},
},
// dataFilesAllocations: {
// portal_alloc: 'TACC-ACI'
// },
allocations: dataFilesAllocations,
systems: systemsFixture,
files: filesFixture,
pushKeys: {
Expand Down
30 changes: 30 additions & 0 deletions client/src/hooks/datafiles/useDataFilesAllocations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const dataFilesAllocations = {
hosts: {
'ls6.tacc.utexas.edu': ['TACC-ACI'],
'data.tacc.utexas.edu': ['TACC-ACI'],
'ranch.tacc.utexas.edu': ['TACC-ACI'],
'stampede2.tacc.utexas.edu': ['TACC-ACI'],
'maverick2.tacc.utexas.edu': ['TACC-ACI'],
'frontera.tacc.utexas.edu': ['TACC-ACI'],
},
portal_alloc: 'TACC-ACI',
active: [
{
title: 'TACC-ACI',
projectId: 9192,
projectName: 'TACC-ACI',
systems: [
{
name: 'ls6',
host: 'ls6.tacc.utexas.edu',
},
{
name: 'frontera',
host: 'frontera.tacc.utexas.edu',
},
],
},
],
};

export default dataFilesAllocations;

0 comments on commit b7f8389

Please sign in to comment.