42
42
distribution : ' temurin'
43
43
cache : maven
44
44
- name : build (8)
45
- run : mvn -T 8 clean install --no-transfer-progress -B -V
45
+ run : mvn -T 8 clean install -DskipTests - -no-transfer-progress -B -V
46
46
- name : Upload artifacts
47
47
uses : actions/upload-artifact@v4
48
48
with :
@@ -66,11 +66,10 @@ jobs:
66
66
with :
67
67
name : target-11
68
68
path : target/*
69
-
69
+
70
70
docker-build :
71
71
needs :
72
72
- build-8
73
- - build-11
74
73
runs-on : ubuntu-latest
75
74
steps :
76
75
- uses : actions/checkout@v4
@@ -134,7 +133,8 @@ jobs:
134
133
-f docker-compose.ranger-hive.yml \
135
134
-f docker-compose.ranger-knox.yml \
136
135
-f docker-compose.ranger-ozone.yml up -d
137
- - name : Check status of containers and remove them
136
+
137
+ - name : Check status of containers
138
138
run : |
139
139
sleep 60
140
140
containers=(ranger ranger-zk ranger-solr ranger-postgres ranger-usersync ranger-tagsync ranger-kms ranger-hadoop ranger-hbase ranger-kafka ranger-hive ranger-knox ozone-om ozone-scm ozone-datanode);
@@ -150,8 +150,34 @@ jobs:
150
150
151
151
if [[ $flag == true ]]; then
152
152
echo "All required containers are up and running";
153
- docker stop $(docker ps -q) && docker rm $(docker ps -aq);
154
- else
155
- docker stop $(docker ps -q) && docker rm $(docker ps -aq);
156
- exit 1;
157
153
fi
154
+
155
+ - name : Set up Python
156
+ uses : actions/setup-python@v4
157
+ with :
158
+ python-version : ' 3.9'
159
+
160
+ # Install Robot Framework and dependencies
161
+ - name : Install Robot Framework
162
+ run : |
163
+ python -m pip install --upgrade pip
164
+ python --version
165
+ pip install robotframework
166
+ pip install robotframework-requests
167
+ robot --version || true
168
+
169
+ - name : Run Ranger REST API SmokeTests
170
+ run : |
171
+ cd dev-support/smoketests/ranger/apis
172
+ mkdir -p output
173
+ robot --outputdir output --loglevel DEBUG session_management.robot policy_management.robot user_management.robot
174
+
175
+ - name : Upload Robot Framework Artifacts
176
+ uses : actions/upload-artifact@v4
177
+ with :
178
+ name : Robot-Framework-Artifacts
179
+ path : output/
180
+
181
+ - name : Remove Containers
182
+ run : |
183
+ docker stop $(docker ps -q) && docker rm $(docker ps -aq);
0 commit comments