Skip to content

Commit

Permalink
update snapshot for test changes in 15ba017
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Apr 18, 2024
1 parent 6bb5069 commit 38cd0ee
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions src/__snapshots__/app-deploy.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ VERBOSE: Sent transaction ID TXID_2 appl from ACCOUNT_1
DEBUG: Created app APP_2 from creator ACCOUNT_1"
`;

exports[`deploy-app Deploy append for update app if onUpdate = AppendApp 2`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
INFO: Detected a TEAL update in app APP_1 for creator ACCOUNT_1
INFO: onUpdate=AppendApp, will attempt to create a new app
INFO: Sent transaction ID TXID_2 appl from ACCOUNT_1
DEBUG: Created app APP_2 from creator ACCOUNT_1"
`;

exports[`deploy-app Deploy failure for replacement of permanent, updated app 1`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
INFO: Detected a TEAL update in app APP_1 for creator ACCOUNT_1
WARN: App is not deletable and onUpdate=ReplaceApp, will attempt to create new app and delete old app, delete will most likely fail
INFO: Deploying a new test app for ACCOUNT_1; deploying app with version 2.0.
WARN: Deleting existing test app with id APP_1 from ACCOUNT_1 account.
ERROR: Received error executing Atomic Transaction Composer, for more information enable the debug flag | [{"response":{"body":{"data":{"app-index":APP_1,"eval-states":[{},{"stack":[0]}],"group-index":1,"pc":994},"message":"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert"},"status":400,"text":"{\\"data\\":{\\"app-index\\":APP_1,\\"eval-states\\":[{},{\\"stack\\":[0]}],\\"group-index\\":1,\\"pc\\":994},\\"message\\":\\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert\\"}\\n","ok":false},"name":"URLTokenBaseHTTPError","status":400}]"
ERROR: Received error executing Atomic Transaction Composer, for more information enable the debug flag | [{"response":{"body":{"data":{"app-index":APP_1,"eval-states":[{},{"stack":[0]}],"group-index":1,"pc":994},"message":"TransactionPool.Remember: transaction 2Q3SVDNCG7DEDCACUO3EHZN5ZCCQPMT7FVKHC2JBUZOCGG3EWYVA: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert"},"status":400,"text":"{\\"data\\":{\\"app-index\\":APP_1,\\"eval-states\\":[{},{\\"stack\\":[0]}],\\"group-index\\":1,\\"pc\\":994},\\"message\\":\\"TransactionPool.Remember: transaction 2Q3SVDNCG7DEDCACUO3EHZN5ZCCQPMT7FVKHC2JBUZOCGG3EWYVA: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert\\"}\\n","ok":false},"name":"URLTokenBaseHTTPError","status":400}]"
`;
exports[`deploy-app Deploy failure for replacement of schema broken app fails if onSchemaBreak = Fail 1`] = `
Expand Down Expand Up @@ -66,16 +57,6 @@ WARN: Deleting existing test app with id APP_1 from ACCOUNT_1 account.
WARN: Sent transactions TXID_2 to create app with id APP_2 and TXID_3 to delete app with id APP_1 from ACCOUNT_1 account."
`;
exports[`deploy-app Deploy replacement of deletable schema broken app 2`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
WARN: Detected a breaking app schema change in app APP_1: | [{"from":{"global":{"numUint":3,"numByteSlice":2,"attribute_map":{"numUint":"num-uint","numByteSlice":"num-byte-slice"}},"local":{"numUint":2,"numByteSlice":2,"attribute_map":{"numUint":"num-uint","numByteSlice":"num-byte-slice"}}},"to":{"global":{"numUint":3,"numByteSlice":3,"attribute_map":{"numUint":"num-uint","numByteSlice":"num-byte-slice"}},"local":{"numUint":2,"numByteSlice":2,"attribute_map":{"numUint":"num-uint","numByteSlice":"num-byte-slice"}}}}]
INFO: App is deletable and onSchemaBreak=ReplaceApp, will attempt to create new app and delete old app
INFO: Deploying a new test app for ACCOUNT_1; deploying app with version 2.0.
WARN: Deleting existing test app with id APP_1 from ACCOUNT_1 account.
WARN: Sent transactions TXID_2 to create app with id APP_2 and TXID_3 to delete app with id APP_1 from ACCOUNT_1 account."
`;
exports[`deploy-app Deploy replacement to deletable, updated app 1`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
Expand All @@ -93,17 +74,10 @@ WARN: Detected a breaking app schema change in app APP_1: | [{"from":{"global":{
INFO: App is not deletable but onSchemaBreak=ReplaceApp, will attempt to delete app, delete will most likely fail
INFO: Deploying a new test app for ACCOUNT_1; deploying app with version 2.0.
WARN: Deleting existing test app with id APP_1 from ACCOUNT_1 account.
ERROR: Received error executing Atomic Transaction Composer, for more information enable the debug flag | [{"response":{"body":{"data":{"app-index":APP_1,"eval-states":[{},{"stack":[0]}],"group-index":1,"pc":994},"message":"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert"},"status":400,"text":"{\\"data\\":{\\"app-index\\":APP_1,\\"eval-states\\":[{},{\\"stack\\":[0]}],\\"group-index\\":1,\\"pc\\":994},\\"message\\":\\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert\\"}\\n","ok":false},"name":"URLTokenBaseHTTPError","status":400}]"
ERROR: Received error executing Atomic Transaction Composer, for more information enable the debug flag | [{"response":{"body":{"data":{"app-index":APP_1,"eval-states":[{},{"stack":[0]}],"group-index":1,"pc":994},"message":"TransactionPool.Remember: transaction SMBUFVRG4QMDAKBBIF4BO2U47IXCEYHXB5YJ3WVIEAINRFOOOWMA: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert"},"status":400,"text":"{\\"data\\":{\\"app-index\\":APP_1,\\"eval-states\\":[{},{\\"stack\\":[0]}],\\"group-index\\":1,\\"pc\\":994},\\"message\\":\\"TransactionPool.Remember: transaction SMBUFVRG4QMDAKBBIF4BO2U47IXCEYHXB5YJ3WVIEAINRFOOOWMA: logic eval error: assert failed pc=994. Details: app=APP_1, pc=994, opcodes=assert; intc 5 // 0; assert\\"}\\n","ok":false},"name":"URLTokenBaseHTTPError","status":400}]"
`;
exports[`deploy-app Deploy update to immutable updated app fails 1`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
INFO: Detected a TEAL update in app APP_1 for creator ACCOUNT_1
WARN: App is not updatable but onUpdate=UpdateApp, will attempt to update app, update will most likely fail
INFO: Updating existing test app for ACCOUNT_1 to version 2.0.
DEBUG: Updating app APP_1"
`;
exports[`deploy-app Deploy update to immutable updated app fails 1`] = `""`;
exports[`deploy-app Deploy update to updatable updated app 1`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
Expand All @@ -120,9 +94,3 @@ exports[`deploy-app Do nothing if deploying app with no changes 1`] = `
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
DEBUG: No detected changes in app, nothing to do."
`;
exports[`deploy-app Do nothing if deploying app with no changes 2`] = `
"INFO: Idempotently deploying app "test" from creator ACCOUNT_1 using 11890 bytes of teal code and 39 bytes of teal code
INFO: Existing app test found by creator ACCOUNT_1, with app id APP_1 and version 1.0.
DEBUG: No detected changes in app, nothing to do."
`;

0 comments on commit 38cd0ee

Please sign in to comment.