Skip to content

Commit 28ef21c

Browse files
committed
Added support for Swagger
1 parent 2cbe5e6 commit 28ef21c

8 files changed

+88
-23
lines changed
File renamed without changes.

soapui/LICENSE.md LICENSE.md

File renamed without changes.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## How to Automate Integration Test Suite
22

33
- [SoapUI](soapui)
4-
- [Postman](postman)
4+
- [Postman](postman)
5+
- [Swagger](swagger)

postman/CONTRIBUTORS.txt

-1
This file was deleted.

postman/LICENSE.md

-21
This file was deleted.

swagger/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## How to Automate Integration Test Suite using Swagger

swagger/pom.xml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>Test</groupId>
6+
<artifactId>IntegrationTest-Swagger</artifactId>
7+
<version>1.0.0</version>
8+
<packaging>pom</packaging>
9+
10+
<build>
11+
12+
<plugins>
13+
<!--
14+
<plugin>
15+
<groupId>com.github.eirslett</groupId>
16+
<artifactId>frontend-maven-plugin</artifactId>
17+
<version>1.4</version>
18+
<configuration>
19+
<nodeVersion>v10.13.0</nodeVersion>
20+
</configuration>
21+
<executions>
22+
<execution>
23+
<id>install node and npm</id>
24+
<goals>
25+
<goal>install-node-and-npm</goal>
26+
</goals>
27+
</execution>
28+
29+
<execution>
30+
<id>npm install dredd</id>
31+
<goals>
32+
<goal>npm</goal>
33+
</goals>
34+
<configuration>
35+
<arguments>install newman</arguments>
36+
</configuration>
37+
</execution>
38+
39+
</executions>
40+
</plugin>
41+
-->
42+
<plugin>
43+
<groupId>org.codehaus.mojo</groupId>
44+
<artifactId>exec-maven-plugin</artifactId>
45+
<version>1.3.2</version>
46+
<executions>
47+
<execution>
48+
<id>dredd</id>
49+
<goals>
50+
<goal>exec</goal>
51+
</goals>
52+
<phase>test</phase>
53+
<configuration>
54+
<executable>dredd</executable>
55+
<arguments>
56+
<argument>swagger.yaml</argument>
57+
<argument>http://localhost:8080</argument>
58+
</arguments>
59+
</configuration>
60+
</execution>
61+
</executions>
62+
</plugin>
63+
64+
</plugins>
65+
66+
</build>
67+
68+
</project>

swagger/swagger.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
swagger: "2.0"
2+
info:
3+
version: "1.0.0"
4+
title: "Hello World"
5+
host: "localhost:8080"
6+
basePath: "/"
7+
schemes:
8+
- "http"
9+
paths:
10+
/helloworld:
11+
get:
12+
operationId: "sayHello"
13+
produces:
14+
- "application/text"
15+
responses:
16+
200:
17+
description: "successful operation"

0 commit comments

Comments
 (0)