Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceff 723 contactus spec test #546

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions server/src/test/java/com/example/TestGreeter.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ public void setup() {

@Test
public void greetShouldIncludeTheOneBeingGreeted() {
////Adding some more tests
String someone = "World";

assertThat(greeter.greet(someone), containsString(someone));
}

@Test
public void greetShouldIncludeGreetingPhrase() {
//Adding some tests
String someone = "World";

assertThat(greeter.greet(someone).length(), is(greaterThan(someone.length())));
Expand Down
Binary file added server/target/classes/com/example/Greeter.class
Binary file not shown.
Binary file not shown.
99 changes: 96 additions & 3 deletions webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
<h1> Hello, Welcome to Simple DevOps Project !! </h1>
<h2> Deploying on a kubernetes using ansible for Valaxy Technologies </h2>
<h2> Glad to see you here </h2>

<!DOCTYPE html>
<html>
<head><style>
html {
background: #ecf0f1;
}

body, h1, h2 {
font-family: Helvetica, Sans-serif;
color: #2c3e50;
margin:0;
padding:0;
font-weight:300;
}

h1 {
font-size: 80px;
}

h2 {
font-size: 36px;
opacity: 0;
animation: appear 1s 3s forwards;
}

.container{
margin:4em;
text-align: center;
}

.loader {
margin:auto;
margin-top: 100px;
margin-bottom: 100px;
border: 16px solid #bdc3c7;
width: 120px;
height: 120px;
border-top-color: #1abc9c;
border-bottom-color: #3498db;
border-radius: 50%;
animation: coloredspin 4s linear infinite;
}

@keyframes spin {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}

@keyframes coloredspin {
0%{
transform: rotate(0deg) scale(1);
border-top-color: #1abc9c;
border-bottom-color: #1abc9c;
}
25% {
border-top-color: #2ecc71;
border-bottom-color: #2ecc71;
}
50% {
transform: rotate(360deg) scale(1.05);
border-top-color: #3498db;
border-bottom-color: #3498db;
}
75% {
border-top-color: #9b59b6;
border-bottom-color: #9b59b6;
}
100%{
transform: rotate(720deg) scale(1);
border-top-color: #1abc9c;
border-bottom-color: #1abc9c;
}
}

@keyframes appear {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
</style>
<body>
<div class="container">
<h1>Welcome to the World of DevOps</h1>
<div class="loader"></div>
<h2>| Git | Maven | Jenkins | Docker | Ansible | Kubernetes |</h2>
</div>
</body>
</html>