Skip to content

Commit

Permalink
Updated system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ecow committed Nov 5, 2016
1 parent 35d7c77 commit 8ff0a2d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- updated smoke test removing environment variable dependency
- renamed "smoke" directory to "system" and file

## [3.0.0] 2016-01-11

Expand Down
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -107,7 +107,7 @@ vagrant ssh

An apache web server is configured to localhost port 8080 (or the one you specified in vagrant up)

#### Run unit tests in vagrant
#### Run unit and functional tests in vagrant
The following commands can be used to start execute all unit tests:

```shell
Expand All @@ -126,15 +126,12 @@ sudo apt-get install -y php-xdebug
vendor/bin/phpunit --coverage-html=tests/_support/report/unit
```

#### Run smoke tests in Postman
#### Run smoke system test in Postman

The virtual appliance http server is mapped on localhost:8080 on the workstation

To run automatic smoke tests (i.e. a quick acceptance test),
load tests/smoke/smoke_postman_collection_v1.json in [postman](https://www.getpostman.com).
load tests/system/smoke_test_v1.json in [postman](https://www.getpostman.com) runner.

Before running postman test be sure to setup your environment defining KBPROFILER_URL according with
your network specification (e.g. http://localhost:8080)

#### Destroy virtual appliance
to destroy the virtual appliance:
Expand Down
@@ -1,7 +1,7 @@
{
"id": "30a7098d-6fdc-f0ad-3f04-bcb700e8a2cb",
"name": "Resourceful smoke",
"description": null,
"name": "Resourceful Smoke Test",
"description": "Just preliminary testing to reveal simple failures severe enough to reject a prospective software release",
"order": [
"17c38e65-bcc7-d6ae-953e-f45fbbde4475",
"ffd3f3bc-8166-da5d-83f3-d8cc0be6f48d",
Expand All @@ -20,7 +20,7 @@
{
"id": "14ba5561-2f32-eab9-ea69-3dbcda9997f3",
"headers": "Accept: application/json\nContent-Type: application/json\n",
"url": "{{RESOURCEFUL_URL}}/foo/bar1",
"url": "http://localhost:8080/foo/bar1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
Expand All @@ -39,7 +39,7 @@
{
"id": "17c38e65-bcc7-d6ae-953e-f45fbbde4475",
"headers": "Accept: application/json\n",
"url": "{{RESOURCEFUL_URL}}/",
"url": "http://localhost:8080/",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
Expand All @@ -59,7 +59,7 @@
{
"id": "3807ab4e-8684-f3ed-c422-9ea4783bfa02",
"headers": "Accept: application/json\nContent-Type: application/json\n",
"url": "{{RESOURCEFUL_URL}}/foo/",
"url": "http://localhost:8080/foo/",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
Expand Down Expand Up @@ -87,7 +87,7 @@
"headers": "Accept: application/json\n",
"method": "DELETE",
"pathVariables": {},
"url": "{{RESOURCEFUL_URL}}/foo/bar1",
"url": "http://localhost:8080/foo/bar1",
"preRequestScript": "",
"tests": "tests[\"Status code is 204\"] = responseCode.code === 204;\n",
"currentHelper": "normal",
Expand All @@ -98,7 +98,7 @@
{
"id": "b9840370-e8fe-f738-c8f3-99a355c9297a",
"headers": "Accept: application/json\nContent-Type: application/json\n",
"url": "{{RESOURCEFUL_URL}}/foo/bar1",
"url": "http://localhost:8080/foo/bar1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
Expand All @@ -117,7 +117,7 @@
{
"id": "c9b2bc14-8787-c228-4efb-f02a7a369ca7",
"headers": "Accept: application/json\nContent-Type: application/json\n",
"url": "{{RESOURCEFUL_URL}}/foo/bar1",
"url": "http://localhost:8080/foo/bar1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
Expand Down Expand Up @@ -145,7 +145,7 @@
"headers": "Accept: application/json\n",
"method": "DELETE",
"pathVariables": {},
"url": "{{RESOURCEFUL_URL}}/foo/bar2",
"url": "http://localhost:8080/foo/bar2",
"preRequestScript": "",
"tests": "tests[\"Status code is 204\"] = responseCode.code === 204;\n",
"currentHelper": "normal",
Expand All @@ -156,7 +156,7 @@
{
"id": "ffd3f3bc-8166-da5d-83f3-d8cc0be6f48d",
"headers": "Accept: application/json\n",
"url": "{{RESOURCEFUL_URL}}/foo/bar",
"url": "http://localhost:8080/foo/bar",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
Expand Down

0 comments on commit 8ff0a2d

Please sign in to comment.