Jenkins: Run integration test Redis unavailability
Make Jenkins to run the integration tests that verifies that the satellite can operates when Redis is unavailable. Change-Id: Idace3ffb84c788f2af2c6e24eec1d63fb40c263a
This commit is contained in:
parent
fa8b0a29ea
commit
536990dcf6
@ -150,6 +150,22 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Integration Redis unavailability') {
|
||||
environment {
|
||||
// use different hostname to avoid port conflicts
|
||||
STORJ_NETWORK_HOST4 = '127.0.0.6'
|
||||
STORJ_NETWORK_HOST6 = '127.0.0.6'
|
||||
STORJ_REDIS_PORT = '7379'
|
||||
|
||||
STORJ_SIM_POSTGRES = 'postgres://postgres@localhost/teststorj6?sslmode=disable'
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'psql -U postgres -c \'create database teststorj6;\''
|
||||
sh 'make test-sim-redis-unavailability'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Backwards Compatibility') {
|
||||
environment {
|
||||
STORJ_NETWORK_HOST4 = '127.0.0.3'
|
||||
|
6
Makefile
6
Makefile
@ -107,6 +107,12 @@ test-sim: ## Test source with storj-sim (jenkins)
|
||||
@echo "Running ${@}"
|
||||
@./scripts/test-sim.sh
|
||||
|
||||
.PHONY: test-sim-redis-unavailability
|
||||
test-sim-redis-unavailability: ## Test source with Redis availability with storj-sim (jenkins)
|
||||
@echo "Running ${@}"
|
||||
@./scripts/test-sim-redis-up-and-down.sh
|
||||
|
||||
|
||||
.PHONY: test-certificates
|
||||
test-certificates: ## Test certificate signing service and storagenode setup (jenkins)
|
||||
@echo "Running ${@}"
|
||||
|
Loading…
Reference in New Issue
Block a user