Skip to content

Latest commit

 

History

History
executable file
·
63 lines (40 loc) · 1.87 KB

File metadata and controls

executable file
·
63 lines (40 loc) · 1.87 KB

Cloud Security Posture Kibana Plugin

Cloud Posture automates the identification and remediation of risks across cloud infrastructures


Development

read Kibana Contributing Guide for more details

Testing

for general guidelines, read Kibana Testing Guide for more details

Tests

  1. Unit Tests (Jest) - located in sibling files to the source code
  2. Integration Tests
  3. End-to-End Tests

Tools

Run TypeScript:

node scripts/type_check.js --project=x-pack/plugins/cloud_security_posture/tsconfig.json

Run ESLint:

yarn lint:es x-pack/plugins/cloud_security_posture

Run Unit Tests:

yarn test:jest --config x-pack/plugins/cloud_security_posture/jest.config.js

Note for a coverage report, add the --coverage flag, and run open target/kibana-coverage/jest/x-pack/plugins/cloud_security_posture/index.html

Run Integration Tests:

yarn test:ftr --config x-pack/test/api_integration/config.ts

Run End-to-End Tests:

yarn test:ftr --config x-pack/test/cloud_security_posture_functional/config.ts --debug

test runner (FTR) can be used separately with ftr:runner and ftr:server:

yarn test:ftr:server --config x-pack/test/api_integration/config.ts
yarn test:ftr:runner --include-tag=cloud_security_posture --config x-pack/test/api_integration/config.ts