# Deployment Testing ## Scenario-1 - Fresh deployment with no previous images or container of the microservice - Tag `1.1.0-40` ### Result - - Image was installed and container was up and running --- ## Scenario-2 - Old container and image exists with same tag - Old container is running - Old Image and container's tag - `1.2.0-41` - **Override deployment is true** ### Result - - No change in state of the system --- ## Scenario-3 - Old containers and image exists with different tag - Old container is running - Old Image and container's tag - `1.2.0-128` - New Image's tag - `1.2.0-129` ### Result - - Old container was stopped and removed. - New container is running - Only the new(`1.2.0-129`) image is present - Job number - [45](https://devops.numocity.com/job/CICD-DEVELOPMENT/job/ncms_asset/45/console) --- ## Scenario-4 - Old containers and image exists with different tag - Old container is running - Old image and container's tag - `1.2.0-130` - New image's tag - `1.2.0-128` - New container has issue starting *(Removed ssl for new container)* ### Result - - Old container(`1.2.0-130`) was **stopped and removed** - New image(`1.2.0-128`) was **deleted** and container was **not** brought up - Old image(`1.2.0-130`) was **not** deleted - Job number - [47](https://devops.numocity.com/job/CICD-DEVELOPMENT/job/ncms_asset/47/console) --- ## Scenario-5 - Old images exists but no container of the same is running - Old images' tags - `1.2.0-128` and `1.2.0-129` - New image's tag - `1.2.0-130` ### Result - - New container is in running state(`1.2.0-130`) - New image is present(`1.2.0-130`) - Old stopped container is removed(`1.2.0-129`) - Both old images (`1.2.0-128` and `1.2.0-129`) are removed - Job number - [46](https://devops.numocity.com/job/CICD-DEVELOPMENT/job/ncms_asset/46/console) --- ## Scenario-6 - Old container is in **stopped(exited)** state with different tag. - Old image is also present. - Old container's and image's tag - (`1.2.0-129`) - New image's tag - (`1.2.0-128`) ### Result - - Both old image and stopped container is removed(`1.2.0-129`) --- ## Scenario-7 - Old container and image exists with same tag - Old container is stopped(Exited) - Old Image and container's tag - `1.2.0-129` - **Override deployment is true** ### Result - - The container is started(`1.2.0-129`) --- ## Scenario-8 - Old image exists with different tag - Old container is **absent** - Old image's tag - `1.2.0-130` - New image's tag - `1.2.0-128` - New container has issue starting *(Removed ssl for new container)* ### Result - - New image(`1.2.0-128`) was **deleted** and container was **not** brought up - Old image(`1.2.0-130`) was **not** deleted - Job number - [48](https://devops.numocity.com/job/CICD-DEVELOPMENT/job/ncms_asset/48/console) ---