This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ -f /var/cache/.restored ]] | |
then | |
rsync -avzh -x /var/cache/ /usr/portage/local/cache > /dev/null 2>/var/log/cache-store.log | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ ! -d /var/cache ]] | |
then | |
mkdir /var/cache | |
fi | |
rsync -avhz -x /usr/portage/local/cache /var/ > /dev/null 2>/var/log/cache-restore.log | |
touch /var/cache/.restored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ -f /var/tmp/ccache/.restored ]] | |
then | |
rsync -avzh -x /var/tmp/ccache/ /usr/portage/local/ccache > /dev/null 2>/var/log/ccache-store.log | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ ! -d /var/tmp/ccache ]] | |
then | |
mkdir /var/tmp/ccache | |
fi | |
rsync -avhz -x /usr/portage/local/ccache /var/tmp/ > /dev/null 2>/var/log/ccache-restore.log | |
touch /var/tmp/ccache/.restored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# turn it on if nothing passed in as args | |
if [ -z "$1" ] | |
then | |
echo lz4 > /sys/block/zram0/comp_algorithm | |
echo lz4 > /sys/block/zram1/comp_algorithm | |
echo lz4 > /sys/block/zram2/comp_algorithm | |
# 8GB of /var/tmp | |
echo $((8*1024*1024*1024)) > /sys/block/zram0/disksize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from sys import modules | |
class Base(object): | |
test_case = None | |
@classmethod | |
def __new__(cls, *args, **kwargs): | |
cls.test_case = cls.__name__[-4:] | |
return object.__new__(cls) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST -H "Accept: application/json" -H "Content-Type: applicaion/json" -d '{"machine": "host", "name": "test", "size": "4", "run": "3", "result": "3838.44"}' http://localhost:8080/api/testRuns -vvv | |
Note: Unnecessary use of -X or --request, POST is already inferred. | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /api/testRuns HTTP/1.1 | |
> Host: localhost:8080 | |
> User-Agent: curl/7.50.1 | |
> Accept: application/json | |
> Content-Type: application/json | |
> Content-Length: 81 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.route("/api/testRuns*").handler(ctx -> client.getConnection(res -> { | |
if (res.failed()) { | |
ctx.fail(res.cause()); | |
} else { | |
SQLConnection conn = res.result(); | |
ctx.put("conn", conn); | |
ctx.addHeadersEndHandler(done -> conn.close(close -> { | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H "Content-Type: application/json" -d '{"machine": "host", "name": "test", "size": "1", "run": "2", "result": "23.3"}' http://localhost:8080/api/testRuns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddFenceAgentCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddFenceAgentCommand.java | |
index ed54ded..3c634f0 100644 | |
--- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddFenceAgentCommand.java | |
+++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddFenceAgentCommand.java | |
@@ -1,13 +1,28 @@ | |
package org.ovirt.engine.core.bll; | |
+import javax.inject.Inject; | |
import org.ovirt.engine.core.bll.context.CommandContext; | |
import org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase; |