Giter VIP home page Giter VIP logo

beady-eye's People

Contributors

arullewis avatar dependabot[bot] avatar matt-tyler avatar raf-vgw avatar richardforshaw avatar snyk-bot avatar temyers avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

arullewis

beady-eye's Issues

Create Template for getting started

In order to get started quickly
As a Beady Eye user
I want to run a command to create a new BDI project from a template

Describe command "bready-eye create --from-template aws-nodejs-typescript --project spec/my-new-project":

describe "when project folder does not exist"
  it "should create spec/my-new-project"
  it "should create spec/my-new-project/serverless.yml"
  it "should create spec/my-new-project/package.json"
  it "should create spec/my-new-project/tsconfig.json"
  it "should create spec/my-new-project/tslint.json"
  it "should create spec/my-new-project/src/complianceTests.js"
  it "should create spec/my-new-project/src/myComplianceTest.js"

describe "when project folder already exists"
  it "should fail with an appropriate error message"
  it "should not create any resources"

Generate robust approval test data

In order to validate that mocked data is consistent with reality, there is currently approval test data generated using a real AWS environment.

But the setup is currently manual.

  1. Perform appropriate setup/teardown to ensure that approval test data is consistent.

  2. Scrub returned data where appropriate, to remove account numbers etc.

  3. Consider running the tests against a simulated back end - e.g. Localstack.

  4. requires the simulated back end to support all the features we need.

Make aws-sdk an optional dependency

At the moment, aws-sdk is packaged as a node dependency. This unnecessarily bloats it's usage when packaged in a Lambda function.

Options:

  • Use codependency to specify as an optional dependency
  • Specify aws-sdk as a development dependency. This will cause issues if it is not used in Lambda functions, where the aws-sdk is already pre-packaged.

The current workaround is for the client to explicitly exclude it from packaging.
Example (Serverless Framework serverless.yml snippet)

  my-connection-test:
    handler:  src/connectionTester.connect
    package:
      # only include connection tester
      exclude:
        - src/**
        - node_modules/**
      include:
        - src/connectionTester.js
        - node_modules/beady-eye/**
       # exclude aws-sdk from packaging
        - '!node_modules/beady-eye/node_modules/aws-sdk/**'

Remove prefix from specs

Specs have been moved to subfolders based on the resource.

The test-module prefix on the filename is probably not required anymore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.