Nell Shamrell-Harrington
Nell Shamrell-Harrington
if the number of *_spec.rb files in test/integration/default is >= the number of .rb files in recipes/ the metric passes. if the number of *_spec.rb files in test/integration/default is
We can find the number of files in the test/integration/default/ directory like this: ``` $ octokit.contents('nellshamrell/nell-workstation', path: 'test/integration/default').count => 4 ``` But, I don't believe it will count files recursively....
Here is what I am thinking of as an implementation in pseudo code ```ruby contents = octokit.contents('user/repo', path: 'test/integration/default') spec_files = [] directories = [] contents.each do |item| if item[:type]...
That is correct, file is really item in that block. Sounds like recursion is indeed the correct path, working on a way to do it without that else if
Updated - recursion style! (Draft 1, at least) ```ruby def get_all_spec_files(repo, path) initial_contents = octokit.contents(repo, path: path) sorted_contents = sort_contents(initial_contents) spec_files = sorted_contents[:spec_files] sub_directories = sorted_contents[:sub_directories] while sub_directories.any? sub_directories.each do...
Fieri - [x] Add IntegrationTestsWorker to Fieri - [ ] IntegrationTestsWorker finds all spec files in top level dir of test/integration/default - [ ] IntegrationTestsWorker finds all spec files recursively...
@kplimack does your Supermarket instance run behind a load balancer? If it does, does SSL termination happen at the load balancer, or on the instance that Supermarket is running on?
Could you enter the rails console on the instance you are running Supermarket on? You can do this by SSH'ing to the instance and running $ sudo -u supermarket supermarket-ctl...
Alright, that FIERI_URL looks correct, and ty for demonstrating that you can curl it successfully. Taking another look at the stack trace.
What do you have for ENV['FIERI_SUPERMARKET_ENDPOINT']? After taking another look at your stack trace, that seems to be what it is choking on.