Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip ANSI from output. #16

Open
elliotcourant opened this issue Oct 2, 2021 · 1 comment
Open

Strip ANSI from output. #16

elliotcourant opened this issue Oct 2, 2021 · 1 comment

Comments

@elliotcourant
Copy link

A failing test like this has some colored text using ANSI

image

It would be awesome if this action would strip that ANSI from the resulting annotation.

=== RUN   TestLogin/inactive_subscription
    reporter.go:23: 
        	Error Trace:	reporter.go:23
        	            				chain.go:21
        	            				string.go:115
        	            				authentication_test.go:95
        	Error:      	
        	            	expected string equal to:
        	            	 "/account/subscribe/failure"
        	            	
        	            	but got:
        	            	 "/account/subscribe"
        	Test:       	TestLogin/inactive_subscription
�[37mDEBUG  �[0m POST/authentication/register                  �[37mrequestId�[0m= �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m BEGIN                                         �[37mqueryId�[0m=71c1059c �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m SELECT count(*) FROM "logins" AS "login_with_hash" WHERE ("email" = 'bbeaba82b5ad4b869b57c05eb3d0d37a@testing.harderthanitneedstobe.com')  �[37mqueryId�[0m=f5722d91 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m INSERT INTO "logins" ("login_id", "email", "first_name", "last_name", "phone_number", "is_enabled", "is_email_verified", "is_phone_verified", "password_hash") VALUES (DEFAULT, 'bbeaba82b5ad4b869b57c05eb3d0d37a@testing.harderthanitneedstobe.com', 'Ralph', 'Goldner', DEFAULT, TRUE, FALSE, FALSE, '5D4CCDDC7164A4F16090F852E1140E28944A0A4F8C6CD9AF4D392C12DB241CA7') RETURNING "login_id", "phone_number"  �[37mqueryId�[0m=8d7672fe �[37mtest�[0m=TestLogin/inactive_subscription
�[37mDEBUG  �[0m creating stripe customer for new user         �[37mtest�[0m=TestLogin/inactive_subscription
�[36mINFO   �[0m Requesting POST api.stripe.com/v1/customers   �[36mtest�[0m=TestLogin/inactive_subscription
�[36mINFO   �[0m Request completed in 24.316597ms (retry: 0)   �[36mtest�[0m=TestLogin/inactive_subscription
�[36mINFO   �[0m Not retrying request: response not known to be safe for retry  �[36mtest�[0m=TestLogin/inactive_subscription
�[37mDEBUG  �[0m Response: {"address":{"city":"","country":"","line1":"","line2":"","postal_code":"","state":""},"balance":0,"created":1633141774,"currency":"USD","default_source":null,"deleted":false,"delinquent":false,"description":"","discount":null,"email":"bbeaba82b5ad4b869b57c05eb3d0d37a@testing.harderthanitneedstobe.com","id":"cus_26hD8TPAHprmhB","invoice_prefix":"","invoice_settings":null,"livemode":false,"metadata":null,"name":"Ralph Goldner","next_invoice_sequence":0,"object":"customer","phone":"","preferred_locales":null,"shipping":null,"sources":null,"subscriptions":null,"tax":null,"tax_exempt":"","tax_ids":null}  �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m INSERT INTO "accounts" ("account_id", "timezone", "stripe_customer_id", "stripe_subscription_id", "stripe_webhook_latest_timestamp", "subscription_active_until") VALUES (DEFAULT, 'UTC', 'cus_26hD8TPAHprmhB', DEFAULT, DEFAULT, DEFAULT) RETURNING "account_id", "stripe_subscription_id", "stripe_webhook_latest_timestamp", "subscription_active_until"  �[37mqueryId�[0m=a704f56a �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m INSERT INTO "users" ("user_id", "login_id", "account_id", "first_name", "last_name", "stripe_customer_id") VALUES (DEFAULT, 2, 2, 'Ralph', 'Goldner', 'cus_26hD8TPAHprmhB') RETURNING "user_id"  �[37mqueryId�[0m=341873d2 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m COMMIT                                        �[37mqueryId�[0m=36818c84 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mDEBUG  �[0m POST/authentication/login                     �[37mrequestId�[0m= �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m BEGIN                                         �[37mqueryId�[0m=1642d4e8 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m BEGIN                                         �[37mqueryId�[0m=8225efe2 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m SELECT "login"."login_id", "login"."email", "login"."first_name", "login"."last_name", "login"."phone_number", "login"."is_enabled", "login"."is_email_verified", "login"."is_phone_verified" FROM "logins" AS "login" WHERE ("login"."email" = 'bbeaba82b5ad4b869b57c05eb3d0d37a@testing.harderthanitneedstobe.com' AND "login"."password_hash" = '5D4CCDDC7164A4F16090F852E1140E28944A0A4F8C6CD9AF4D392C12DB241CA7') LIMIT 1  �[37mqueryId�[0m=aec1d117 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m SELECT "user"."user_id", "user"."login_id", "user"."account_id", "user"."first_name", "user"."last_name", "user"."stripe_customer_id", "account"."account_id" AS "account__account_id", "account"."timezone" AS "account__timezone", "account"."stripe_customer_id" AS "account__stripe_customer_id", "account"."stripe_subscription_id" AS "account__stripe_subscription_id", "account"."stripe_webhook_latest_timestamp" AS "account__stripe_webhook_latest_timestamp", "account"."subscription_active_until" AS "account__subscription_active_until" FROM "users" AS "user" LEFT JOIN "accounts" AS "account" ON "account"."account_id" = "user"."account_id" WHERE ("user"."login_id" IN (2))  �[37mqueryId�[0m=686b5cfa �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m COMMIT                                        �[37mqueryId�[0m=329ce9ed �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m checking if account subscription is active    �[37maccountId�[0m=2 �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m SELECT "account"."account_id", "account"."timezone", "account"."stripe_customer_id", "account"."stripe_subscription_id", "account"."stripe_webhook_latest_timestamp", "account"."subscription_active_until" FROM "accounts" AS "account" WHERE ("account"."account_id" = 2) LIMIT 1  �[37mqueryId�[0m=725640eb �[37mtest�[0m=TestLogin/inactive_subscription
�[37mTRACE  �[0m COMMIT                                        �[37mqueryId�[0m=21d35168 �[37mtest�[0m=TestLogin/inactive_subscription
    --- FAIL: TestLogin/inactive_subscription (0.07s)

Link to action: https://github.com/monetr/rest-api/actions/runs/1297288789

@guyarb
Copy link
Owner

guyarb commented Oct 6, 2021

hey @elliotcourant thanks for opening the issue
I'll take a look later today and ill try to allow removing the coloring from the output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants