Copyright 2020 Telefónica Investigación y Desarrollo S.A.U. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
The goal is adopting a methodology for local testing that is fully repeatable and well-known by the Depops MDL team in OSM.
This means that:
provisioner.sh), so that the exact procedure can be well-known and testable by everyone.%userprofile%/.ssh folder (the one equivalent to ~/.ssh in Linux/Mac),%userprofile%/.gitconfig exists and has the proper configuration.user.name there contains your EOL account name (i.e. avoid using a full name there). Beware that only the global profile is supported.To build a sandbox from scratch:
cd folder_of_the_sandbox
vagrant up
NOTE: All the examples that follow are suppossed to be run in the same sandbox's folder.
To access the VM via SSH:
vagrant ssh
To destroy the VM:
vagrant destroy
To rebuild and reprovision the VM:
vagrant destroy && vagrant up