Skip to content

Commit

Permalink
Merge pull request #35 from nifcloud/fix/close-hatoba-and-script
Browse files Browse the repository at this point in the history
Remove hatoba and script
  • Loading branch information
tunakyonn authored Mar 18, 2024
2 parents aa98b44 + 538b609 commit 4a2c638
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 42 deletions.
14 changes: 0 additions & 14 deletions nifcloudcli/data/_retry.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,6 @@
"general_server_error": {"$ref": "general_server_error"}
}
}
},
"hatoba": {
"__default__": {
"policies": {
"general_server_error": {"$ref": "general_server_error"}
}
}
},
"script": {
"__default__": {
"policies": {
"general_server_error": {"$ref": "general_server_error"}
}
}
}
}
}
17 changes: 0 additions & 17 deletions nifcloudcli/data/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,6 @@
"jp-west-1": {}
}
},
"hatoba": {
"endpoints": {
"jp-east-1": {}
}
},
"script" : {
"endpoints" : {
"aws-global" : {
"credentialScope" : {
"region" : "jp-east-1"
},
"hostname" : "script.api.nifcloud.com"
}
},
"isRegionalized" : false,
"partitionEndpoint" : "aws-global"
},
"ess" : {
"endpoints" : {
"aws-global" : {
Expand Down
5 changes: 0 additions & 5 deletions nifcloudcli/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
def get_document_site_url(service_id, operation_name):
if service_id == "computing":
link = '%s/rest/%s.htm' % (NIFCLOUD_DOC_BASE, operation_name)
elif service_id == "script":
link = '%s/script/start.htm' % (NIFCLOUD_DOC_BASE)
elif service_id == "hatoba":
link = '%s/kubernetes-service-hatoba/%s.htm' % (NIFCLOUD_DOC_BASE,
operation_name)
elif service_id == "storage":
link = '%s/object-storage-service/%s.htm' % (NIFCLOUD_DOC_BASE,
operation_name)
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def test_cli_help(self):
"nas",
"dns",
"ess",
"script",
"storage",
"service-activity",
]
Expand Down
5 changes: 0 additions & 5 deletions tests/unit/test_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ def test_get_document_site_url_computing(self, operation):
expected = f"https://{self.DOC_DOMAIN}/api/rest/{operation}.htm"
assert actual == expected

def test_get_document_site_url_script(self):
actual = get_document_site_url("script", "")
expected = f"https://{self.DOC_DOMAIN}/api/script/start.htm"
assert actual == expected

@pytest.mark.parametrize(
"operation",
[
Expand Down

0 comments on commit 4a2c638

Please sign in to comment.