OS4J Version:
3.0.4-snapshot
Test Code:
VolumeSnapshot snapshotForce = os.blockStorage().snapshots().create(Builders.volumeSnapshot()
.name(snapshotName)
.volume(volume.getId())
.force(true)
.build());
System.out.println("snapshot id:\t" + snapshotForce.getId());
System.out.println("snapshot name:\t" + snapshotForce.getName());
System.out.println(os.blockStorage().snapshots().get(snapshotForce.getId()).getId());
assertEquals(snapshotName, os.blockStorage().snapshots().get(snapshotForce.getId()).getName());
Output:
snapshot id: 6980f66a-110d-4bcb-a7f9-eb8752395799
snapshot name: null
Analyze:
the package org.openstack4j.openstack.storage.block.domain has following codes:
@JsonProperty("display_name")
private String name;
@JsonProperty("display_description")
private String description;
While the API definition the name "name" not the desplay_name.
The same error with the description attribute.