Compare commits

...

1 Commits

Author SHA1 Message Date
Bronek Kozicki
4e535f1838 Add testDeletePermissionedDomainOwner() 2025-10-14 18:12:53 +01:00

View File

@@ -18,8 +18,10 @@
//============================================================================== //==============================================================================
#include <test/jtx.h> #include <test/jtx.h>
#include <test/jtx/permissioned_domains.h>
#include <xrpl/protocol/Feature.h> #include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/TER.h>
#include <xrpl/protocol/jss.h> #include <xrpl/protocol/jss.h>
namespace ripple { namespace ripple {
@@ -1251,21 +1253,48 @@ public:
} }
} }
void
testDeletePermissionedDomainOwner()
{
using namespace jtx;
Env env{*this};
Account alice{"alice"};
Account becky{"becky"};
env.fund(XRP(1000), alice, becky);
env.close();
env(fset(becky, asfDepositAuth));
env.close();
pdomain::Credentials const credentials1{
{.issuer = alice, .credType = "foobaz"}};
env(pdomain::setTx(alice, credentials1));
// Close 256 ledgers
for (int i = 0; i < 256; ++i)
env.close();
auto const acctDelFee{drops(env.current()->fees().increment)};
env(acctdelete(alice, becky), fee(acctDelFee), ter{tecNO_PERMISSION});
env.close();
}
void void
run() override run() override
{ {
testBasics(); // testBasics();
testDirectories(); // testDirectories();
testOwnedTypes(); // testOwnedTypes();
testResurrection(); // testResurrection();
testAmendmentEnable(); // testAmendmentEnable();
testTooManyOffers(); // testTooManyOffers();
testImplicitlyCreatedTrustline(); // testImplicitlyCreatedTrustline();
testBalanceTooSmallForFee(); // testBalanceTooSmallForFee();
testWithTickets(); // testWithTickets();
testDest(); // testDest();
testDestinationDepositAuthCredentials(); // testDestinationDepositAuthCredentials();
testDeleteCredentialsOwner(); // testDeleteCredentialsOwner();
testDeletePermissionedDomainOwner();
} }
}; };