Skip to content

Commit

Permalink
Get back yamlutils and dummy scenarios
Browse files Browse the repository at this point in the history
rally-openstack uses these modules, so we need to move them in a backward
compatible way.

Change-Id: I4c4fe1d4dcf96435729ab13f545c65d72231637e
  • Loading branch information
andreykurilin committed Mar 22, 2020
1 parent 8dbad44 commit 64c133a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
24 changes: 24 additions & 0 deletions rally/common/yamlutils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# All Rights Reserved.
#
# 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.

from rally.cli.yamlutils import * # noqa: F401,F403
from rally.cli import yamlutils as _new

# import it as last item to be sure that we use the right module
from rally.common import logging


logging.log_deprecated_module(
target=__name__, new_module=_new.__name__, release="3.0.0"
)
Empty file.
24 changes: 24 additions & 0 deletions rally/plugins/common/scenarios/dummy/dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# All Rights Reserved.
#
# 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.

from rally.plugins.task.scenarios.dummy.dummy import * # noqa: F401,F403
from rally.plugins.task.scenarios.dummy import dummy as _new

# import it as last item to be sure that we use the right module
from rally.common import logging


logging.log_deprecated_module(
target=__name__, new_module=_new.__name__, release="3.0.0"
)
2 changes: 1 addition & 1 deletion tests/ci/cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# License for the specific language governing permissions and limitations
# under the License.

ALLOWED_EXTRA_MISSING=4
ALLOWED_EXTRA_MISSING=40

show_diff () {
head -1 $1
Expand Down

0 comments on commit 64c133a

Please sign in to comment.