Skip to content

Commit

Permalink
Update tests that expect a number of services since ISO services are …
Browse files Browse the repository at this point in the history
…removed by default
  • Loading branch information
tdrwenski authored and haileyajohnson committed Oct 20, 2023
1 parent 8d9e262 commit 7906890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testStandardServices() throws IOException {
Service s = ds.getServiceDefault();
Assert.assertNotNull(s);
Assert.assertTrue(s.getType() == ServiceType.Compound);
Assert.assertEquals(10, s.getNestedServices().size());
Assert.assertEquals(7, s.getNestedServices().size());
}

// Relies on:
Expand All @@ -62,7 +62,7 @@ public void testStandardServicesDatasetScan() throws IOException {
Assert.assertNotNull(s);

Assert.assertTrue(s.getType() == ServiceType.Compound);
Assert.assertEquals(10, s.getNestedServices().size());
Assert.assertEquals(7, s.getNestedServices().size());
}

@Test
Expand All @@ -72,7 +72,7 @@ public void testUserDefinedServices() throws IOException {
Assert.assertEquals(3, cat.getServices().size());

check(cat, "all", 11);
check(cat, "GridServices", 10);
check(cat, "GridServices", 7);
check(cat, "opendapOnly", 1);

Service localServices = cat.findService("opendapOnly");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void testTPanalyis() throws IOException {

Dataset full = cat.findDatasetByID("HRRR/analysis/TP");
Assert.assertNotNull(full);
Assert.assertEquals(9, full.getAccess().size());
Assert.assertEquals(6, full.getAccess().size());
Assert.assertNull(full.getAccess(ServiceType.Resolver));
Assert.assertNull(full.getAccess(ServiceType.HTTPServer));
Assert.assertNotNull(full.getAccess(ServiceType.CdmRemote));
Expand Down Expand Up @@ -170,7 +170,7 @@ public void testDeclaredServicesInNestedDatasets() throws IOException {
public void testDefaultGribServices() throws IOException {
String catalog = "/catalog/grib.v5/NDFD/CONUS_5km/catalog.xml"; // no service name, should use GRID default
Catalog cat = TdsLocalCatalog.open(catalog);
testCat(cat, 9, true, null, 0);
testCat(cat, 6, true, null, 0);

Dataset top = cat.getDatasetsLocal().get(0);
Assert.assertTrue(!top.hasAccess());
Expand All @@ -181,7 +181,7 @@ public void testDefaultGribServices() throws IOException {
} else {
CatalogRef catref = (CatalogRef) ds;
Catalog cat2 = TdsLocalCatalog.openFromURI(catref.getURI());
testCat(cat2, 9, false, "GridServices", 10);
testCat(cat2, 6, false, "GridServices", 7);
break;
}
}
Expand Down

0 comments on commit 7906890

Please sign in to comment.