Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Deployment 6 Documentation - Ken.pdf
Binary file not shown.
13 changes: 9 additions & 4 deletions kura_test_repo/Jenkinsfile → Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
pipeline {
agent any
agent {
label 'build'
}
stages {
stage ('Build') {
steps {
sh 'rm -rf ./kura_test_repo/cypress2'
sh 'rm -rf ./cypress'
sh '''
npm install
npm run build
sudo npm install -g serve
serve -s build &
'''
}
}
stage ('Second') {
stage ('Test') {
agent {
label 'React-dev'
label 'test'
}
steps {
sh '''
Expand Down
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# DEPLOY6_FE
<h1 align=center>Deployment 6</h1>

Welcome to deployment 6, for this deployment you will need to follow the directions in the deployment6.pdf.

- Be sure to include the following below in your pull request:

***Requirements:***
- [x]Document issues and anything you decided to do different..
- [x]Generate a failed and passed test.
- [x]Take a screenshots of your failed and passed test.
- [x]Locate and upload cypress's screenshot and video of the headless browser test.

👉Link to deployment instructions: [here](https://github.com/kura-labs-org/DEPLOY6_FE/blob/main/Deployment%236.pdf)

![image](https://i.morioh.com/210507/ac11056f.webp)
Deployment 6

Goals of the Deployment:
- Have master ec2 orchestrate building and testing in different agents
- Testing would be done on the “testing” agent using cypress
- Have one successful test and one failed test

For more details on the deployment, you can look [here](https://github.com/KennethT404/DEPLOY6_FE/blob/main/Deployment%206%20Documentation%20-%20Ken.pdf) for more!<br>
Instructions for the deployment can be found [here](https://github.com/KennethT404/DEPLOY6_FE/blob/main/Deployment%236.pdf)

This deployment was a demonstration of Masters and Agents can be used for different envrionemtns for an appliction. In this case there was a test agent anda build agent. This is meant to simulate what Dev and Production environments at an enterprise level would function. This was done in Jenkins because of its ability to easily implement agent nodes to work with the master node it is hosted on.

The reason for this seperation is to ensure that changes that may break the app do not get shown or interfere with the live application being served. This also allows for developers to conduct different types of testing such as additonal features or new UI.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Heading', () => {
it('has the right title', () => {
cy.visit('http://172.31.31.38:5000/example-1')
cy.visit('http://172.31.88.114:5000/example-1')

cy.get('h1')
.invoke('text')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
68 changes: 0 additions & 68 deletions kura_test_repo/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added test.spec.js[fail].mp4
Binary file not shown.
Binary file added test.spec.js[success].mp4
Binary file not shown.