forked from opensearch-project/security-dashboards-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a call to dataSource id causing test failures
Signed-off-by: Darshit Chanpura <[email protected]>
- Loading branch information
1 parent
7a26e9f
commit 6e8284d
Showing
26 changed files
with
316 additions
and
2,876 deletions.
There are no files selected for viewing
98 changes: 13 additions & 85 deletions
98
...uration/panels/audit-logging/test/__snapshots__/audit-logging-edit-settings.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Audit logs edit Render unable to access dataSource when enabled and inaccessible 1`] = ` | ||
<div | ||
className="panel-restrict-width" | ||
> | ||
<Memo() | ||
coreStart={ | ||
Object { | ||
"http": 1, | ||
} | ||
<Memo() | ||
coreStart={ | ||
Object { | ||
"http": 1, | ||
} | ||
dataSourcePickerReadOnly={true} | ||
depsStart={ | ||
Object { | ||
"dataSource": Object { | ||
"dataSourceEnabled": true, | ||
}, | ||
} | ||
} | ||
depsStart={ | ||
Object { | ||
"dataSource": Object { | ||
"dataSourceEnabled": true, | ||
}, | ||
} | ||
navigation={Object {}} | ||
selectedDataSource={ | ||
Object { | ||
"id": "test", | ||
} | ||
} | ||
setDataSource={[MockFunction]} | ||
/> | ||
<EuiPageHeader> | ||
<EuiTitle | ||
size="l" | ||
> | ||
<h1> | ||
Compliance settings | ||
</h1> | ||
</EuiTitle> | ||
</EuiPageHeader> | ||
<EuiPanel> | ||
<EditSettingGroup | ||
config={Object {}} | ||
handleChange={[Function]} | ||
settingGroup={ | ||
Object { | ||
"settings": Array [ | ||
Object { | ||
"description": "Enable or disable compliance logging.", | ||
"path": "compliance.enabled", | ||
"title": "Compliance logging", | ||
"type": "bool", | ||
}, | ||
], | ||
"title": "Compliance mode", | ||
} | ||
} | ||
/> | ||
</EuiPanel> | ||
<EuiSpacer /> | ||
<EuiFlexGroup | ||
justifyContent="flexEnd" | ||
> | ||
<EuiFlexItem | ||
grow={false} | ||
> | ||
<EuiButton | ||
data-test-subj="cancel" | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</EuiButton> | ||
</EuiFlexItem> | ||
<EuiFlexItem | ||
grow={false} | ||
> | ||
<EuiButton | ||
data-test-subj="save" | ||
fill={true} | ||
isDisabled={false} | ||
onClick={[Function]} | ||
> | ||
Save | ||
</EuiButton> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
<EuiGlobalToastList | ||
dismissToast={[Function]} | ||
side="right" | ||
toastLifeTimeMs={10000} | ||
toasts={Array []} | ||
/> | ||
</div> | ||
} | ||
navigation={Object {}} | ||
/> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.