Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add a 'test' that lists the available EC2 instance types. #41

Merged
merged 2 commits into from about 1 year ago

3 participants

Kevin P. Fleming BuildHive Francis Upton
Kevin P. Fleming

When AWS adds new instance types, the AWS SDK is updated to include them, and this
plugin is updated to bring in the new version of the SDK. In order to confirm that
doing so actually does make the new instance types available, this 'test' lists
the known instance types while the plugin is being tested.

Kevin P. Fleming Add a 'test' that lists the available EC2 instance types.
When AWS adds new instance types, the AWS SDK is updated to include them, and this
plugin is updated to bring in the new version of the SDK. In order to confirm that
doing so actually does make the new instance types available, this 'test' lists
the known instance types while the plugin is being tested.
1488208
BuildHive

Jenkins » ec2-plugin #62 SUCCESS
This pull request looks good
(what's this?)

Francis Upton
Collaborator

Hi Kevin, thanks for your contribution. You should change the copyright notice to say Copyright 2013 (you or your company). The copyright notice is the copyright of the actual code, which you or your company owns.

Kevin P. Fleming

Done.

Francis Upton francisu merged commit 75090db into from March 26, 2013
Francis Upton francisu closed this March 26, 2013
Francis Upton
Collaborator

Thanks Kevin for your contribution!

BuildHive

Jenkins » ec2-plugin #63 SUCCESS
This pull request looks good
(what's this?)

Kevin P. Fleming kpfleming deleted the branch March 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Mar 26, 2013
Kevin P. Fleming Add a 'test' that lists the available EC2 instance types.
When AWS adds new instance types, the AWS SDK is updated to include them, and this
plugin is updated to bring in the new version of the SDK. In order to confirm that
doing so actually does make the new instance types available, this 'test' lists
the known instance types while the plugin is being tested.
1488208
Kevin P. Fleming Correct copyright notice 140ed12
This page is out of date. Refresh to see the latest.
37  src/test/java/hudson/plugins/ec2/EC2InstanceTypesTest.java
... ...
@@ -0,0 +1,37 @@
  1
+/*
  2
+ * The MIT License
  3
+ *
  4
+ * Copyright (c) 2013, Bloomberg L.P.
  5
+ *
  6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
  7
+ * of this software and associated documentation files (the "Software"), to deal
  8
+ * in the Software without restriction, including without limitation the rights
  9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10
+ * copies of the Software, and to permit persons to whom the Software is
  11
+ * furnished to do so, subject to the following conditions:
  12
+ *
  13
+ * The above copyright notice and this permission notice shall be included in
  14
+ * all copies or substantial portions of the Software.
  15
+ *
  16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22
+ * THE SOFTWARE.
  23
+ */
  24
+package hudson.plugins.ec2;
  25
+
  26
+import org.jvnet.hudson.test.HudsonTestCase;
  27
+
  28
+import com.amazonaws.services.ec2.model.InstanceType;
  29
+
  30
+public class EC2InstanceTypesTest extends HudsonTestCase {
  31
+    public void testListTypes() throws Exception {
  32
+	System.out.println("EC2 Instance Types available:");
  33
+	for (InstanceType t : InstanceType.values()) {
  34
+	    System.out.println(t.toString());
  35
+	}
  36
+    }
  37
+}
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.