* Copyright (C) 2017 Amdocs
* =============================================================================
* Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
+ * Modifications (C) 2019 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
throw new RequestFailedException("Stop Server", msg, HttpStatus.BAD_GATEWAY_502, server);
}
rc.reset();
- // Locate snapshot image
+ // Locate snapshot image - image names containing colon must be prefixed by in: and surrounded with quotes
Image snapshot = null;
while (rc.attempt()) {
try {
- snapshot = service.getImageByName(snapshotName);
+ snapshot = service.getImageByName("in:\"" + snapshotName + "\"");
if (snapshot != null) {
break;
}
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * ================================================================================
+ * Modifications (C) 2019 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
verify(server).createSnapshot(createSnapshotCaptor.capture());
ArgumentCaptor<String> getImageNameCaptor = ArgumentCaptor.forClass(String.class);
verify(mg.getImageService(), atLeastOnce()).getImageByName(getImageNameCaptor.capture());
- assertEquals(createSnapshotCaptor.getValue(), getImageNameCaptor.getValue());
+ assertEquals("in:\"" + createSnapshotCaptor.getValue() + "\"", getImageNameCaptor.getValue());
}
}
\ No newline at end of file