Skip to content

Commit

Permalink
fix: updated tests to use the new applicationName object
Browse files Browse the repository at this point in the history
  • Loading branch information
kkingavio committed Dec 4, 2023
1 parent d223512 commit b528e43
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -145,7 +151,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -244,7 +256,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand All @@ -267,7 +285,7 @@ muleDeploy {
is(equalTo([]))
assert actualApp instanceof OnPremDeploymentRequest
actualApp.with {
assertThat it.appName,
assertThat it.appName.normalizedAppName,
is(equalTo('the-app'))
assertThat it.environment,
is(equalTo('DEV'))
Expand Down Expand Up @@ -302,7 +320,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -352,7 +376,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -407,7 +437,13 @@ muleDeploy {
cloudHubApplication {
environment params.env
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
workerSpecs {
muleVersion params.env == 'DEV' ? '4.2.2' : '4.1.5'
Expand All @@ -418,7 +454,6 @@ muleDeploy {
clientId 'the_client_id'
clientSecret 'the_client_secret'
}
cloudHubAppPrefix 'AVI'
}
}
"""
Expand Down Expand Up @@ -490,7 +525,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -543,7 +584,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand All @@ -85,11 +91,16 @@ muleDeploy {
def dslText = """
muleDeploy {
version '1.0'
d
onPremApplication {
environment 'DEV'
d
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -132,7 +143,13 @@ muleDeploy {
onPremApplication {
environment params.env
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion versionsForEnvironments[params.env]
file '${builtFile}'
targetServerOrClusterName serverForEnvironments[params.env]
Expand Down

0 comments on commit b528e43

Please sign in to comment.