Skip to content

Commit

Permalink
Update tests. Update security payload example.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhampton committed Sep 30, 2020
1 parent 0c6e08d commit e05e1f9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ export class OptInSecurityExampleFlyout extends React.PureComponent<Props, State
},
},
file: {
path: 'C:\\Users\\User\\Downloads\\mimikatz_trunk\\x64\\mimikatz.exe',
path: 'C:\\Windows\\Temp\\mimikatz.exe',
size: 1263880,
created: '2020-05-19T07:50:06.0Z',
accessed: '2020-09-22T14:29:19.93531400Z',
mtime: '2020-09-22T14:29:03.6040000Z',
directory: 'C:\\Users\\User\\Downloads\\mimikatz_trunk\\x64',
directory: 'C:\\Windows\\Temp',
hash: {
sha1: 'c9fb7f8a4c6b7b12b493a99a8dc6901d17867388',
sha256: 'cb1553a3c88817e4cc774a5a93f9158f6785bd3815447d04b6c3f4c2c4b21ed7',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('TelemetryManagementSectionComponent', () => {
/>
);
try {
const toggleExampleComponent = component.find('p > EuiLink[onClick]').at(0);
const toggleExampleComponent = component.find('FormattedMessage > EuiLink[onClick]').at(0);
const updatedView = toggleExampleComponent.simulate('click');
updatedView.find('OptInExampleFlyout');
updatedView.simulate('close');
Expand Down Expand Up @@ -248,7 +248,7 @@ describe('TelemetryManagementSectionComponent', () => {
/>
);
try {
const toggleExampleComponent = component.find('p > EuiLink[onClick]').at(1);
const toggleExampleComponent = component.find('FormattedMessage > EuiLink[onClick]').at(1);
const updatedView = toggleExampleComponent.simulate('click');
updatedView.find('OptInSecurityExampleFlyout');
updatedView.simulate('close');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,16 @@ export class TelemetryManagementSection extends Component<Props, State> {
/>
</p>
<p>
<FormattedMessage
id="telemetry.seeExamplesOfWhatWeCollect"
defaultMessage="See examples of the {clusterData} and {endpointSecurityData} that we collect."
values={{
clusterData: <EuiLink onClick={this.toggleExample}>cluster data</EuiLink>,
endpointSecurityData: (
<EuiLink onClick={this.toggleSecurityExample}>endpoint security data</EuiLink>
),
}}
/>
<EuiLink onClick={this.toggleSecurityExample}>endpoint security data</EuiLink> that we
collect.
<FormattedMessage
id="telemetry.seeExamplesOfWhatWeCollect"
defaultMessage="See examples of the {clusterData} and {endpointSecurityData} that we collect."
values={{
clusterData: <EuiLink onClick={this.toggleExample}>cluster data</EuiLink>,
endpointSecurityData: (
<EuiLink onClick={this.toggleSecurityExample}>endpoint security data</EuiLink>
),
}}
/>
</p>
</Fragment>
);
Expand Down

0 comments on commit e05e1f9

Please sign in to comment.