Skip to content

Commit

Permalink
CI stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaddox5 committed Dec 13, 2023
1 parent 892e1ab commit 5bc73e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
63 changes: 0 additions & 63 deletions lib/screenplay/outfront/sftp_test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,69 +7,6 @@ defmodule Screenplay.Outfront.SFTPTest do

@retries 3

@stations_to_outfront_directories %{
"Park Street" => "001_XFER_RED_GREEN_PARK",
"Downtown Crossing" => "002_XFER_RED_ORANGE_SILVER_DOWNTOWNCROSSING",
"South Station" => "003_XFER_RED_SILVER_CR_SOUTHSTATION",
"North Station" => "004_XFER_ORANGE_GREEN_CR_NORTHSTATION",
"Haymarket" => "005_XFER_ORANGE_GREEN_HAYMARKET",
"State" => "006_XFER_ORANGE_BLUE_STATE",
"Government Center" => "007_XFER_BLUE_GREEN_GOVERNMENTCENTER",
"Alewife" => "008_RED_ALEWIFE",
"Davis" => "009_RED_DAVIS",
"Porter" => "010_RED_CR_PORTER",
"Harvard" => "011_RED_HARVARD",
"Central" => "012_RED_CENTRAL",
"Kendall/MIT" => "013_RED_KENDALL",
"Charles/MGH" => "014_RED_CHARLES",
"Broadway" => "015_RED_BROADWAY",
"Andrew" => "016_RED_ANDREW",
"JFK/UMass" => "017_RED_CR_JFKUMASS",
"Savin Hill" => "018_A_RED_SAVINHILL",
"Fields Corner" => "019_A_RED_FIELDSCORNER",
"Shawmut" => "020_A_RED_SHAWMUT",
"Ashmont" => "021_A_RED_ASHMONT",
"North Quincy" => "022_B_RED_NORTHQUINCY",
"Wollaston" => "023_B_RED_WOLLASTON",
"Quincy Center" => "024_B_RED_CR_QUINCYCENTER",
"Quincy Adams" => "025_B_RED_QUINCYADAMS",
"Braintree" => "026_B_RED_CR_BRAINTREE",
"Oak Grove" => "034_ORANGE_OAKGROVE",
"Malden Center" => "035_ORANGE_CR_MALDENCENTER",
"Wellington" => "036_ORANGE_WELLINGTON",
"Assembly" => "037_ORANGE_ASSEMBLY",
"Sullivan Square" => "038_ORANGE_SULLIVAN",
"Community College" => "039_ORANGE_COMMUNITYCOLLEGE",
"Chinatown" => "040_ORANGE_SILVER_CHINATOWN",
"Tufts Medical Center" => "041_ORANGE_SILVER_TUFTSMEDICAL",
"Back Bay" => "042_ORANGE_CR_BACKBAY",
"Massachusetts Avenue" => "043_ORANGE_MASSAVE",
"Ruggles" => "044_ORANGE_CR_RUGGLES",
"Roxbury Crossing" => "045_ORANGE_ROXBURYCROSSING",
"Jackson Square" => "046_ORANGE_JACKSON",
"Stony Brook" => "047_ORANGE_STONYBROOK",
"Green Street" => "048_ORANGE_GREENST",
"Forest Hills" => "049_ORANGE_CR_FORESTHILLS",
"Wonderland" => "050_BLUE_WONDERLAND",
"Revere Beach" => "051_BLUE_REVEREBEACH",
"Beachmont" => "052_BLUE_BEACHMONT",
"Suffolk Downs" => "053_BLUE_SUFFOLKDOWNS",
"Orient Heights" => "054_BLUE_ORIENTHEIGHTS",
"Wood Island" => "055_BLUE_WOODISLAND",
"Airport" => "056_BLUE_SILVER_AIRPORT",
"Maverick" => "057_BLUE_MAVERICK",
"Aquarium" => "058_BLUE_AQUARIUM",
"Bowdoin" => "059_BLUE_BOWDOIN",
"Boylston" => "062_GREEN_SILVER_BOYLSTON",
"Arlington" => "063_GREEN_ARLINGTON",
"Copley" => "064_GREEN_COPLEY",
"Hynes Convention Center" => "065_GREEN_HYNES",
"Kenmore" => "066_GREEN_KENMORE",
"Prudential" => "111_E_GREEN_PRUDENTIAL",
"Symphony" => "112_E_GREEN_SYMPHONY",
"World Trade Center" => "125_1_2_3_SILVER_WORLDTRADE"
}

def list_directories do
conn = start_connection()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule ScreenplayWeb.OutfrontTakeoverTool.AlertController do
use ScreenplayWeb, :controller

alias Screenplay.Outfront.SFTP
alias Screenplay.Outfront.{SFTP, SFTPTest}
alias Screenplay.OutfrontTakeoverTool.Alerts.{Alert, State}
alias ScreenplayWeb.UserActionLogger

Expand Down Expand Up @@ -119,7 +119,7 @@ defmodule ScreenplayWeb.OutfrontTakeoverTool.AlertController do

def test_sftp_connection(conn, _) do
message =
case Screenplay.Outfront.SFTPTest.list_directories() do
case SFTPTest.list_directories() do
{:ok, contents} -> contents
{:error, error} -> error
end
Expand Down

0 comments on commit 5bc73e0

Please sign in to comment.