Skip to content

Commit a21edcf

Browse files
committed
Merge dev into main
2 parents 3325ef3 + fc7507c commit a21edcf

14 files changed

+78
-76
lines changed

.github/workflows/ci-pipeline__main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212
jobs:
1313

1414
run-tests:
15-
if: False # skipping tests due to circular dependency with OSBot-AWS
1615
name: "Run tests"
1716
runs-on: ubuntu-latest
1817
steps:
@@ -29,8 +28,8 @@ jobs:
2928
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
3029
with:
3130
release_type: ${{ env.RELEASE_TYPE }}
32-
# needs:
33-
# - run-tests
31+
needs:
32+
- run-tests
3433

3534
publish-to-pypi:
3635
name: "Publish to: PYPI"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## Repo details
44

5-
![Current Release](https://img.shields.io/badge/release-v0.5.0-blue)
5+
![Current Release](https://img.shields.io/badge/release-v0.5.2-blue)

osbot_local_stack/local_stack/Local_Stack__Internal.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ def requests__internal__get(self, action):
3939

4040
def requests__get(self, path):
4141
import requests
42-
from requests import RequestException
43-
from osbot_utils.utils.Objects import dict_to_obj
44-
from osbot_utils.utils.Http import url_join_safe
42+
from requests import RequestException
43+
from osbot_utils.testing.__helpers import dict_to_obj
44+
from osbot_utils.utils.Http import url_join_safe
4545

4646
try:
47-
url = url_join_safe(self.endpoint_url, path)
47+
url = url_join_safe(self.endpoint_url, path)
4848
json_data = requests.get(url).json()
49-
obj_data = dict_to_obj(json_data)
49+
obj_data = dict_to_obj(json_data)
5050
return obj_data
5151
except RequestException:
5252
return {}

osbot_local_stack/testing/TestCase__Local_Stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TestCase__Local_Stack(TestCase):
1010
@classmethod
1111
def setUpClass(cls):
1212
cls.local_stack = Local_Stack()
13-
cls.temp_asw_credentials = Temp_AWS_Credentials()
13+
cls.temp_asw_credentials = Temp_AWS_Credentials().with_localstack_credentials()
1414
cls.temp_asw_credentials.set_vars()
1515
if cls.aws_region is None:
1616
cls.aws_region = aws_config.region_name()

osbot_local_stack/testing/TestCase__Local_Stack__Temp_Bucket.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from osbot_local_stack.local_stack.Local_Stack__Internal import DEFAULT__LOCAL_STACK__TARGET_SERVER
2-
from osbot_utils.utils.Dev import pprint
3-
from osbot_utils.utils.Misc import random_text
4-
from osbot_utils.decorators.methods.cache_on_self import cache_on_self
5-
from osbot_aws.aws.s3.S3 import S3
6-
from osbot_local_stack.testing.TestCase__Local_Stack import TestCase__Local_Stack
2+
from osbot_utils.utils.Misc import random_text
3+
from osbot_utils.decorators.methods.cache_on_self import cache_on_self
4+
from osbot_aws.aws.s3.S3 import S3
5+
from osbot_local_stack.testing.TestCase__Local_Stack import TestCase__Local_Stack
76

87

98
class TestCase__Local_Stack__Temp_Bucket(TestCase__Local_Stack):

osbot_local_stack/testing/TestCase__Local_Stack__Temp_Lambda.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from osbot_utils.testing.Temp_Env_Vars import Temp_Env_Vars
2-
from osbot_aws.deploy.Deploy_Lambda import Deploy_Lambda
3-
from osbot_local_stack.aws.lambdas.dev.temp_lambda import run
1+
from osbot_utils.testing.Temp_Env_Vars import Temp_Env_Vars
2+
from osbot_aws.deploy.Deploy_Lambda import Deploy_Lambda
3+
from osbot_local_stack.aws.lambdas.dev.temp_lambda import run
44
from osbot_local_stack.testing.TestCase__Local_Stack__Temp_Bucket import TestCase__Local_Stack__Temp_Bucket
55

66
DEPLOY_LAMBDA__UPDATE_WAIT_TIME = 1.0

osbot_local_stack/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.5.0
1+
v0.5.2

poetry.lock

Lines changed: 38 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "osbot_local_stack"
3-
version = "v0.5.0"
3+
version = "v0.5.2"
44
description = "OWASP Security Bot - LLM"
55
authors = ["Dinis Cruz <[email protected]>"]
66
license = "MIT"

requirements-test.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
pytest
33
coverage
44

5+
requests
6+
7+
58

0 commit comments

Comments
 (0)