Skip to content

Instantly share code, notes, and snippets.

View nctest.py
import logging
from ncclient import manager, operations
import settings
LOGGER = logging.getLogger(__name__)
def check_reply_ok(reply):
@eliezio
eliezio / test_sw_upgrade.py
Created May 1, 2020
Test SW Upgrade using ncclient
View test_sw_upgrade.py
import time
import pytest
import nctest
from basetest import BaseTest
from settings import SWUG_TIMED_TRANSITION_TO
NC10_NAMESPACE = "urn:ietf:params:xml:ns:netconf:base:1.0"
SWUG_NAMESPACE = "http://onap.org/pnf-sw-upgrade"
@eliezio
eliezio / pom.xml
Created Feb 26, 2020
netconf-pnp-simulator Makefile v0.1.0
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
============LICENSE_START=======================================================
Copyright (C) 2019 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
View gist:480beb5476bc3c9ad83ef9872590dd40
resource_aws_app_cookie_stickiness_policy.go:CreateAppCookieStickinessPolicy DeleteLoadBalancer DeleteLoadBalancerPolicy DescribeLoadBalancerPolicies SetLoadBalancerPoliciesOfListener
resource_aws_autoscaling_group.go:AttachLoadBalancers CreateAutoScalingGroup DeleteAutoScalingGroup DescribeAutoScalingGroups DescribeInstanceHealth DetachLoadBalancers UpdateAutoScalingGroup
resource_aws_autoscaling_notification.go:DeleteNotificationConfiguration DescribeNotificationConfigurations PutNotificationConfiguration
resource_aws_autoscaling_policy.go:DeletePolicy DescribePolicies PutScalingPolicy
resource_aws_cloudwatch_metric_alarm.go:DeleteAlarms DescribeAlarms PutMetricAlarm
resource_aws_customer_gateway.go:CreateCustomerGateway DeleteCustomerGateway DescribeCustomerGateways
resource_aws_db_instance.go:CreateDBInstance CreateDBInstanceReadReplica DeleteDBInstance DescribeDBInstances GetUser ListTagsForResource ModifyDBInstance PromoteReadReplica RestoreDBInstanceFromDBSnapshot
resource_aws_db_parameter_group.go:Cre
View 0001-Update-to-0.9.3-Fluorine-SR3.patch
From b4ac154d66ea1c9a5f0e6935c2fc897afa3406fc Mon Sep 17 00:00:00 2001
From: Eliezio Oliveira <eliezio@pm.me>
Date: Mon, 29 Jul 2019 11:32:32 +0100
Subject: [PATCH] Update to 0.9.3 (Fluorine-SR3)
---
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
View test
package com.example.demo;
import lombok.SneakyThrows;
import lombok.Value;
import org.apache.commons.beanutils.PropertyUtils;
import sun.reflect.CallerSensitive;
import java.util.*;
import java.util.function.Function;
import java.util.stream.*;
View 0001-Update-to-0.9.2-Fluorine-SR2.patch
From b42b647e8be360ac95591a9ef344b33670502659 Mon Sep 17 00:00:00 2001
From: Eliezio Oliveira <eliezio@pm.me>
Date: Mon, 18 Mar 2019 19:04:45 +0000
Subject: [PATCH] Update to 0.9.2 (Fluorine-SR2)
---
PKGBUILD | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@eliezio
eliezio / 0001-Upgrade-to-4.2.3.patch
Created Mar 18, 2019
AUR apache-karaf upgrade to 4.2.3
View 0001-Upgrade-to-4.2.3.patch
From 209f9bb07c9371ddb988e2a73327d8501d1ac8a3 Mon Sep 17 00:00:00 2001
From: Eliezio Oliveira <eliezio@pm.me>
Date: Mon, 18 Mar 2019 10:16:28 +0000
Subject: [PATCH] Upgrade to 4.2.3
---
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@eliezio
eliezio / upgrade-8u181.patch
Created Nov 18, 2018
zulu-jdk upgrade to 8u181
View upgrade-8u181.patch
diff --git a/PKGBUILD b/PKGBUILD
index a145b1a..ad437a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
pkgname=zulu-jdk
_major=8
-_minor=144
+_minor=181
View UtilsSpec.groovy
import spock.lang.Specification
import spock.lang.Unroll
class UtilsSpec extends Specification {
@Unroll
def 'flat collection of integers: #list'() {
expect:
Utils.flatIntegers(list) == expectedResult