---
depends_on: "base_test.yaml"
designs:
  - devices:
      - "!create_or_update:name": "test device"
        "!create_or_update:device_type__manufacturer__name": "manufacturer1"
        "role__name": "device role"
        "location__name": "Site"
        "status__name": "Active"
checks:
  - equal:
      - model: "nautobot.dcim.models.DeviceType"
        query: {model: "model name"}
        attribute: "manufacturer.name"
      - value: ["manufacturer1"]
  - equal:
      - model: "nautobot.dcim.models.DeviceType"
        query: {model: "model name"}
      - model: "nautobot.dcim.models.Device"
        query: {name: "test device"}
        attribute: "device_type"
