Skip to content

Commit

Permalink
Orca 845 (#89)
Browse files Browse the repository at this point in the history
* Current progress

* Websocket implementation

* Fixing routes

* Adding url

* Fixed websocket connection

* Progress 7/9

* Added some channel logic

* Changes to models.go

* Working on log streaming for plan

* Beginning tests/Having errors

* Log Streaming Logic

* fixed test

* Added Testing

* Fixed websocket connection

* Async implementation and test error fixes

* Changes to variables in tests

* Debugging

* Fixed UI in webpage terminal

* Fixing Run make-test coverage

* Fixing tests

* Testing

* Deleted txt.act files

* Fixing broken tests

* Changes to terraform_client testing

* Fixed tests in terraform_client_internal_test.go

* Fixed failing test

* Deleted lines causing test to fail

* Reformating

* More Reformatting

* Run make check-lint corrections

* Added error check

* Fixing check-lint test

* Suggested changes prior to merge

Co-authored-by: Isata Sankoh <[email protected]>
  • Loading branch information
2 people authored and Aayyush committed Dec 9, 2021
1 parent 6e9e4ba commit 1f17490
Show file tree
Hide file tree
Showing 68 changed files with 1,220 additions and 1,643 deletions.
16 changes: 12 additions & 4 deletions server/controllers/events/events_controller_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
e2eStatusUpdater := &events.DefaultCommitStatusUpdater{Client: e2eVCSClient, TitleBuilder: vcs.StatusTitleBuilder{TitlePrefix: "atlantis"}}
e2eGithubGetter := mocks.NewMockGithubPullGetter()
e2eGitlabGetter := mocks.NewMockGitlabMergeRequestGetter()
tempchan := make(chan *models.TerraformOutputLine)

// Real dependencies.
logger := logging.NewNoopLogger(t)
Expand All @@ -830,7 +831,7 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
GithubUser: "github-user",
GitlabUser: "gitlab-user",
}
terraformClient, err := terraform.NewClient(logger, binDir, cacheDir, "", "", "", "default-tf-version", "https://releases.hashicorp.com", &NoopTFDownloader{}, false)
terraformClient, err := terraform.NewClient(logger, binDir, cacheDir, "", "", "", "default-tf-version", "https://releases.hashicorp.com", &NoopTFDownloader{}, false, tempchan)
Ok(t, err)
boltdb, err := db.New(dataDir)
Ok(t, err)
Expand Down Expand Up @@ -934,12 +935,14 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
TerraformExecutor: terraformClient,
DefaultTFVersion: defaultTFVersion,
},
WorkingDir: workingDir,
Webhooks: &mockWebhookSender{},
WorkingDirLocker: locker,
PullApprovedChecker: e2eVCSClient,
WorkingDir: workingDir,
Webhooks: &mockWebhookSender{},
WorkingDirLocker: locker,
AggregateApplyRequirements: &events.AggregateApplyRequirements{
WorkingDir: workingDir,
},
TerraformOutputChan: tempchan,
}

dbUpdater := &events.DBUpdater{
Expand Down Expand Up @@ -1053,6 +1056,11 @@ func setupE2E(t *testing.T, repoDir string) (events_controllers.VCSEventsControl
repoAllowlistChecker, err := events.NewRepoAllowlistChecker("*")
Ok(t, err)

go func() {
for range tempchan {
}
}()

ctrl := events_controllers.VCSEventsController{
TestingMode: true,
CommandRunner: commandRunner,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1f17490

Please sign in to comment.