Integration test framework for OpenStack-to-OpenStack and VMware-to-OpenStack migration. Provides a fake OpenStack API server (Keystone, Nova, Neutron, Cinder, Glance) for Ansible-based integration tests.
go run ./cmd/fake-openstack
# or
make build && ./bin/fake-openstack--port,-p(default: 5000)--bind,-b(default: 127.0.0.1)--pid-file(default: /tmp/fake_os_server.pid)--log-level(debug, info, warn, error)--base-url(default: http://bind:port)
Environment: GOSTACK_PORT, GOSTACK_BIND, etc.
import "github.com/os-migrate/gostack/pkg/gostack"
opts := gostack.DefaultOptions()
opts.Port = 5000
fs := gostack.NewFakeServer(opts)
defer fs.Close()
// Server runs at fs.URL
select {} // or run your testsApache-2.0