Skip to content

Commit

Permalink
fix(deployment): fixed missing namespace while fetching manifest deta…
Browse files Browse the repository at this point in the history
…ils from clouddriver (#4453) (#4457)

(cherry picked from commit 435a5c3)

Co-authored-by: Krzysztof Kotula <[email protected]>
  • Loading branch information
mergify[bot] and kkotula committed May 18, 2023
1 parent 283c505 commit 7a0b18d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void deleteOrDisableOldManifest(
(name, manifest) -> {
var oldManifestIsUnstable =
this.manifestOperationsHelper.previousDeploymentNeitherStableNorFailed(
manifest.getAccount(), name);
manifest.getAccount(), manifest.getNamespace(), name);
var nextStageType =
oldManifestIsUnstable
? DeleteManifestStage.PIPELINE_CONFIG_TYPE
Expand Down Expand Up @@ -254,8 +254,8 @@ ImmutableList<String> getOldManifestNames(DeployedManifest dm) {
* @param name of the manifest
* @return true, if manifest was not deployed correctly and waits to get stable, false otherwise
*/
boolean previousDeploymentNeitherStableNorFailed(String account, String name) {
var oldManifest = this.oortService.getManifest(account, name, false);
boolean previousDeploymentNeitherStableNorFailed(String account, String location, String name) {
var oldManifest = this.oortService.getManifest(account, location, name, false);

var status = oldManifest.getStatus();
var notStable = !status.getStable().isState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ private void givenManifestIsNotStable() {
}

private void givenManifestIs(Manifest manifest) {
when(oortService.getManifest(anyString(), anyString(), anyBoolean())).thenReturn(manifest);
when(oortService.getManifest(anyString(), anyString(), anyString(), anyBoolean()))
.thenReturn(manifest);
}
}

0 comments on commit 7a0b18d

Please sign in to comment.