Skip to content

Commit 69e8372

Browse files
committed
just only create api key, everything else should be created from basic setup
1 parent b17e8cb commit 69e8372

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/HashtopolisTest.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ public function init($version) {
8282
Factory::getAgentFactory()->getDB()->query(file_get_contents(dirname(__FILE__) . "/files/db_" . $version . ".sql"));
8383
}
8484
85-
sleep(1);
85+
sleep(1);*/
8686

8787
// insert user and api key
88-
$salt = Util::randomString(30);
88+
/*$salt = Util::randomString(30);
8989
$hash = Encryption::passwordHash(HashtopolisTest::USER_PASS, $salt);
9090
$this->user = new User(null, 'testuser', '', $hash, $salt, 1, 0, 0, 0, 3600, AccessUtils::getOrCreateDefaultAccessGroup()->getId(), 0, '', '', '', '');
9191
$this->user = Factory::getUserFactory()->save($this->user);
9292
$accessGroup = new AccessGroupUser(null, 1, $this->user->getId());
93-
Factory::getAccessGroupUserFactory()->save($accessGroup);
94-
$this->apiKey = new ApiKey(null, 0, time() + 3600, 'mykey', 0, $this->user->getId(), 1);
95-
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);*/
93+
Factory::getAccessGroupUserFactory()->save($accessGroup);*/
94+
$this->apiKey = new ApiKey(null, 0, time() + 3600, 'mykey', 0, 1, 1);
95+
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);
9696
// $versionStore = new StoredValue("version", ($version == 'master') ? explode("+", $VERSION)[0] : $version);
9797
// Factory::getStoredValueFactory()->save($versionStore);
9898
// $buildStore = new StoredValue("build", ($version == 'master') ? Util::getGitCommit(true) : $this->RELEASES[$version]);

0 commit comments

Comments
 (0)