mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
Compare commits
1 Commits
a1q123456/
...
Bronek/Del
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e535f1838 |
@@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user