Socket
Socket
Sign inDemoInstall

@jupiterone/integration-sdk-testing

Package Overview
Dependencies
Maintainers
1
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupiterone/integration-sdk-testing - npm Package Versions

1
2527

2.9.1

Diff

Changelog

Source

2.9.1 - 2020-08-06

Fixed

  • Install direct deepmerge dependency into @jupiterone/integration-sdk-testing package.
jupiterone-dev
published 2.9.0 •

Changelog

Source

2.9.0 - 2020-08-05

Updated

  • #270 - Return the Entity from jobState.addEntity and jobState.addEntities

Example:

const entity = await jobState.addEntity(convertToEntity(data));
const entity2 = await jobState.addEntity(convertToOtherEntity(entity2));
await jobState.addRelationship(
  convertToRelationship(entity, entity2)
);

// Or this:
await jobState.addRelationship(
  convertToRelationship(
    await jobState.addEntity(convertToEntity(data))
    await jobState.addEntity(convertToOtherEntity(entity2))
  )
);

Fixed

  • Fixed visualize cmd where mapped relationships did not consider targetFilterKey when matching entities
  • Fixed visualize cmd where multiple nodes with the same nodeId could be created, which causes rendering to fail
jupiterone-dev
published 2.8.0 •

Changelog

Source

2.8.0 - 2020-08-3

Added

  • Automatically register custom Jest test matchers when using @jupiterone/integration-sdk-dev-tools. See: https://github.com/JupiterOne/sdk/issues/265
jupiterone-dev
published 2.7.0 •

Changelog

Source

2.7.0 - 2020-08-2

Added

  • Added Jest test matcher for validating collected entities against a JSON schema. See: https://github.com/JupiterOne/sdk/issues/263

Example:

expect(context.jobState.collectedEntities).toMatchGraphObjectSchema({
  _class: ['Service'],
  schema: {
    additionalProperties: false,
    properties: {
      _type: { const: 'google_cloud_api_service' },
      category: { const: ['infrastructure'] },
      state: {
        type: 'string',
        enum: ['STATE_UNSPECIFIED', 'DISABLED', 'ENABLED'],
      },
      enabled: { type: 'boolean' },
      usageRequirements: {
        type: 'array',
        items: { type: 'string' },
      },
      _rawData: {
        type: 'array',
        items: { type: 'object' },
      }
   }
});
jupiterone-dev
published 2.6.0 •

Changelog

Source

2.6.0 - 2020-07-28

Added

  • Added getEntity({ _type, _key }) function
  • Added optional sourceEntityType property on RelationshipMapping

Changed

  • Deprecated createIntegrationRelationship. Developers should use the exported createDirectRelationship or createMappedRelationship functions.
jupiterone-dev
published 2.5.0 •

Changelog

Source

2.5.0 - 2020-07-28

Added

  • j1-integration visualize added mapped relationships as dashed lines.

Changed

  • j1-integration visualize entities are colored by _type.
  • Updated IntegrationConfig to support asynchronous getStepStartStates. See #254 for more information.

Example:

export const invocationConfig: IntegrationInvocationConfig<IntegrationConfig> = {
  async getStepStartStates(ctx) {
    return {
      'fetch-users': { disabled: await checkFetchUsersStepDisabled(ctx) }
    };
  },
  ...
};
jupiterone-dev
published 2.3.0 •

Changelog

Source

2.3.0 - 2020-07-06

Changed

  • Updated @jupiterone/data-model to latest version (0.7.1).

Fixed

  • @jupiterone/integration-sdk-dev-tools did not include ts-node, so that yarn start would fail to execute with 'Integration invocation configuration not found. Configuration should be exported as "invocationConfig" from "src/index".'
jupiterone-dev
published 2.2.1 •

Changelog

Source

12.2.1 - 2024-03-01

  • Fix issues related to pagination and token bucket in BaseAPIClient.
jupiterone-dev
published 2.2.0 •

Changelog

Source

2.2.0 - 2020-06-23

Changed

  • publishMetric now logs the metric that is published.
jupiterone-dev
published 2.1.1 •

Changelog

Source

2.1.1 - 2020-06-23

Changed

  • The validateInvocation function will have certain types of errors it throws (IntegrationValidationError, IntegrationProviderAuthenticationError) logged at level: 40 (warn) instead of level: 50 (error). These are types that are considered handled user errors and are expected to be communicated to the user in a way that allows them to address the problem. All other error types thrown from the function will continue to be logged at level: 50.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc