Skip to content

Commit

Permalink
Comment out CSF function tests for reference controls
Browse files Browse the repository at this point in the history
These have not been set in the DOC POL library, causing errors during
functional tests.
  • Loading branch information
nas-tabchiche committed Dec 4, 2024
1 parent ca00490 commit 4062d25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions frontend/tests/utils/test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default {
referenceControl: {
name: 'POL.PHYSICAL - Physical security policy',
category: 'policy',
csf_function: 'govern',
// csf_function: 'govern',
library: {
name: 'Documents and policies',
ref: 'doc-pol',
Expand All @@ -261,7 +261,7 @@ export default {
referenceControl2: {
name: 'DOC.CONTROLS - Controls accountability matrix',
category: 'process',
csf_function: 'protect',
// csf_function: 'protect',
library: {
name: 'Documents and policies',
ref: 'doc-pol',
Expand Down
14 changes: 7 additions & 7 deletions frontend/tests/utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const test = base.extend<Fixtures>({
{ name: 'name', type: type.TEXT },
{ name: 'description', type: type.TEXT },
{ name: 'category', type: type.SELECT },
{ name: 'csf_function', type: type.SELECT },
// { name: 'csf_function', type: type.SELECT },
{ name: 'provider', type: type.TEXT },
{ name: 'folder', type: type.SELECT_AUTOCOMPLETE }
]);
Expand Down Expand Up @@ -441,7 +441,7 @@ export class TestContent {
reference_control: {
value: 'Global/' + vars.referenceControl.name,
category: vars.referenceControl.category,
csf_function: vars.referenceControl.csf_function,
// csf_function: vars.referenceControl.csf_function,
request: {
url: 'reference-controls'
}
Expand All @@ -454,14 +454,14 @@ export class TestContent {
link: 'https://intuitem.com/',
effort: 'Large',
folder: vars.folderName,
category: vars.referenceControl.category,
csf_function: vars.referenceControl.csf_function
category: vars.referenceControl.category
// csf_function: vars.referenceControl.csf_function
},
editParams: {
reference_control: {
value: 'Global/' + vars.referenceControl2.name,
category: vars.referenceControl2.category,
csf_function: vars.referenceControl2.csf_function,
// csf_function: vars.referenceControl2.csf_function,
request: {
url: 'reference-controls'
}
Expand All @@ -473,8 +473,8 @@ export class TestContent {
expiry_date: '2026-02-25',
link: 'https://intuitem.com/community/',
effort: 'Medium',
category: vars.referenceControl2.category,
csf_function: vars.referenceControl2.csf_function
category: vars.referenceControl2.category
// csf_function: vars.referenceControl2.csf_function
}
},
complianceAssessmentsPage: {
Expand Down

0 comments on commit 4062d25

Please sign in to comment.