mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-30 05:38:44 +00:00
* Moved CommandContext and CommandResult to models (#193) * Moved CommandContext and CommandResult to models * move from models to command rename CommandContext -> Context rename CommandResult -> Result * moved command related helpers into command package * move ProjectCommandContext and ProjectResult to command/project package * move project command context and project result * revert unrelated code * move tests * fix left over * fix linting * fix tests * remove unused import * fix project context dependencies * fix depenedecies * fix typo
33 lines
578 B
Go
33 lines
578 B
Go
package command_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/runatlantis/atlantis/server/events/command"
|
|
. "github.com/runatlantis/atlantis/testing"
|
|
)
|
|
|
|
func TestApplyCommand_String(t *testing.T) {
|
|
uc := command.Apply
|
|
|
|
Equals(t, "apply", uc.String())
|
|
}
|
|
|
|
func TestPlanCommand_String(t *testing.T) {
|
|
uc := command.Plan
|
|
|
|
Equals(t, "plan", uc.String())
|
|
}
|
|
|
|
func TestPolicyCheckCommand_String(t *testing.T) {
|
|
uc := command.PolicyCheck
|
|
|
|
Equals(t, "policy_check", uc.String())
|
|
}
|
|
|
|
func TestUnlockCommand_String(t *testing.T) {
|
|
uc := command.Unlock
|
|
|
|
Equals(t, "unlock", uc.String())
|
|
}
|