Skip to content

Commit

Permalink
fix: behave integration tests (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente authored Jul 25, 2024
1 parent 7cf65dd commit 6245977
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/features/ingestion_device_type_objects.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Scenario: Ingestion of existing device type
@ingestion.device_type
Scenario: Ingestion of device type object to update the manufacturer, description and part number
Given device type "ISR4321-1" with manufacturer "Cisco-1", description "some string" and part number "xyz123"
Then check if the manufacturer "Cisco" exists in the database and remove it
Then check if the manufacturer "Cisco-1" exists in the database and remove it
When the device type object is ingested with the updates
Then the manufacturer "Cisco-1" is created and the device updated
2 changes: 1 addition & 1 deletion tests/features/steps/ingestion_device_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def assert_device_type(context, device_type_model):
def assert_device_role(context, device_role_name):
"""Assert that the device role is correct."""
assert context.existing_device is not None
assert context.existing_device.get("device_role").get("name") == device_role_name
assert context.existing_device.get("role").get("name") == device_role_name


@then('tags "{tags}" are present')
Expand Down
2 changes: 1 addition & 1 deletion tests/features/steps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def ingester(entities):
"""Ingest the site object using the Diode SDK"""
api_key = str(configs["api_key"])
with DiodeClient(
target="localhost:8081",
target="grpc://localhost:8081",
app_name="my-test-app",
app_version="0.0.1",
api_key=api_key,
Expand Down

0 comments on commit 6245977

Please sign in to comment.