arbindo / mimock Goto Github PK
View Code? Open in Web Editor NEWPlatform to setup mocks for REST endpoints
Home Page: https://mimock.dev
License: Apache License 2.0
Platform to setup mocks for REST endpoints
Home Page: https://mimock.dev
License: Apache License 2.0
Issue by neel1996
Saturday Feb 26, 2022 at 18:36 GMT
Originally opened as https://github.com/neel1996/mimock/issues/39
Prepare k8s yaml files to setup mimock application using k8s
Issue by neel1996
Sunday Jan 23, 2022 at 08:28 GMT
Originally opened as https://github.com/neel1996/mimock/issues/2
Api to delete an existing mock
Issue by neel1996
Saturday Feb 26, 2022 at 18:35 GMT
Originally opened as https://github.com/neel1996/mimock/issues/38
Should accept user name and password to let the user login to mimock
Issue by neel1996
Thursday Feb 03, 2022 at 18:05 GMT
Originally opened as https://github.com/neel1996/mimock/issues/15
The exception in all layers need to be handled gracefully and propagated to the controller as an error response that could be sent back to the client
E.g:
try{
repo.insertSomething();
} catch(Exception e){
log(e.getMessage());
return new Error("ERROR", "Failed while inserting data!");
}
Issue by aravinve
Thursday Feb 03, 2022 at 14:44 GMT
Originally opened as https://github.com/neel1996/mimock/issues/13
These APIs will be helpful in displaying 3 different views in UI
Regular list view
Archived list view
Recently deleted list view
Issue by aravinve
Monday Jan 24, 2022 at 10:44 GMT
Originally opened as https://github.com/neel1996/mimock/pull/10
resolves #1
aravinve included the following code: https://github.com/neel1996/mimock/pull/10/commits
Issue by neel1996
Monday Jan 24, 2022 at 05:52 GMT
Originally opened as https://github.com/neel1996/mimock/issues/9
Add actions pipeline to perform following operations
Note : Add git hook to the repo for running linter & unit tests as prepush stage
Issue by neel1996
Thursday Feb 03, 2022 at 18:09 GMT
Originally opened as https://github.com/neel1996/mimock/issues/16
Add validations to request fields and error out if the validation fails even before reaching the controller.
This will reduce amount of checks that needs to be maintained within the services
Issue by neel1996
Sunday Jan 23, 2022 at 08:36 GMT
Originally opened as https://github.com/neel1996/mimock/issues/4
Api to list all mocks
Issue by aravinve
Friday Feb 11, 2022 at 02:00 GMT
Originally opened as https://github.com/neel1996/mimock/issues/27
Add a scheduler cron job that should flush out the mocks which have been deleted for more than 30 days.
EntityStatus should be deleted.
Deleted At should be more than 30days.
The API module and the Axios client are currently missing a test suite and the functions need to be covered with unit tests
Files
Issue by neel1996
Monday Jan 24, 2022 at 05:47 GMT
Originally opened as https://github.com/neel1996/mimock/issues/8
Add components to create new mimock user and tag respective roles to the user
Roles:
Issue by neel1996
Sunday Jan 23, 2022 at 08:27 GMT
Originally opened as https://github.com/neel1996/mimock/issues/1
Add api to setup mocks
Request contract
{
"route": string,
"httpMethod": string,
"responseContentType": string,
"queryParams": {
"key": string,
"value": string,
},
"statusCode": number,
"textResponse": string,
"binaryFile": multipart,
}
HTTP 200 OK
{
"code": string,
"message": string,
}
The test coverage for the service layers is less than 85% due to missing tests for exception scenarios.
The unit tests need to be revised to cover exception scenarios to improve the test coverage.
Add react polling to validate the auth token every 'n' minutes
The api [GET] /api/mimock/v1/auth-token/validate
can be used to validate the token
The auth token will be populated by the axios client and the same token will be validated by this endpoint
If the token is valid then the api returns status 200
If the token is not valid or has expired, then a 4xx status will be returned
If the token is invalid, all the auth related cookies must be cleared so the user can authenticate again to fetch a new token
Add new api to validate token
Add hook in UI to validate token by polling
Issue by aravinve
Friday Feb 11, 2022 at 01:47 GMT
Originally opened as https://github.com/neel1996/mimock/issues/26
To add a table platform settings holding master data for the mimock platform.
Based on the master table configuration the platform functionalities are enabled/disabled.
Configuration should be allowed to modify only for admin scoped user.
Add separate endpoint and resource path to handle this functionality.
Tentative Colums include: (TODO)
Use case:
Mimock platform will be self hosted by users in the build pipeline as per their needs and wants targeting different environments.
Platform settings provide the flexibility in extending the mimock platform for different types of users. Based on the settings configured by the admin they are allowed to fine tune the functionalities.
Examples:
Issue by neel1996
Saturday Feb 26, 2022 at 18:38 GMT
Originally opened as https://github.com/neel1996/mimock/issues/40
Prepare UI automation test suite using puppeteer to run in pipeline
Issue by aravinve
Friday Feb 11, 2022 at 01:02 GMT
Originally opened as https://github.com/neel1996/mimock/issues/24
Add bulk updates and insert endpoint for Mock resource.
These APIs will be helpful when performing import csv.
Make batch updates size configurable.
Issue by neel1996
Saturday Feb 05, 2022 at 05:56 GMT
Originally opened as https://github.com/neel1996/mimock/issues/18
Add integration test suites to validate the end-to-end flows of the api's
Issue by aravinve
Thursday Feb 03, 2022 at 14:45 GMT
Originally opened as https://github.com/neel1996/mimock/issues/14
None
Issue by neel1996
Sunday Feb 13, 2022 at 19:43 GMT
Originally opened as https://github.com/neel1996/mimock/issues/33
The MockManagementServiceImpl currently does a lot of things which is making the file bigger. The service needs to be refactored to make it easily maintainable
Issue by aravinve
Wednesday Mar 09, 2022 at 15:29 GMT
Originally opened as https://github.com/neel1996/mimock/issues/43
To enhance export mocks APIs to accept the latest fields added such as request headers, response headers, etc.
Issue by aravinve
Tuesday Feb 08, 2022 at 14:01 GMT
Originally opened as https://github.com/neel1996/mimock/issues/23
These apis will be helpful in displaying 3 different views in UI
Explore viable UI automation test suites to be used for mimock UI. Once the framework is finalized, a new pipeline will be created to run the automation tests.
The automation tests will use mimock itself to mimick the rest endpoints to simulate various scenarios
Issue by neel1996
Thursday Mar 10, 2022 at 06:40 GMT
Originally opened as https://github.com/neel1996/mimock/issues/44
Add a new pipeline which bundles the UI and adds the static content to the spring-boot project to be served via the static file server
Issue by neel1996
Saturday Feb 05, 2022 at 14:10 GMT
Originally opened as https://github.com/neel1996/mimock/issues/21
The current mock setup will look for matching mocks based on route + path params + query string. This needs to be extended to perform request body and header based matching as well.
Accepted request types
Headers
Issue by neel1996
Saturday Feb 12, 2022 at 12:39 GMT
Originally opened as https://github.com/neel1996/mimock/issues/29
An audit table to log the list of operations performed by an user on the existing mocks
Issue by aravinve
Friday Feb 11, 2022 at 02:03 GMT
Originally opened as https://github.com/neel1996/mimock/issues/28
Prepare software documentation in md format which documents the platform software design, features and APIs.
Issue by neel1996
Wednesday Feb 16, 2022 at 05:55 GMT
Originally opened as https://github.com/neel1996/mimock/issues/35
The pipeline should be triggered only when changes are added to mimock-ui path
Issue by aravinve
Saturday Feb 12, 2022 at 14:43 GMT
Originally opened as https://github.com/neel1996/mimock/issues/31
Create wireframe mockup in figma
Issue by neel1996
Sunday Feb 13, 2022 at 06:43 GMT
Originally opened as https://github.com/neel1996/mimock/issues/32
Add test coverage collection and reporting stage in github actions pipeline
Issue by neel1996
Monday Feb 21, 2022 at 17:17 GMT
Originally opened as https://github.com/neel1996/mimock/issues/37
To enable role based security for endpoints, common prefixes need to be added to the existing routes.
E.g:
/api/mimock/v1/manage/users
/api/mimock/v1/admin/delete-all-mocks
Issue by neel1996
Saturday Feb 05, 2022 at 14:32 GMT
Originally opened as https://github.com/neel1996/mimock/issues/22
Add a new "name" column to the mocks table which needs to be fetched from the user during mock creation
Scope
Issue by aravinve
Saturday Feb 12, 2022 at 14:39 GMT
Originally opened as https://github.com/neel1996/mimock/issues/30
create Generic Axios library for API communication.
Issue by neel1996
Thursday Feb 03, 2022 at 18:18 GMT
Originally opened as https://github.com/neel1996/mimock/issues/17
While setting up a new mock, binary image more than 1MB was not being accepted as the response.
The service throws the following exception
org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field binaryFile exceeds its maximum permitted size of 1048576 bytes
Issue by neel1996
Thursday Feb 17, 2022 at 18:16 GMT
Originally opened as https://github.com/neel1996/mimock/issues/36
Use tailwind-styled-components to create common style elements such as Cards, Buttons, Radio buttons etc.
The components must be extensible but at the same time should restrict the styling attributes to maintain a uniform design language across the application.
Components required
Issue by dependabot[bot]
Tuesday Feb 15, 2022 at 07:22 GMT
Originally opened as https://github.com/neel1996/mimock/pull/34
Bumps follow-redirects from 1.14.7 to 1.14.8.
3d81dc3
Release version 1.14.8 of the npm package.62e546a
Drop confidential headers across schemes.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
dependabot[bot] included the following code: https://github.com/neel1996/mimock/pull/34/commits
Feature:
Option to import csv file to add new mocks in bulk
Scope:
Issue by aravinve
Saturday Feb 05, 2022 at 11:42 GMT
Originally opened as https://github.com/neel1996/mimock/issues/19
Issue by neel1996
Sunday Jan 23, 2022 at 08:29 GMT
Originally opened as https://github.com/neel1996/mimock/issues/3
Api to update an existing mock
Issue by aravinve
Tuesday Feb 01, 2022 at 08:26 GMT
Originally opened as https://github.com/neel1996/mimock/issues/12
Add validations to request fields and error out if the validation fails even before reaching the controller.
This will reduce amount of checks that needs to be maintained within the services
Issue by neel1996
Monday Jan 24, 2022 at 05:41 GMT
Originally opened as https://github.com/neel1996/mimock/issues/6
Enhance the functionality of the generic controller to handle requests for mocks that are already setup in mimock
The URL that does not start with the mimock api prefix (/api/mimock/v1) should be handled by this controller
It must pick the matching response from the mocks table and return it as response
should match request based on path + query param + request body + headers
should be able to handle both text and binary responses
Issue by aravinve
Wednesday Mar 02, 2022 at 08:36 GMT
Originally opened as https://github.com/neel1996/mimock/issues/41
None
Issue by aravinve
Saturday Feb 05, 2022 at 13:32 GMT
Originally opened as https://github.com/neel1996/mimock/issues/20
Issue by neel1996
Saturday Mar 05, 2022 at 11:51 GMT
Originally opened as https://github.com/neel1996/mimock/issues/42
The api which lists all the mocks throws an exception along with the response.
The issue needs to be analyzed and fixed.
Describe the bug
The additional style props being passed to tailwind styled components are getting propagated to the DOM which results in an error. Even though this is not breaking the app, it needs to be handled properly as per tailwind-styled-components
documentation
To Reproduce
Steps to reproduce the behavior:
Expected behavior
tailwind-styled-components
docs recommend using $
prefix in front of additional props which should not be directed to the DOM
Prefix the props name with a dollar sign ($) to prevent forwarding them to the DOM element
Issue Type
Severity
Issue by aravinve
Friday Jan 28, 2022 at 11:58 GMT
Originally opened as https://github.com/neel1996/mimock/pull/11
closes #2 #4 #5
aravinve included the following code: https://github.com/neel1996/mimock/pull/11/commits
Add new page to display all the mocks
Issue by neel1996
Monday Jan 24, 2022 at 05:43 GMT
Originally opened as https://github.com/neel1996/mimock/issues/7
Add spring security setup to handle role based requests
Issue by neel1996
Sunday Jan 23, 2022 at 08:37 GMT
Originally opened as https://github.com/neel1996/mimock/issues/5
Api to get a single mock by ID
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.