Commit Graph

131 Commits (2964e0663957218392fd94645f269826072a502a)

Author SHA1 Message Date
Adam Townsend 2964e06639 added before and after actions
+ before initializes the db
+ after cleans the db
2023-10-12 11:40:15 -07:00
Adam Townsend d1a0fc0222 change request to use the /links path, to fit more into a RESTful API
format

+ also renamed the test to better describe the behavior
2023-10-12 11:32:00 -07:00
Adam Townsend 4a82174526 implemented API create endpoint
+ added plugins to read json and access the header to parse the request
  for an API request
+ fixed logic where url param is nil
+ refactored the new code to a variable to be reused easier
+ if CONTENT_TYPE header is application/json, reply with json
- there could be more refactoring (maybe separating it to a different
  endpoint) to handle other scenarios, we'll work on that later
2023-10-11 19:21:43 -07:00
Adam Townsend 3ae20255f6 DRY it out a little 2023-10-11 19:21:21 -07:00
Adam Townsend f69c53bf29 removed unnecessary variable 2023-10-11 19:20:07 -07:00
Adam Townsend 7d6c098047 added more to the spec test for creating a new link 2023-10-11 19:18:47 -07:00
Adam Townsend 3421e18f21 added more logic for running tests without killing the whole pipeline, and outputting rspec results 2023-10-11 12:05:33 -07:00
Adam Townsend 0dec27a01c added rspec step in tests stage, adjusted should clause 2023-10-11 11:04:08 -07:00
Adam Townsend c45cf6ab51 started building out rspec specs for API functionality 2023-10-11 11:01:46 -07:00
Adam Townsend e50667b392 split homepage out into homepage and submit feature sets 2023-10-10 17:29:23 -07:00
bucky d4db64f404 Merge pull request 'cucumber-jenkins' (#20) from cucumber-jenkins into master
Reviewed-on: #20
2023-10-10 17:22:55 -07:00
Adam Townsend 05858078d1 added unstable scenario 2023-10-10 17:20:25 -07:00
Adam Townsend f75f0378bf separate out success and failure tasks 2023-10-10 17:16:24 -07:00
Adam Townsend c3d2fb32e2 added icon for message 2023-10-10 17:11:05 -07:00
Adam Townsend 1fe30fc7e7 removed jenkins cucumber section, use the html formatter instead
also added more info to the success message
2023-10-10 17:05:33 -07:00
Adam Townsend 43cc151138 moved stuff around a little more 2023-10-10 14:50:01 -07:00
Adam Townsend 1fee4f276d maybe put both files in the same report 2023-10-10 14:47:09 -07:00
Adam Townsend 0b17f36fde added more test results, just exploring 2023-10-10 14:43:11 -07:00
Adam Townsend aca92fdae1 cleaned up message a bit for success 2023-10-10 14:32:54 -07:00
Adam Townsend c7bf62062a wrap it 2023-10-10 14:28:41 -07:00
Adam Townsend b853ca6fe4 trying to make the message cleaner, and print the env to take a look at other options 2023-10-10 14:25:59 -07:00
Adam Townsend d5919fc82a got it working with vars, now try the URLs 2023-10-10 14:23:44 -07:00
Adam Townsend e2395989f4 try normal quotes 2023-10-10 14:22:30 -07:00
Adam Townsend e93868a483 try DB_NAME since the others are failing 2023-10-10 14:19:59 -07:00
Adam Townsend 7f6fc24872 maybe this one will work 2023-10-10 14:17:48 -07:00
Adam Townsend 776ec0d30d trying different env vars 2023-10-10 14:10:50 -07:00
Adam Townsend 6861740d00 bots can't be easily used with incoming webhooks, but let's try some URLs 2023-10-10 14:05:18 -07:00
Adam Townsend 77e72d18e1 use the bot's endpoint 2023-10-10 13:50:48 -07:00
Adam Townsend 1792d94082 extra , syntax error in jenkins file 2023-10-10 13:30:40 -07:00
Adam Townsend 16d17bcadb added icon 2023-10-10 13:27:40 -07:00
Adam Townsend f5d1361d59 swapped text/message 2023-10-10 13:10:19 -07:00
Adam Townsend c4932dd6cc message to mattermost example 2023-10-10 13:02:31 -07:00
Adam Townsend 031a30ed5f send slack message to mattermost for cucumber results 2023-10-10 10:52:14 -07:00
bucky cc1fe1c3b7 Merge pull request 'cucumber-jenkins' (#19) from cucumber-jenkins into master
Reviewed-on: #19
2023-10-10 09:44:14 -07:00
Adam Townsend 72e1cee9d5 split features into 2 separate feature files 2023-10-09 20:19:34 -07:00
Adam Townsend a90ff753b1 use cucumber plugin 2023-10-09 18:52:48 -07:00
Adam Townsend b6010cd431 remove the config in there 2023-10-09 18:37:46 -07:00
Adam Townsend 33bfb23405 add a setting for it 2023-10-09 18:35:50 -07:00
Adam Townsend ad4f8492d4 add jenkins cucumber functionality 2023-10-09 18:30:50 -07:00
bucky e6cc0959a4 Merge pull request 'invalid-urls' (#18) from invalid-urls into master
Reviewed-on: #18
2023-10-07 21:13:53 -07:00
Adam Townsend 5bce31baf2 refactored missing link scenario to make more sense
+ 404 code, stay on the current page, and load the form
+ also simplified the logic for the create action if the link doesn't
  already exist
2023-10-07 21:11:12 -07:00
Adam Townsend c7fee27623 update for missing link scenario
+ if the link isn't found, don't redirect it, keep it on the same page
+ it should have a status code of 404
+ it should have the form fields as well

+ added page status check
2023-10-07 21:10:16 -07:00
Adam Townsend f8499a79c2 check if the link exists, redirects home if it doesn't 2023-10-07 13:38:10 -07:00
Adam Townsend b97ee3f3bb use the correct clause format since staying on site 2023-10-07 13:37:51 -07:00
Adam Townsend beb9b0c14a added new scenario 2023-10-07 13:27:00 -07:00
bucky c874426f2e Merge pull request 'simplecov-jenkins-output' (#17) from simplecov-jenkins-output into master
Reviewed-on: #17
2023-10-07 09:27:01 -07:00
Adam Townsend c77cf2cb78 trying to get assets to load as well, and keep previous reports 2023-10-07 09:13:46 -07:00
Adam Townsend 02e95ae916 added report results stage that includes the step to publish the
simplecov results to Jenkins
2023-10-07 09:03:39 -07:00
bucky 0f0838ae5a Merge pull request 'jenkins-file' (#15) from jenkins-file into master
Reviewed-on: #15
2023-10-06 20:49:11 -07:00
Adam Townsend 47e5a093b4 added tests stage to jenkinsfile and added a note to the readme about pkgconf 2023-10-06 20:00:04 -07:00