|
19 | 19 | ValidationInfo
|
20 | 20 | )
|
21 | 21 |
|
22 |
| -from contentctl.objects.constants import ESCU_APP_UID, DOWNLOADS_DIRECTORY |
| 22 | +from contentctl.objects.constants import DOWNLOADS_DIRECTORY |
23 | 23 | from contentctl.output.yml_writer import YmlWriter
|
24 | 24 | from contentctl.helper.utils import Utils
|
25 | 25 | from contentctl.objects.enums import PostTestBehavior, DetectionTestingMode
|
@@ -286,7 +286,7 @@ class inspect(build):
|
286 | 286 | default=None,
|
287 | 287 | description=(
|
288 | 288 | "Local path to the previous app build for metatdata validation and versioning "
|
289 |
| - "enforcement (defaults to the latest release of ESCU published on Splunkbase)." |
| 289 | + "enforcement (defaults to the latest release of the app published on Splunkbase)." |
290 | 290 | )
|
291 | 291 | )
|
292 | 292 | stack_type: StackType = Field(description="The type of your Splunk Cloud Stack")
|
@@ -317,14 +317,17 @@ def get_previous_package_file_path(self) -> pathlib.Path:
|
317 | 317 | latest version is downloaded from Splunkbase and it's filepath is returned, and saved to the
|
318 | 318 | in-memory config (so download doesn't happen twice in the same run).
|
319 | 319 |
|
320 |
| - :returns: Path object to previous ESCU build |
| 320 | + :returns: Path object to previous app build |
321 | 321 | :rtype: :class:`pathlib.Path`
|
322 | 322 | """
|
323 | 323 | previous_build_path = self.previous_build
|
324 | 324 | # Download the previous build as the latest release on Splunkbase if no path was provided
|
325 | 325 | if previous_build_path is None:
|
326 |
| - print("Downloading latest ESCU build from Splunkbase to serve as previous build during validation...") |
327 |
| - app = SplunkApp(app_uid=ESCU_APP_UID) |
| 326 | + print( |
| 327 | + f"Downloading latest {self.app.label} build from Splunkbase to serve as previous " |
| 328 | + "build during validation..." |
| 329 | + ) |
| 330 | + app = SplunkApp(app_uid=self.app.uid) |
328 | 331 | previous_build_path = app.download(
|
329 | 332 | out=pathlib.Path(DOWNLOADS_DIRECTORY),
|
330 | 333 | username=self.splunk_api_username,
|
|
0 commit comments