Merge lp:~marcoceppi/charm-tools/test-cfg into lp:charm-tools/1.2
Proposed by
Marco Ceppi
Status: | Rejected |
---|---|
Rejected by: | Marco Ceppi |
Proposed branch: | lp:~marcoceppi/charm-tools/test-cfg |
Merge into: | lp:charm-tools/1.2 |
Diff against target: |
269 lines (+50/-21) 5 files modified
charmtools/bundles.py (+0/-1) charmtools/generate.py (+0/-1) charmtools/test.py (+36/-10) charmtools/update.py (+2/-0) tests/test_juju_test.py (+12/-9) |
To merge this branch: | bzr merge lp:~marcoceppi/charm-tools/test-cfg |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
charmers | Pending | ||
Review via email: mp+200921@code.launchpad.net |
Description of the change
Added support for substrate parsing in TestCfg
To post a comment you must log in.
Reviewers: mp+200921_ code.launchpad. net,
Message:
Please take a look.
Description:
Added support for substrate parsing in TestCfg
https:/ /code.launchpad .net/~marcocepp i/charm- tools/test- cfg/+merge/ 200921
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/49160046/
Affected files (+52, -21 lines): bundles. py generate. py update. py juju_test. py
A [revision details]
M charmtools/
M charmtools/
M charmtools/test.py
M charmtools/
M tests/test_
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: charmtools/ bundles. py bundles. py' bundles. py 2013-12-20 14:06:43 +0000 bundles. py 2014-01-08 22:43:34 +0000
=== modified file 'charmtools/
--- charmtools/
+++ charmtools/
@@ -2,7 +2,6 @@
import yaml
import glob
import json
-import requests
from linter import Linter
from charmworldlib import bundle as cw_bundle
Index: charmtools/ generate. py generate. py' generate. py 2013-12-12 17:20:39 +0000 generate. py 2014-01-08 22:43:34 +0000 www.gnu. org/licenses/>.
=== modified file 'charmtools/
--- charmtools/
+++ charmtools/
@@ -16,7 +16,6 @@
# along with this program. If not, see <http://
import os
-import sys
import shutil
import argparse
Index: charmtools/test.py test.py'
=== modified file 'charmtools/
--- charmtools/test.py 2013-12-21 12:59:08 +0000
+++ charmtools/test.py 2014-01-08 22:43:34 +0000
@@ -3,7 +3,6 @@
import os
import sys
-import uuid
import yaml
import time
import glob
@@ -12,7 +11,6 @@
import argparse
import subprocess
-from tempfile import mkdtemp
from datetime import timedelta
from contextlib import contextmanager
@@ -44,6 +42,10 @@
pass
+class SubstrateMismat ch(Exception) : Exception) :
self. value = value
self. destroy( self.juju_ env)
except DestroyUnreliable:
self. log.warn( 'Unable to destroy bootstrap, trying again')
try:
self.destroy( self.juju_ env)
except: self.conductor. args.timeout) :
output = subprocess. check_output( self.test, env=self.env) debug(output)
self.log. debug(' Killed by timeout after %s seconds',
self.conductor .args.timeout)
self. archive_ logs()
except OrchestraError, e:
+ pass
+
+
class TimeoutError(
def __init__(self, value="Timed Out"):
@@ -114,7 +116,7 @@
- sleep(2)
+ time.sleep(2)
@@ -258,6 +260,7 @@
try:
with timeout(
+ self.log.
except TimeoutError, e:
@@ -279,7 +282,7 @@
try:
- juju.log.error(e)
+ self.log.error(e)
if error: 'Unable to query juju status')
raise error
@@ -293,7 +296,7 @@
raise OrchestraError(
services = status['services']
- machines = status['machines']
+...