-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from vitkarpenko/aerospike
Aerospike fixtures support
- Loading branch information
Showing
42 changed files
with
1,081 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ import ( | |
) | ||
|
||
type ResponseSchemaChecker struct { | ||
checker.CheckerInterface | ||
|
||
swagger *spec.Swagger | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ import ( | |
) | ||
|
||
type ResponseDbChecker struct { | ||
checker.CheckerInterface | ||
|
||
db *sql.DB | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
.PHONY: setup | ||
setup: | ||
@docker-compose -f docker-compose.yaml up --build -d | ||
setup: teardown | ||
@docker-compose -f docker-compose.yaml up --build --wait -d | ||
@curl http://localhost:5000/info/10 | ||
|
||
.PHONY: teardown | ||
teardown: | ||
@docker-compose -f docker-compose.yaml down -v --remove-orphans | ||
|
||
.PHONY: test | ||
test: setup | ||
gonkey -db_dsn "postgresql://testing_user:testing_password@localhost:5432/testing_db?sslmode=disable" -debug -host http://localhost:5000 -tests ./cases/ | ||
test-postgres: setup | ||
./gonkey -db_dsn "postgresql://testing_user:testing_password@localhost:5432/testing_db?sslmode=disable" -debug -host http://localhost:5000 -tests ./cases/postgres | ||
make teardown | ||
|
||
.PHONY: test-aerospike | ||
test-aerospike: setup | ||
./gonkey -debug -fixtures ./fixtures/ -db-type aerospike -aerospike_host "localhost:3000/test" -host http://localhost:5000 -tests ./cases/aerospike | ||
make teardown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: Get a number from aerospike | ||
method: GET | ||
path: /aerospike/ | ||
fixtures: | ||
- aerospike.yaml | ||
response: | ||
200: '{"data": {"bin1": "value1", "bin2": "overwritten"}}' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.