Commit Graph

3 Commits

Author SHA1 Message Date
zhurong 4985bfa010 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

And murano-dashboard using unittest instead of testtools.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
2018-10-09 02:22:08 +00:00
Alexander Tivelkov aa89f7950d Stringify LATEST_FORMAT_VERSION in dynamic_ui
The 'latest version' was initially specified as integer and used direct
comparison. The introduction of semver notation in I96cbb added second
segment to the version, i.e. it became X.Y. As no quotes were added this
became a floting point number. Semver function was stringifying it
before corcing, so it worked fine, however defining a version as a
floating point is definetely wrong.

This patch stringified the vesion where it is defined and adds a
function which returns a semantic_version.Version object based on it.

Change-Id: Iaed1ecdb25c49af8cf1fca2a555e6d534a380d5a
2015-07-21 13:48:44 +03:00
Alexander Tivelkov cdb94feb2f Improve the checks of Dynamic UI format versions
Current implementation of DynamicUI checks the "Version" field of UI
definition files to exactly match a single constant value (currently 2).
This contradicts to our desired versioning strategy.

Instead, it should check that the major component of the Version field
in the UI definition being processed  matches tha major component of the
current latest version of the format (i.e. we assume that the versions
are compatible if their major version are the same). At the same time
the version of the definition being processed is not greater than the
latest supported version.

The implementation is done using the semantic_version library which has
all the needed functionality, including the coercing method (parsing of
string-based content into the proper version) and partial versions.

Targets Blueprint murano-versioning

Change-Id: I96cbbddc4389804fafe9a1d6f48f63ac4ee5620a
2015-07-14 14:58:15 +03:00