Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I10f155c316dc77b69dcbbc387f3edf59ed84b5dd
This commit is contained in:
parent
ed1000f9bf
commit
f90c73911d
|
@ -1,4 +1,4 @@
|
|||
openstack Style Commandments
|
||||
===============================================
|
||||
============================
|
||||
|
||||
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
|
||||
|
|
|
@ -9,5 +9,5 @@ It contains the tempest plugin for the functional testing of Monasca Project.
|
|||
* Free software: Apache license
|
||||
* Documentation: https://docs.openstack.org/monasca-api/latest/
|
||||
* Release notes: https://docs.openstack.org/releasenotes/monasca-api/
|
||||
* Source: https://git.openstack.org/cgit/openstack/monasca-tempest-plugin
|
||||
* Bugs: https://bugs.launchpad.net/monasca
|
||||
* Source: https://opendev.org/openstack/monasca-tempest-plugin
|
||||
* Bugs: https://storyboard.openstack.org/#!/project/919
|
||||
|
|
|
@ -8,14 +8,14 @@ repository.
|
|||
|
||||
1. Download DevStack::
|
||||
|
||||
git clone https://git.openstack.org/openstack-dev/devstack.git
|
||||
git clone https://opendev.org/openstack/devstack.git
|
||||
cd devstack
|
||||
|
||||
2. Add this repo as an external repository::
|
||||
|
||||
> cat local.conf
|
||||
[[local|localrc]]
|
||||
enable_plugin monasca-tempest-plugin https://git.openstack.org/openstack/monasca-tempest-plugin
|
||||
enable_plugin monasca-tempest-plugin https://opendev.org/openstack/monasca-tempest-plugin
|
||||
|
||||
3. run ``stack.sh``
|
||||
|
||||
|
|
|
@ -8,6 +8,6 @@ the same environment where Tempest is installed.
|
|||
|
||||
At the command line::
|
||||
|
||||
$ git clone https://git.openstack.org/openstack/monasca-tempest-plugin
|
||||
$ git clone https://opendev.org/openstack/monasca-tempest-plugin
|
||||
$ cd monasca-tempest-plugin/
|
||||
$ pip install monasca-tempest-plugin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
ARG DOCKER_IMAGE=monasca/tempest-tests
|
||||
ARG APP_REPO=https://git.openstack.org/openstack/monasca-tempest-plugin
|
||||
ARG APP_REPO=https://review.opendev.org/openstack/monasca-tempest-plugin
|
||||
|
||||
# Branch, tag or git hash to build from.
|
||||
ARG REPO_VERSION=master
|
||||
|
|
|
@ -59,12 +59,12 @@ cd "$(dirname "$REAL_PATH")/../docker/"
|
|||
REPO_VERSION_CLEAN=$(echo "$REPO_VERSION" | sed 's|/|-|g')
|
||||
|
||||
[ -z "$APP_REPO" ] && APP_REPO=$(\grep APP_REPO Dockerfile | cut -f2 -d"=")
|
||||
GITHUB_REPO=$(echo "$APP_REPO" | sed 's/git.openstack.org/github.com/' | \
|
||||
GITHUB_REPO=$(echo "$APP_REPO" | sed 's/review.opendev.org/github.com/' | \
|
||||
sed 's/ssh:/https:/')
|
||||
|
||||
if [ -z "$CONSTRAINTS_FILE" ]; then
|
||||
CONSTRAINTS_FILE=$(\grep CONSTRAINTS_FILE Dockerfile | cut -f2 -d"=") || true
|
||||
: "${CONSTRAINTS_FILE:=http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}"
|
||||
: "${CONSTRAINTS_FILE:=https://releases.openstack.org/constraints/upper/master}"
|
||||
fi
|
||||
|
||||
: "${CONSTRAINTS_BRANCH:=$2}"
|
||||
|
@ -75,10 +75,11 @@ fi
|
|||
case "$REPO_VERSION" in
|
||||
*stable*)
|
||||
CONSTRAINTS_BRANCH_CLEAN="$REPO_VERSION"
|
||||
CONSTRAINTS_FILE=${CONSTRAINTS_FILE/master/$CONSTRAINTS_BRANCH_CLEAN}
|
||||
# Get monasca-common version from stable upper constraints file.
|
||||
CONSTRAINTS_TMP_FILE=$(mktemp)
|
||||
wget --output-document "$CONSTRAINTS_TMP_FILE" \
|
||||
"$CONSTRAINTS_FILE"?h="$CONSTRAINTS_BRANCH_CLEAN"
|
||||
$CONSTRAINTS_FILE
|
||||
UPPER_COMMON=$(\grep 'monasca-common' "$CONSTRAINTS_TMP_FILE")
|
||||
# Get only version part from monasca-common.
|
||||
UPPER_COMMON_VERSION="${UPPER_COMMON##*===}"
|
||||
|
@ -92,7 +93,7 @@ esac
|
|||
# Monasca-common variables.
|
||||
if [ -z "$COMMON_REPO" ]; then
|
||||
COMMON_REPO=$(\grep COMMON_REPO Dockerfile | cut -f2 -d"=") || true
|
||||
: "${COMMON_REPO:=https://git.openstack.org/openstack/monasca-common}"
|
||||
: "${COMMON_REPO:=https://review.opendev.org/openstack/monasca-common}"
|
||||
fi
|
||||
: "${COMMON_VERSION:=$3}"
|
||||
if [ -z "$COMMON_VERSION" ]; then
|
||||
|
@ -143,7 +144,6 @@ docker build --no-cache \
|
|||
--build-arg REPO_VERSION="$REPO_VERSION" \
|
||||
--build-arg GIT_COMMIT="$GIT_COMMIT" \
|
||||
--build-arg CONSTRAINTS_FILE="$CONSTRAINTS_FILE" \
|
||||
--build-arg CONSTRAINTS_BRANCH="$CONSTRAINTS_BRANCH_CLEAN" \
|
||||
--build-arg COMMON_REPO="$COMMON_REPO" \
|
||||
--build-arg COMMON_VERSION="$COMMON_VERSION" \
|
||||
--build-arg COMMON_GIT_COMMIT="$COMMON_GIT_COMMIT" \
|
||||
|
|
|
@ -6,7 +6,7 @@ Currently the devstack environment is needed to run the tests. Instructions on s
|
|||
1. Clone the OpenStack Tempest repo, and cd to it.
|
||||
|
||||
```
|
||||
git clone https://git.openstack.org/openstack/tempest.git
|
||||
git clone https://opendev.org/openstack/tempest.git
|
||||
cd tempest
|
||||
```
|
||||
2. Create a virtualenv for running the Tempest tests and activate it. For example in the Tempest root dir
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -5,7 +5,7 @@ skipsdist = True
|
|||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
PYTHONWARNINGS=default::DeprecationWarning
|
||||
|
|
Loading…
Reference in New Issue