Skip to content

Commit

Permalink
Merge pull request #200 from Security-Onion-Solutions/kilo
Browse files Browse the repository at this point in the history
ensure role does not contain the so- prefix
  • Loading branch information
jertel authored Mar 28, 2023
2 parents 4efa3f5 + 989821c commit 1035a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/js/routes/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ routes.push({ path: '/grid', name: 'grid', component: {
return false;
},
async gridMemberTest() {
const nodeId = this.hideTestConfirm();
const nodeId = this.hideTestConfirm().replace('_so-', '_');
this.$root.startLoading();
try {
await this.$root.papi.post('gridmembers/' + nodeId + "/test");
Expand Down
4 changes: 2 additions & 2 deletions html/js/routes/grid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ test('canTest', () => {
test('gridMemberTest', async () => {
resetPapi();
const mock = mockPapi("post");
comp.selectedId = '123';
comp.selectedId = 'fwd01_so-sensor';
await comp.gridMemberTest();
expect(mock).toHaveBeenCalledWith('gridmembers/123/test');
expect(mock).toHaveBeenCalledWith('gridmembers/fwd01_sensor/test');
});

0 comments on commit 1035a8b

Please sign in to comment.