Skip to content

Commit

Permalink
Merge pull request #2 from Ostorlab/updating_name
Browse files Browse the repository at this point in the history
Updating name
  • Loading branch information
3asm authored Jan 28, 2022
2 parents b156297 + 8139e7d commit 4f9f3f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN pip install --prefix=/install -r /requirement.txt
FROM base
COPY --from=builder /install /usr/local
RUN mkdir -p /app/agent
ENV PYTHONPATH=/app
COPY agent /app/agent
COPY ostorlab.yaml /app/agent/ostorlab.yaml
WORKDIR /app
CMD ["python3", "/app/agent/agent.py"]
CMD ["python3", "/app/agent/virus_total_agent.py"]
File renamed without changes.
2 changes: 1 addition & 1 deletion ostorlab.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Agent
name: virustotal_agent
name: virustotal
version: 0.0.1
description: Agent responsible for scanning files through the Virus Total public API.
in_selectors:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ostorlab.agent import definitions as agent_definitions
from ostorlab.runtimes import definitions as runtime_definitions

from agent import agent as virustotal_agent
from agent import virus_total_agent


@pytest.fixture(name='message')
Expand Down Expand Up @@ -42,7 +42,7 @@ def create_virustotal_agent():
bus_exchange_topic='NA',
)

agent = virustotal_agent.VirusTotalAgent(
agent = virus_total_agent.VirusTotalAgent(
definition,
settings,
)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ def testVirusTotalAgent_when_virusTotalApiReturnsValidResponse_noRaiseVirusTotal
and finally emits a message of type v3.report.vulnerability with the details above.
"""

def virustotal_valid_response(message): # pylint: disable=W0613
def virustotal_valid_response(message):
"""Method for mocking the Virus Total public API valid response."""
del message
response = {
'results': {
'scans': {
Expand Down

0 comments on commit 4f9f3f8

Please sign in to comment.