File tree 1 file changed +11
-4
lines changed
integration-tests/src/test/java/io/apicurio/tests/migration
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 3
3
import io .apicurio .registry .client .auth .VertXAuthFactory ;
4
4
import io .apicurio .registry .rest .client .RegistryClient ;
5
5
import io .apicurio .registry .rest .client .models .ArtifactReference ;
6
+ import io .apicurio .registry .rest .client .models .Error ;
6
7
import io .apicurio .registry .types .RuleType ;
7
8
import io .apicurio .registry .utils .tests .TestUtils ;
8
9
import io .apicurio .tests .ApicurioRegistryBaseIT ;
@@ -66,10 +67,16 @@ public void migrate() throws Exception {
66
67
assertTrue (matchesReferencesV2V3 (srcReferences , destReferences ));
67
68
}
68
69
}
69
- assertEquals ("SYNTAX_ONLY" , dest .groups ().byGroupId ("migrateTest" ).artifacts ().byArtifactId ("avro-0" )
70
- .rules ().byRuleType (RuleType .VALIDITY .name ()).get ().getConfig ());
71
- assertEquals ("BACKWARD" ,
72
- dest .admin ().rules ().byRuleType (RuleType .COMPATIBILITY .name ()).get ().getConfig ());
70
+ try {
71
+ assertEquals ("SYNTAX_ONLY" , dest .groups ().byGroupId ("migrateTest" ).artifacts ().byArtifactId ("avro-0" )
72
+ .rules ().byRuleType (RuleType .VALIDITY .name ()).get ().getConfig ());
73
+ assertEquals ("BACKWARD" ,
74
+ dest .admin ().rules ().byRuleType (RuleType .COMPATIBILITY .name ()).get ().getConfig ());
75
+ } catch (Error e ) {
76
+ log .error ("REST Client error: " + e .getMessageEscaped ());
77
+ log .error (" : " + e .getDetail ());
78
+ throw e ;
79
+ }
73
80
}
74
81
75
82
public static class MigrateTestInitializer extends AbstractTestDataInitializer {
You can’t perform that action at this time.
0 commit comments