> + public void deleteNetworkSecurityRule() { > + final NetworkSecurityRule rule = createRule(); > + assertNotNull(rule); > + > + final NetworkSecurityRuleApi ruleApi = > api.getNetworkSecurityRuleApi(resourcegroup, DEFAULT_NSG_NAME); > + URI uri = ruleApi.delete(rule.name()); > + if (uri != null) { > + assertTrue(uri.toString().contains("api-version")); > + assertTrue(uri.toString().contains("operationresults")); > + > + boolean jobDone = Predicates2.retry(new Predicate<URI>() { > + @Override > + public boolean apply(URI uri) { > + return ParseJobStatus.JobStatus.DONE == > api.getJobApi().jobStatus(uri); > + } > + }, 60 * 2 * 1000 /* 2 minute timeout */).apply(uri);
@nacx - you had this same advice for @ritazh in PR#664. Rather than duplicating the work, can we have this addressed as part of the work Rita is doing when she lands that work? This avoids duplicate efforts. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/280/files/7ae85f1027f814b7d751eae6d421a1bad4693417#r66004115