|
3 | 3 | import io.apicurio.registry.client.auth.VertXAuthFactory;
|
4 | 4 | import io.apicurio.registry.model.BranchId;
|
5 | 5 | import io.apicurio.registry.rest.client.RegistryClient;
|
| 6 | +import io.apicurio.registry.rest.client.models.Error; |
6 | 7 | import io.apicurio.registry.types.ArtifactType;
|
7 | 8 | import io.apicurio.registry.types.ContentTypes;
|
8 | 9 | import io.apicurio.registry.types.VersionState;
|
@@ -69,9 +70,16 @@ public void testGeneratingCanonicalHashOnImport() throws Exception {
|
69 | 70 | The only way is to generate canonical hash and then search artifact by it. But that needs apicurio-registry-app module as dependency.
|
70 | 71 | */
|
71 | 72 |
|
72 |
| - var registryContent = client.groups().byGroupId(groupId).artifacts().byArtifactId(artifactId).versions().byVersionExpression("1").content().get(); |
73 |
| - assertNotNull(registryContent); |
74 |
| - assertEquals(content, IoUtil.toString(registryContent)); |
| 73 | + try { |
| 74 | + var registryContent = client.groups().byGroupId(groupId).artifacts().byArtifactId(artifactId).versions().byVersionExpression("1.0").content().get(); |
| 75 | + assertNotNull(registryContent); |
| 76 | + assertEquals(content, IoUtil.toString(registryContent)); |
| 77 | + } catch (Error e) { |
| 78 | + System.out.println("---"); |
| 79 | + System.out.println("REST CLIENT ERROR>> " + e.getDetail()); |
| 80 | + System.out.println("---"); |
| 81 | + throw e; |
| 82 | + } |
75 | 83 | }
|
76 | 84 |
|
77 | 85 | }
|
@@ -139,7 +147,7 @@ public InputStream generateExportedZip(Map<String, String> artifacts) {
|
139 | 147 | versionEntity.labels = null;
|
140 | 148 | versionEntity.name = null;
|
141 | 149 | versionEntity.state = VersionState.ENABLED;
|
142 |
| - versionEntity.version = "1"; |
| 150 | + versionEntity.version = "1.0"; |
143 | 151 | versionEntity.versionOrder = 1;
|
144 | 152 |
|
145 | 153 | writer.writeEntity(versionEntity);
|
|
0 commit comments