Feature: Sandbox Manager strategy cast path
  Exercises the cast("SandboxStrategyStr", boundary_resource.sandbox_strategy)
  line in get_or_create_sandbox_for_resource, which is reached whenever the
  boundary resource has a non-None sandbox_strategy.

  Background:
    Given smcast a sandbox factory instance
    And smcast a sandbox manager with the factory

  Scenario: get_or_create_sandbox_for_resource succeeds with SandboxStrategy.NONE
    Given smcast a boundary resource with strategy "NONE" and location "/tmp/smcast-none"
    When smcast I call get_or_create_sandbox_for_resource for plan "plan-smcast-1"
    Then smcast a sandbox is returned without error

  Scenario: get_or_create_sandbox_for_resource succeeds with SandboxStrategy.NONE on a second plan
    Given smcast a boundary resource with strategy "NONE" and location "/tmp/smcast-none-2"
    When smcast I call get_or_create_sandbox_for_resource for plan "plan-smcast-2"
    Then smcast a sandbox is returned without error
