summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/events/1478123456789000.tld1
-rw-r--r--tests/data/events/1478123456789001.tld1
-rw-r--r--tests/data/events/1479766858966718.tld1
-rw-r--r--tests/data/ext/sample_ext-1.2.0.zip (renamed from tests/data/ext/sample_ext.zip)bin878 -> 878 bytes
-rw-r--r--tests/data/ext/sample_ext-1.2.0/HandlerManifest.json (renamed from tests/data/ext/sample_ext/HandlerManifest.json)0
-rwxr-xr-xtests/data/ext/sample_ext-1.2.0/sample.py (renamed from tests/data/ext/sample_ext/sample.py)0
-rw-r--r--tests/data/ga/WALinuxAgent-2.2.11.zipbin0 -> 450878 bytes
-rw-r--r--tests/data/ga/WALinuxAgent-2.2.8.zipbin415285 -> 0 bytes
-rw-r--r--tests/data/ga/supported.json8
-rw-r--r--tests/data/metadata/vmagent_manifest1.json20
-rw-r--r--tests/data/metadata/vmagent_manifest2.json20
-rw-r--r--tests/data/metadata/vmagent_manifests.json7
-rw-r--r--tests/data/metadata/vmagent_manifests_invalid1.json10
-rw-r--r--tests/data/metadata/vmagent_manifests_invalid2.json10
-rw-r--r--tests/data/test_waagent.conf111
15 files changed, 189 insertions, 0 deletions
diff --git a/tests/data/events/1478123456789000.tld b/tests/data/events/1478123456789000.tld
new file mode 100644
index 0000000..a689f4c
--- /dev/null
+++ b/tests/data/events/1478123456789000.tld
@@ -0,0 +1 @@
+{"eventId": 1, "providerId": "69B669B9-4AF8-4C50-BDC4-6006FA76E975", "parameters": [{"name": "Name", "value": "Test Event"}, {"name": "Version", "value": "2.2.0"}, {"name": "IsInternal", "value": false}, {"name": "Operation", "value": "Some Operation"}, {"name": "OperationSuccess", "value": true}, {"name": "Message", "value": ""}, {"name": "Duration", "value": 0}, {"name": "ExtensionType", "value": ""}]} \ No newline at end of file
diff --git a/tests/data/events/1478123456789001.tld b/tests/data/events/1478123456789001.tld
new file mode 100644
index 0000000..95460e3
--- /dev/null
+++ b/tests/data/events/1478123456789001.tld
@@ -0,0 +1 @@
+{"eventId": 1, "providerId": "69B669B9-4AF8-4C50-BDC4-6006FA76E975", "parameters": [{"name": "Name", "value": "Linux Event"}, {"name": "Version", "value": "2.2.0"}, {"name": "IsInternal", "value": false}, {"name": "Operation", "value": "Linux Operation"}, {"name": "OperationSuccess", "value": false}, {"name": "Message", "value": "Linux Message"}, {"name": "Duration", "value": 42}, {"name": "ExtensionType", "value": "Linux Event Type"}]} \ No newline at end of file
diff --git a/tests/data/events/1479766858966718.tld b/tests/data/events/1479766858966718.tld
new file mode 100644
index 0000000..cc7ac67
--- /dev/null
+++ b/tests/data/events/1479766858966718.tld
@@ -0,0 +1 @@
+{"eventId": 1, "providerId": "69B669B9-4AF8-4C50-BDC4-6006FA76E975", "parameters": [{"name": "Name", "value": "WALinuxAgent"}, {"name": "Version", "value": "2.3.0.1"}, {"name": "IsInternal", "value": false}, {"name": "Operation", "value": "Enable"}, {"name": "OperationSuccess", "value": true}, {"name": "Message", "value": "Agent WALinuxAgent-2.3.0.1 launched with command 'python install.py' is successfully running"}, {"name": "Duration", "value": 0}, {"name": "ExtensionType", "value": ""}]} \ No newline at end of file
diff --git a/tests/data/ext/sample_ext.zip b/tests/data/ext/sample_ext-1.2.0.zip
index 08cfaf7..08cfaf7 100644
--- a/tests/data/ext/sample_ext.zip
+++ b/tests/data/ext/sample_ext-1.2.0.zip
Binary files differ
diff --git a/tests/data/ext/sample_ext/HandlerManifest.json b/tests/data/ext/sample_ext-1.2.0/HandlerManifest.json
index 9890d0c..9890d0c 100644
--- a/tests/data/ext/sample_ext/HandlerManifest.json
+++ b/tests/data/ext/sample_ext-1.2.0/HandlerManifest.json
diff --git a/tests/data/ext/sample_ext/sample.py b/tests/data/ext/sample_ext-1.2.0/sample.py
index 74bd839..74bd839 100755
--- a/tests/data/ext/sample_ext/sample.py
+++ b/tests/data/ext/sample_ext-1.2.0/sample.py
diff --git a/tests/data/ga/WALinuxAgent-2.2.11.zip b/tests/data/ga/WALinuxAgent-2.2.11.zip
new file mode 100644
index 0000000..f018116
--- /dev/null
+++ b/tests/data/ga/WALinuxAgent-2.2.11.zip
Binary files differ
diff --git a/tests/data/ga/WALinuxAgent-2.2.8.zip b/tests/data/ga/WALinuxAgent-2.2.8.zip
deleted file mode 100644
index 04c60a8..0000000
--- a/tests/data/ga/WALinuxAgent-2.2.8.zip
+++ /dev/null
Binary files differ
diff --git a/tests/data/ga/supported.json b/tests/data/ga/supported.json
new file mode 100644
index 0000000..2ae3753
--- /dev/null
+++ b/tests/data/ga/supported.json
@@ -0,0 +1,8 @@
+{
+ "ubuntu.16.10-x64": {
+ "versions": [
+ "^Ubuntu,16.10,yakkety$"
+ ],
+ "slice": 10
+ }
+}
diff --git a/tests/data/metadata/vmagent_manifest1.json b/tests/data/metadata/vmagent_manifest1.json
new file mode 100644
index 0000000..544a708
--- /dev/null
+++ b/tests/data/metadata/vmagent_manifest1.json
@@ -0,0 +1,20 @@
+{
+ "versions": [
+ {
+ "version": "2.2.8",
+ "uris": [
+ {
+ "uri": "https: //notused.com/ga/WALinuxAgent-2.2.8.zip"
+ }
+ ]
+ },
+ {
+ "version": "2.2.9",
+ "uris": [
+ {
+ "uri": "https: //notused.com/ga/WALinuxAgent-2.2.9.zip"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/tests/data/metadata/vmagent_manifest2.json b/tests/data/metadata/vmagent_manifest2.json
new file mode 100644
index 0000000..544a708
--- /dev/null
+++ b/tests/data/metadata/vmagent_manifest2.json
@@ -0,0 +1,20 @@
+{
+ "versions": [
+ {
+ "version": "2.2.8",
+ "uris": [
+ {
+ "uri": "https: //notused.com/ga/WALinuxAgent-2.2.8.zip"
+ }
+ ]
+ },
+ {
+ "version": "2.2.9",
+ "uris": [
+ {
+ "uri": "https: //notused.com/ga/WALinuxAgent-2.2.9.zip"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/tests/data/metadata/vmagent_manifests.json b/tests/data/metadata/vmagent_manifests.json
new file mode 100644
index 0000000..2628f89
--- /dev/null
+++ b/tests/data/metadata/vmagent_manifests.json
@@ -0,0 +1,7 @@
+{
+ "versionsManifestUris" :
+ [
+ { "uri" : "https://notused.com/vmagent_manifest1.json" },
+ { "uri" : "https://notused.com/vmagent_manifest2.json" }
+ ]
+}
diff --git a/tests/data/metadata/vmagent_manifests_invalid1.json b/tests/data/metadata/vmagent_manifests_invalid1.json
new file mode 100644
index 0000000..55b08d1
--- /dev/null
+++ b/tests/data/metadata/vmagent_manifests_invalid1.json
@@ -0,0 +1,10 @@
+{
+ "notTheRightKey": [
+ {
+ "uri": "https://notused.com/vmagent_manifest1.json"
+ },
+ {
+ "uri": "https://notused.com/vmagent_manifest2.json"
+ }
+ ]
+} \ No newline at end of file
diff --git a/tests/data/metadata/vmagent_manifests_invalid2.json b/tests/data/metadata/vmagent_manifests_invalid2.json
new file mode 100644
index 0000000..5df4252
--- /dev/null
+++ b/tests/data/metadata/vmagent_manifests_invalid2.json
@@ -0,0 +1,10 @@
+{
+ "notTheRightKey": [
+ {
+ "foo": "https://notused.com/vmagent_manifest1.json"
+ },
+ {
+ "bar": "https://notused.com/vmagent_manifest2.json"
+ }
+ ]
+} \ No newline at end of file
diff --git a/tests/data/test_waagent.conf b/tests/data/test_waagent.conf
new file mode 100644
index 0000000..6368c39
--- /dev/null
+++ b/tests/data/test_waagent.conf
@@ -0,0 +1,111 @@
+#
+# Microsoft Azure Linux Agent Configuration
+#
+
+# Key / value handling test entries
+=Value0
+FauxKey1= Value1
+FauxKey2=Value2 Value2
+
+# Enable instance creation
+Provisioning.Enabled=y
+
+# Rely on cloud-init to provision
+Provisioning.UseCloudInit=y
+
+# Password authentication for root account will be unavailable.
+Provisioning.DeleteRootPassword=y
+
+# Generate fresh host key pair.
+Provisioning.RegenerateSshHostKeyPair=y
+
+# Supported values are "rsa", "dsa" and "ecdsa".
+Provisioning.SshHostKeyPairType=rsa
+
+# Monitor host name changes and publish changes via DHCP requests.
+Provisioning.MonitorHostName=y
+
+# Decode CustomData from Base64.
+Provisioning.DecodeCustomData=n
+
+# Execute CustomData after provisioning.
+Provisioning.ExecuteCustomData=n
+
+# Algorithm used by crypt when generating password hash.
+#Provisioning.PasswordCryptId=6
+
+# Length of random salt used when generating password hash.
+#Provisioning.PasswordCryptSaltLength=10
+
+# Allow reset password of sys user
+Provisioning.AllowResetSysUser=n
+
+# Format if unformatted. If 'n', resource disk will not be mounted.
+ResourceDisk.Format=y
+
+# File system on the resource disk
+# Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
+ResourceDisk.Filesystem=ext4
+
+# Mount point for the resource disk
+ResourceDisk.MountPoint=/mnt/resource
+
+# Create and use swapfile on resource disk.
+ResourceDisk.EnableSwap=n
+
+# Size of the swapfile.
+ResourceDisk.SwapSizeMB=0
+
+# Comma-seperated list of mount options. See man(8) for valid options.
+ResourceDisk.MountOptions=None
+
+# Enable verbose logging (y|n)
+Logs.Verbose=n
+
+# Is FIPS enabled
+OS.EnableFIPS=y
+
+# Root device timeout in seconds.
+OS.RootDeviceScsiTimeout=300
+
+# If "None", the system default version is used.
+OS.OpensslPath=None
+
+# Set the path to SSH keys and configuration files
+OS.SshDir=/notareal/path
+
+# If set, agent will use proxy server to access internet
+#HttpProxy.Host=None
+#HttpProxy.Port=None
+
+# Detect Scvmm environment, default is n
+# DetectScvmmEnv=n
+
+#
+# Lib.Dir=/var/lib/waagent
+
+#
+# DVD.MountPoint=/mnt/cdrom/secure
+
+#
+# Pid.File=/var/run/waagent.pid
+
+#
+# Extension.LogDir=/var/log/azure
+
+#
+# Home.Dir=/home
+
+# Enable RDMA management and set up, should only be used in HPC images
+# OS.EnableRDMA=y
+
+# Enable or disable goal state processing auto-update, default is enabled
+# AutoUpdate.Enabled=y
+
+# Determine the update family, this should not be changed
+# AutoUpdate.GAFamily=Prod
+
+# Determine if the overprovisioning feature is enabled. If yes, hold extension
+# handling until inVMArtifactsProfile.OnHold is false.
+# Default is disabled
+# EnableOverProvisioning=n