Skip to content

Instantly share code, notes, and snippets.

View danieltalsky's full-sized avatar

Daniel Talsky danieltalsky

View GitHub Profile
@danieltalsky
danieltalsky / out.txt
Created February 24, 2017 19:08
Gulp Build Error Output (Windows)
This file has been truncated, but you can view the full file.
time="2017-02-24T11:09:16-05:00" level=error msg="Can't add file \\\\?\\C:\\xampp\\htdocs\\talentinc\\products\\vendor\\phpunit\\php-code-coverage\\LICENSE to tar: read \\\\?\\C:\\xampp\\htdocs\\talentinc\\products\\vendor\\phpunit\\php-code-coverage\\LICENSE: Data error (cyclic redundancy check)."
time="2017-02-24T11:09:16-05:00" level=error msg="Can't add file \\\\?\\C:\\xampp\\htdocs\\talentinc\\products\\vendor\\phpunit\\php-code-coverage\\README.md to tar: archive/tar: missed writing 1551 bytes"
time="2017-02-24T11:09:16-05:00" level=error msg="Can't add file \\\\?\\C:\\xampp\\htdocs\\talentinc\\products\\vendor\\phpunit\\php-code-coverage\\build.xml to tar: archive/tar: missed writing 1551 bytes"
time="2017-02-24T11:09:16-05:00" level=error msg="Can't add file \\\\?\\C:\\xampp\\htdocs\\talentinc\\products\\vendor\\phpunit\\php-code-coverage\\composer.json to tar: archive/tar: missed writing 1551 bytes"
time="2017-02-24T11:09:16-05:00" level=error msg="Can't add file \\\\?\\C:\\xampp\\htdocs\\talenti
Scenario Outline: The maximum credit card limit depends on the customer's salary
A customer needs a salary of at least £10,000.
There are two types of card, one with a limit of £2500,
and another with a limit of £5000
Given an individual customer with an annual salary of <Salary>
When the customer applies for a credit card
Then the credit card application should be <Approved or Refused>
And if approved, the maximum credit limit should be <Max Limit>
Feature: The Order Management Service accurately captures and stores orders
# This scenario would be the first to implement
Scenario: When a new Package is created in Thor, a related order will accurately appear in the Order Management Service
Given a new Package has been created in Thor
When a Customer is created and associated with the Package
And a Billing Address is created and associated with the Package
And a Delivery Address is created and associated with the Package
And an Insurance Policy is created and associated with the Package
And a Dispensing Plan is created and associated with the Package
Scenario: When a new package in thor is created, a related order will appear in the order management system.
Given a newly created package in thor
When no action is taken
Then a related order in the order-management service will be present
Scenario Outline: When a package in thor is adjudicated, it will appear accurately in the order management system
Given all package treatments associated with a package are transitioned to adjucation_complete
When the package is adjudicated
Then the status of the related order in the Ordermanagment service will appear will updated to <New Status>
#
# Order management service shortcuts
#
# Go to OM
alias om="cd ~/repos/order-management-service"
# ROLES
function omsandbox() {
unset AWS_PROFILE
@danieltalsky
danieltalsky / gsdd_product_68462-0188.json
Created September 14, 2021 20:53
GSDD return for 68462-0188
{
"ProductIds": [
{
"IdType": "ProductId",
"Id": "48875"
},
{
"IdType": "NDC9",
"Id": "68462-0188"
}
@danieltalsky
danieltalsky / gsdd_product_list_68462-0188.json
Created September 14, 2021 21:32
GSDD product list return for 68462-0188
{
"Products": [
{
"BrandGenericStatus": "Generic",
"FederalDEAClass": "NA",
"IngredientStrengthRouteFormInfo": [
{
"FDAForm": {
"Id": 37,
"Name": "Tab"
@danieltalsky
danieltalsky / output.log
Last active January 21, 2022 20:25
Failing BDD Test Log
@facility-selection
Feature: The Order Management Service accurately selects a facility based on information about an order # tests/integration/features/facility_selection.feature:2
{"message": "Putting DynamoDB item", "levelname": "DEBUG", "pathname": "/Users/dt/.local/share/virtualenvs/order-management-service-PZpAi_Z5/lib/python3.8/site-packages/divvydose/aws_utils/dynamodb.py", "funcName": "put_item", "lineno": 245, "table": "order-management_orders-20220120220435933", "item": {"degree": "Doctor", "directories_prescriber_id": "54bea4cc-1eaf-4637-818b-a82be3506227", "first_name": "Alice", "last_name": "Doctor", "middle_initial": null, "title": "Doctor", "thor_prescriber_id": "a999eb8c-7763-41e8-b7a4-e40289ff78fb", "PK": "Prescriber#a999eb8c-7763-41e8-b7a4-e40289ff78fb", "SK": "Prescriber#54bea4cc-1eaf-4637-818b-a82be3506227", "entity": "Prescriber"}, "condition": null, "timestamp": "2022-01-21T19:36:52.884181Z"}
{"message": "Received DynamoDB response", "levelname": "DEBUG", "pathname": "/Users/dt/.local/s
{
"ProductIds": [
{
"IdType": "ProductId",
"Id": "79257"
},
{
"IdType": "NDC9",
"Id": "65757-0402"
}
@danieltalsky
danieltalsky / last_name_does_not_start_with_g_or_h.py
Created June 24, 2022 15:51
Checks that Last Names do not start with G or H
import re
class IsUnfortunatelyALowerCasedName(ValueError):
pass
class IsActuallyAFirstName(ValueError):
pass