Skip to content

Commit

Permalink
add fall back on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 22, 2024
1 parent 1cac83a commit fbdbba0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/testMavenMappings.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-inte
// systemOutput( "checking #mapping.toJson()#", true );
try {
meta = mavenMatcher.getMatch( mapping, "latest" );
systemOutput( mapping, true );
systemOutput( meta.toJson(), true );
} catch( e ) {
arrayAppend(missing, " #mapping# threw #e.message#, mapping: #mappings[mapping].toJson()# ");
arrayAppend(missing, " #mapping# threw #e.message##chr(10)#, mapping: #mappings[mapping].toJson()# ");
}
}
if ( len( missing ) ){
Expand Down
10 changes: 9 additions & 1 deletion tests/testStableReleaseBundles.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-inte
var mavenMatcher = new update.services.legacy.MavenMatcher();
// var BundleDownloadService = new services.BundleDownloadService(); // needs creds
var missing = [];
var bundleSpec = "";

loop list=requiredBundles item="bundle" {
// systemOutput( bundle, true );
Expand All @@ -66,7 +67,14 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-inte
} catch ( e ){
//var st = new test._testRunner().trimJavaStackTrace( e.stacktrace );
//systemOutput( st, true );
arrayAppend( missing, bundle );
// see if the update provider can serve this bundle
try {
bundleSpec = listFirst( bundle,";" ) & "/" & listLast( listLast( bundle, ";" ), "=" );
http url="https://update.lucee.org/rest/update/provider/download/#bundleSpec#/" result="local.res" throwOnError=true;
} catch ( e ) {
systemOutput( e.message, true );
arrayAppend( missing, bundle );
}
}
}
if ( len( missing ) ){
Expand Down

0 comments on commit fbdbba0

Please sign in to comment.