Git Product home page Git Product logo

awssert's People

Contributors

dependabot[bot] avatar jossmoff avatar

Stargazers

 avatar

Watchers

 avatar  avatar

awssert's Issues

Add custom assertions for `CreateBucketResponse`

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Want a custom validator for https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/model/CreateBucketResponse.html.

Solution

location() is the only field we would want to assert on. We would probably want the methods

  • hasLocation
  • hasLocationStartingWith
  • hasLocationEndingWith
  • hasLocationContainingWith
  • hasLocationMatchingRegex

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Add custom assertions for `InvokeResponse`

Search before asking

  • I have searched in the issues and found no similar issues.

  • I have added the appropriate labels for the aws component this issue relates to.

Link to model

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/lambda/model/InvokeResponse.html

Description

InvokeRepsonse is a very common model that will be very likely used for integration tests.

Solution

The fields are:

  • executedVersion: String
  • functionError: String
  • logResult: String
  • payload: SdkBytes
  • statusCode: Integer

The new assertions will be:

  • Everything related to SdkBytes
    • All string based assertions
    • JSON based assertions
  • logResult will be base64 encoded so this will want to be decoded to a string

Will need a SdkBytesMixin and a base64 decoding library and then we will just use the rest of the mixins.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

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.