https://github.com/lfost42/aline-data-generator
Data Generator scripts for an implementation of the Aline Financial app.
https://github.com/lfost42/aline-data-generator
data-generator microservices python testing
Last synced: 12 months ago
JSON representation
Data Generator scripts for an implementation of the Aline Financial app.
- Host: GitHub
- URL: https://github.com/lfost42/aline-data-generator
- Owner: lfost42
- License: mit
- Created: 2022-12-11T18:37:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T05:51:48.000Z (over 3 years ago)
- Last Synced: 2025-03-28T10:13:50.284Z (over 1 year ago)
- Topics: data-generator, microservices, python, testing
- Language: Python
- Homepage:
- Size: 386 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Aline Data Generation
## Usage
This Python package are smoke tests that generate data to persist in a MySql database. Smoke tests verify that the most important functionality in our application is working. They are a cost-effective method for identifying and fixing defects in software.
The data generators leverage the Underwriter, User, and Bank microservice. It requires structuring in the config.py file (located in the program directory) where methods can be set to run or not run and method values are also set.

## Installation
### Install Requirements:
1. [Docker Desktop](https://www.docker.com/products/docker-desktop/)
2. [VS Code](https://code.visualstudio.com)
### Set up Docker Images for the Aline Financial application:
1. Clone the [Smoke Test Data Generator](https://git1.smoothstack.com/cohorts/2022/organizations/cyber-cumulus/lynda-foster/devops-data-generator/-/tree/develop) repo.
2. Pull docker hub images:
```
docker pull lyndasm/aline:mysql
docker pull lyndsm/aline:aline-gateway
docker pull lyndasm/aline:aline-underwriter
docker pull lyndasm/aline:aline-user
docker pull lyndasm/aline:aline-bank
```
3. Run microservices:
`docker compose -f "docker-compose.yml" up -d --build`
4. Create a python environment, activate environment, and install requirements.
`pip intstall -r requirements.txt`
5. Set up testing scripts:
In the `main` folder, modify `config.py` in your VS Code or other IDE to verify which methods and variables are required for this test.
6. Run `main`:
`py main` or `python3 main`
## Support
lynda.foster@smoothstack.com
[Cyber Cumulus Jira](https://cyber-cumulus-smoothstack.atlassian.net/jira/software/projects/CC/boards/1)
## Roadmap
- [x] Data Generation=
- [x] Applicants
- [x] Applications
- [x] User Data Producer
- [x] Banks and Branches - in progress
## Acknowledgements
Lead Developer:
[Lynda Foster](https://git1.smoothstack.com/lynda.foster)
With support from the Cyber Cumulus Team:
[Anthony Foster](https://git1.smoothstack.com/anthony.foster)
[Nathan Galler](https://git1.smoothstack.com/nathan.galler)
[Dennis Ghitas](https://git1.smoothstack.com/dennis.ghitas)
[Sebastian Marzal](https://git1.smoothstack.com/sebastian.marzal)
## License
[MIT License](LICENSE.md)
## Project status
This portion of the project is completing development.