Skip to content

Commit

Permalink
Add integration tests apache#2388
Browse files Browse the repository at this point in the history
  • Loading branch information
zbendhiba committed Apr 21, 2021
1 parent f25bb0f commit fba84b7
Show file tree
Hide file tree
Showing 39 changed files with 1,838 additions and 168 deletions.
3 changes: 2 additions & 1 deletion integration-tests/digitalocean/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ By default, the Digitalocean integration tests use WireMock to stub the API inte

To run `camel-quarkus-digitalocean` integration tests using Digitalocean API interactions, you will need a Digitalocean Token. Create a Digitalocean https://www.digitalocean.com/docs/apis-clis/api/create-personal-access-token/[Access Token].

Then set the following environment variable:
Then set the following environment variables:

[source,shell]
----
DIGITALOCEAN_AUTH_TOKEN=your-api-token
DIGITALOCEAN_PUBLIC_KEY=your-public-key-to-run-key-tests
----

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,34 @@ public void configure() throws Exception {
from("direct:droplet")
.toF("digitalocean:droplets?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:account")
.toF("digitalocean:account?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:actions")
.toF("digitalocean:actions?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:images")
.toF("digitalocean:images?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:snapshots")
.toF("digitalocean:snapshots?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:sizes")
.toF("digitalocean:sizes?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:regions")
.toF("digitalocean:regions?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:floatingIPs")
.toF("digitalocean:floatingIPs?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:blockStorages")
.toF("digitalocean:blockStorages?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:keys")
.toF("digitalocean:keys?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);

from("direct:tags")
.toF("digitalocean:tags?oAuthToken=%s&digitalOceanClient=#digitalOceanClient", oAuthToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.digitalocean.it;

import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
public class DigitaloceanDropletIT extends DigitaloceanDropletTest {
}

0 comments on commit fba84b7

Please sign in to comment.