Skip to content

Commit 68d3d42

Browse files
authored
Merge pull request #175 from splunk/removing_rest_deploy
Removing rest_deploy, apav_deploy
2 parents a6db215 + 0938b42 commit 68d3d42

File tree

7 files changed

+5
-268
lines changed

7 files changed

+5
-268
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ apps*
1010
test_results*
1111
attack_data*
1212
security_content/
13+
contentctl.yml
1314

1415
# Byte-compiled / optimized / DLL files
1516
__pycache__/

contentctl/actions/apav_deploy.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

contentctl/actions/api_deploy.py

Lines changed: 0 additions & 151 deletions
This file was deleted.
File renamed without changes.

contentctl/actions/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def inspectAppAPI(self, config: inspect)->str:
6161
if not package_path.is_file():
6262
raise Exception(f"Cannot run Appinspect API on App '{config.app.title}' - "
6363
f"no package exists as expected path '{package_path}'.\nAre you "
64-
"trying to 'contentctl acs_deploy' the package BEFORE running 'contentctl build'?")
64+
"trying to 'contentctl deploy_acs' the package BEFORE running 'contentctl build'?")
6565

6666
files = {
6767
"app_package": open(package_path,"rb"),

contentctl/contentctl.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import tyro
66

77
from contentctl.actions.initialize import Initialize
8-
from contentctl.objects.config import init, validate, build, new, deploy_acs, deploy_rest, test, test_servers, inspect, report, test_common, release_notes
8+
from contentctl.objects.config import init, validate, build, new, deploy_acs, test, test_servers, inspect, report, test_common, release_notes
99
from contentctl.actions.validate import Validate
1010
from contentctl.actions.new_content import NewContent
1111
from contentctl.actions.detection_testing.GitService import GitService
@@ -96,11 +96,7 @@ def new_func(config:new):
9696

9797
def deploy_acs_func(config:deploy_acs):
9898
#This is a bit challenging to get to work with the default values.
99-
raise Exception("deploy acs not yet implemented")
100-
101-
def deploy_rest_func(config:deploy_rest):
102-
raise Exception("deploy rest not yet implemented")
103-
99+
raise Exception("deploy acs not yet implemented")
104100

105101
def test_common_func(config:test_common):
106102
director_output_dto = build_func(config)
@@ -176,8 +172,7 @@ def main():
176172
"test":test.model_validate(config_obj),
177173
"test_servers":test_servers.model_construct(**t.__dict__),
178174
"release_notes": release_notes.model_construct(**config_obj),
179-
"deploy_acs": deploy_acs.model_construct(**t.__dict__),
180-
#"deploy_rest":deploy_rest()
175+
"deploy_acs": deploy_acs.model_construct(**t.__dict__)
181176
}
182177
)
183178

@@ -210,8 +205,6 @@ def main():
210205
elif type(config) == deploy_acs:
211206
updated_config = deploy_acs.model_validate(config)
212207
deploy_acs_func(updated_config)
213-
elif type(config) == deploy_rest:
214-
deploy_rest_func(config)
215208
elif type(config) == test or type(config) == test_servers:
216209
if type(config) == test:
217210
#construct the container Infrastructure objects

contentctl/objects/config.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,6 @@ class Infrastructure(BaseModel):
273273
instance_name: str = Field(...)
274274

275275

276-
class deploy_rest(build):
277-
model_config = ConfigDict(use_enum_values=True,validate_default=True, arbitrary_types_allowed=True)
278-
279-
target:Infrastructure = Infrastructure(instance_name="splunk_target_host", instance_address="localhost")
280-
#This will overwrite existing content without promprting for confirmation
281-
overwrite_existing_content:bool = Field(default=True, description="Overwrite existing macros and savedsearches in your enviornment")
282-
283-
284276
class Container(Infrastructure):
285277
model_config = ConfigDict(use_enum_values=True,validate_default=True, arbitrary_types_allowed=True)
286278
instance_address:str = Field(default="localhost", description="Address of your splunk server.")

0 commit comments

Comments
 (0)