18F / culper

Culper is the foundation for eApp, a part of the National Background Investigation System (NBIS), supporting the SF-86, SF-85, and SF-85P. This is its source code and developer documentation. For background information and a demo video see https://github.com/18F/culper/wiki
Other
27 stars 22 forks source link

fix specs #441

Closed afeld closed 5 years ago

afeld commented 6 years ago

What did you do?

Ran make specs.

What did you expect to see?

Something...?

What did you see instead?

No output, and the process ended almost immediately, seemingly without running the specs.

Additional Information

Integration with CircleCI or NBIS self-hosted CI is out of scope for this ticket and will be a follow-on.

ryanhofdotgov commented 6 years ago

I've not dived into this area on the project yet, but essentially:

afeld commented 6 years ago

the process described here

Heh, remembered that doc right after creating this issue. Thanks!

the previous team did not feel they were appropriate to run in conjunction with the other automated tests that run CircleCI

What if we parallelized them, or ran nightly or something?

ryanhofdotgov commented 6 years ago

Right - running nightly seemed appropriate when the team discussed it last.

afeld commented 6 years ago

Repurposing this issue for getting the specs passing, not just running.

line47 commented 5 years ago

Have all the PRs in for getting the specs working as they were written. There is still more spec work to be done as a few of the specs had commented out sections.

In addition, there is some redundant code that can be refactored for example navigating to sections.

ryanhofdotgov commented 5 years ago

@line47 Just looking at it now... I get this error when I try to run make specs:

[e-QIP-prototype]# make specs
Running integration test suite
Starting eqipprototype_web_1 ... 
Starting eqipprototype_hub_1 ... done
Starting eqipprototype_chrome_1 ... done
Building nightwatch
ERROR: Forbidden path outside the build context: ../conf/docker/Dockerfile.frontend ()
make: *** [specs] Error 1

Does that work on your machine?

ryanhofdotgov commented 5 years ago

Ran into a different error after quickly trying to resolve above. As Scott's is focusing on design tasks for time being, moving this back to backlog. The underlying spec tests issues are resolved, it's just this top-level docker/build issue.

ryanhofdotgov commented 5 years ago

@line47 Is this something you think you pick up again and carry over the finish line?

line47 commented 5 years ago

@ryanhofdotgov Yep - that sounds good!

line47 commented 5 years ago

@apburnes I'd love your help getting Selenium/nightwatch working locally so I can begin to dive into these specs/tests

apburnes commented 5 years ago

@line47 sounds good! Should we look at it this afternoon?

line47 commented 5 years ago

I'd love that ❤️ @apburnes

ryanhofdotgov commented 5 years ago

Originally thought that current state had the spec tests working and this was just a docker/Makefile issue (i.e, a light lift).

Let's revisit in October. Scott and I believe it may have to do with using SAML authentication vs the simple authentication. As SAML authentication is the production configuration, I think it makes sense for the specs tests to be using that approach.

ryanhofdotgov commented 5 years ago

@gidjin For the scope of this ticket, it's just to have a documented process that runs whatever tests are there, not necessarily to make sure all the tests are passing; e.g., make specs should run the tests. If there are pre-reqs/environment conditions (e.g, BASIC_AUTH, etc.) for that to work, then those should be documented.